/* =========================================================
 * Hojee Return & Exchange v1.6.7
 * Edge-attached editorial drawer aligned with DUONG ATELIER mega menu.
 * Theme-accent-safe: no inherited pink backgrounds/text fills.
 * ======================================================= */

:root{
  --hrx-paper:var(--dakm4-paper,#EFEDDE);
  --hrx-ink:var(--dakm4-ink,#422F23);
  --hrx-rule:var(--dakm4-rule,rgba(66,47,35,.18));
  --hrx-muted:rgba(66,47,35,.62);
  --hrx-soft:rgba(66,47,35,.05);
  --hrx-ui:var(--dakm4-font-ui,"HV Fitzgerald",Georgia,serif);
  --hrx-accent:var(--dakm4-font-submenu,"zai Italic Hand Calligraphy",cursive);
}

html.hrx-popup-lock,
html.hrx-popup-lock body{overflow:hidden!important}

/* ---------- Shared page / fallback surface ---------- */
.hrx-shell{
  width:100%;
  background:var(--hrx-paper);
  color:var(--hrx-ink);
  font-family:var(--hrx-ui);
  font-weight:400;
  letter-spacing:.018em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
.hrx-shell,.hrx-shell *,.hrx-shell *::before,.hrx-shell *::after{box-sizing:border-box}
.hrx-shell :where(input,select,textarea,button,a,label,p,span,strong,h1,h2,h3){font-family:inherit}
.hrx-wrap{max-width:960px;margin:0 auto;padding:72px 28px 88px}
.hrx-head{max-width:620px;margin:0 0 34px}
.hrx-kicker{display:block;margin:0 0 9px;color:var(--hrx-ink);font-family:var(--hrx-accent);font-size:14px;font-weight:400;line-height:1.2;letter-spacing:.01em}
.hrx-title{margin:0 0 13px;color:var(--hrx-ink);font-size:clamp(30px,3.4vw,46px);font-weight:700;line-height:1;letter-spacing:-.02em}
.hrx-intro{max-width:600px;margin:0;color:var(--hrx-muted);font-size:12px;line-height:1.6}

/* ---------- Shared controls ---------- */
.hrx-stepbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:0 0 10px;border:0;border-bottom:1px solid var(--hrx-rule)}
.hrx-stepbar__item{font-size:9px;font-weight:700;line-height:1;letter-spacing:.09em;white-space:nowrap;text-transform:uppercase;opacity:.38}
.hrx-stepbar__item.is-active,.hrx-stepbar__item.is-done{opacity:1}
.hrx-stepbar__line{display:none}

.hrx-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 20px}
.hrx-section-head>span{font-size:10px;font-weight:700;line-height:1.2;letter-spacing:.09em;text-transform:uppercase}
.hrx-section-head p{max-width:330px;margin:0;color:var(--hrx-muted);font-size:11px;line-height:1.55}

.hrx-form{margin:0;padding:0}
.hrx-form--request{margin-top:24px;padding-top:22px;border-top:1px solid var(--hrx-rule)}
.hrx-grid{display:grid;gap:18px;margin:0 0 18px}
.hrx-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hrx-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.hrx-field>span{color:var(--hrx-ink);font-size:9.5px;font-weight:700;line-height:1.2;letter-spacing:.09em;text-transform:uppercase}

.hrx-field input,
.hrx-field select,
.hrx-field textarea{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:10px 0 11px!important;
  border:0!important;
  border-bottom:1px solid var(--hrx-rule)!important;
  border-radius:0!important;
  outline:0!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--hrx-ink)!important;
  -webkit-text-fill-color:var(--hrx-ink)!important;
  caret-color:var(--hrx-ink)!important;
  font-family:var(--hrx-ui)!important;
  font-size:13px!important;
  font-style:normal!important;
  font-weight:400!important;
  line-height:1.35!important;
  letter-spacing:.01em!important;
}
.hrx-field select{appearance:auto!important;-webkit-appearance:auto!important}
.hrx-field textarea{min-height:82px!important;resize:vertical}
.hrx-field input::placeholder,.hrx-field textarea::placeholder{color:var(--hrx-muted)!important;-webkit-text-fill-color:var(--hrx-muted)!important;opacity:.72!important}
.hrx-field input:focus,.hrx-field select:focus,.hrx-field textarea:focus{border-bottom-color:var(--hrx-ink)!important;box-shadow:none!important}

.hrx-consent{display:grid;grid-template-columns:16px minmax(0,1fr);gap:9px;align-items:start;margin:20px 0;color:var(--hrx-muted);font-size:10.5px;line-height:1.5}
.hrx-consent input{width:13px!important;height:13px!important;margin:1px 0 0!important;border-radius:0!important;accent-color:var(--hrx-ink)!important}
.hrx-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}

.hrx-submit,
.hrx-submit:hover,
.hrx-submit:focus,
.hrx-submit:active{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:154px!important;
  min-height:39px!important;
  margin:0!important;
  padding:0 18px!important;
  border:1px solid var(--hrx-ink)!important;
  border-radius:0!important;
  background:var(--hrx-ink)!important;
  background-color:var(--hrx-ink)!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--hrx-paper)!important;
  -webkit-text-fill-color:var(--hrx-paper)!important;
  text-shadow:none!important;
  font-family:var(--hrx-ui)!important;
  font-size:10.5px!important;
  font-style:normal!important;
  font-weight:700!important;
  line-height:1!important;
  letter-spacing:.07em!important;
  text-decoration:none!important;
  text-transform:uppercase!important;
  cursor:pointer!important;
}
.hrx-submit:hover{opacity:.84!important}
.hrx-submit:focus-visible{outline:1px solid var(--hrx-ink)!important;outline-offset:3px!important}
.hrx-submit[disabled]{opacity:.5!important;cursor:wait!important}

.hrx-link,.hrx-link:hover,.hrx-link:focus,.hrx-link:active{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  margin:0!important;
  padding:0 0 3px!important;
  border:0!important;
  border-bottom:1px solid currentColor!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  box-shadow:none!important;
  color:var(--hrx-ink)!important;
  -webkit-text-fill-color:var(--hrx-ink)!important;
  font-family:var(--hrx-ui)!important;
  font-size:9.5px!important;
  font-weight:700!important;
  line-height:1.2!important;
  letter-spacing:.07em!important;
  text-decoration:none!important;
  text-transform:uppercase!important;
  cursor:pointer!important;
}
.hrx-link:hover{opacity:.62!important}
.hrx-small{margin:13px 0 0;color:var(--hrx-muted);font-size:9.5px;line-height:1.5}

.hrx-notice,.hrx-popup__message{margin:0 0 18px;padding:10px 0;border-top:1px solid var(--hrx-rule);border-bottom:1px solid var(--hrx-rule);color:var(--hrx-ink);font-size:10.5px;line-height:1.5}
.hrx-notice--success,.hrx-popup__message.is-success{border-color:rgba(50,95,57,.48)}
.hrx-notice--error,.hrx-popup__message.is-error{border-color:rgba(141,54,43,.48)}

/* ---------- Compact order review ---------- */
.hrx-order-card{border-top:1px solid var(--hrx-ink);border-bottom:1px solid var(--hrx-ink)}
.hrx-order-card__top{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px 0;border-bottom:1px solid var(--hrx-rule)}
.hrx-order-card__top>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.hrx-order-card__label{color:var(--hrx-muted);font-size:8px;font-weight:700;line-height:1.1;letter-spacing:.08em;text-transform:uppercase}
.hrx-order-card__top strong{overflow:hidden;color:var(--hrx-ink);font-size:11.5px;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.hrx-order-items{display:flex;flex-direction:column}
.hrx-order-item{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 0;border-bottom:1px solid var(--hrx-rule)}
.hrx-order-item:last-child{border-bottom:0}
.hrx-order-item__media{width:54px;aspect-ratio:2/3;overflow:hidden;background:var(--hrx-soft)}
.hrx-order-item__image,.hrx-order-item__media img{display:block;width:100%;height:100%;object-fit:cover}
.hrx-order-item__content{display:flex;flex-direction:column;gap:4px;min-width:0}
.hrx-order-item__name{overflow:hidden;color:var(--hrx-ink);font-size:11.5px;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.hrx-order-item__content>span,.hrx-order-item__meta{color:var(--hrx-muted);font-size:8.8px;line-height:1.35;letter-spacing:.03em}
.hrx-order-item__meta p{margin:0}.hrx-order-item__meta dl,.hrx-order-item__meta dt,.hrx-order-item__meta dd{display:inline;margin:0;padding:0}.hrx-order-item__meta dt:after{content:": "}.hrx-order-item__meta dd:after{content:" · "}.hrx-order-item__meta dd:last-child:after{content:""}
.hrx-order-item__total{align-self:center;color:var(--hrx-ink);font-size:10.5px;font-weight:700;white-space:nowrap}

/* =========================================================
 * Popup portal
 * Desktop is deliberately smaller than the mega menu footprint.
 * Mobile mirrors the menu drawer width instead of using a giant full screen card.
 * ======================================================= */
.hrx-popup{
  position:fixed;
  inset:0;
  z-index:2147483000;
  visibility:hidden;
  color:var(--hrx-ink);
  font-family:var(--hrx-ui);
  font-size:14px;
  font-weight:400;
  line-height:1.35;
  letter-spacing:.018em;
  pointer-events:none;
  isolation:isolate;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  transition:visibility 0s linear 540ms;
}
.hrx-popup[hidden]{display:none!important}
.hrx-popup.is-open{visibility:visible;pointer-events:auto;transition-delay:0s}
.hrx-popup,.hrx-popup *,.hrx-popup *::before,.hrx-popup *::after{box-sizing:border-box}
.hrx-popup :where(button,input,select,textarea,a,label,p,span,strong,h1,h2,h3){font-family:inherit}
.hrx-popup *{text-shadow:none}

/* Backdrop is a DIV, not a button, so theme button hover rules cannot tint the whole viewport. */
.hrx-popup__backdrop{
  position:absolute;
  inset:0;
  z-index:0;
  background:rgba(17,17,17,.16)!important;
  opacity:0;
  cursor:default;
  transition:opacity 260ms ease;
}
.hrx-popup.is-open .hrx-popup__backdrop{opacity:1}

.hrx-popup__dialog{
  position:absolute;
  z-index:1;
  top:18px;
  bottom:18px;
  left:18px;
  width:min(520px,calc(100vw - 36px));
  max-width:520px;
  margin:0;
  padding:0;
  border:1px solid var(--hrx-rule);
  border-radius:0;
  outline:0;
  background:var(--hrx-paper)!important;
  background-color:var(--hrx-paper)!important;
  background-image:none!important;
  box-shadow:0 10px 32px rgba(18,17,16,.08);
  overflow:hidden;
  transform:translate3d(-104%,0,0);
  transition:transform 420ms cubic-bezier(.72,0,.16,1);
}
.hrx-popup.is-open .hrx-popup__dialog{transform:translate3d(0,0,0)}

.hrx-popup__header{
  position:relative;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  min-height:58px;
  padding:0 18px;
  border-bottom:1px solid var(--hrx-rule);
  background:var(--hrx-paper)!important;
}
.hrx-popup__close,
.hrx-popup__close:hover,
.hrx-popup__close:focus,
.hrx-popup__close:active{
  appearance:none!important;
  -webkit-appearance:none!important;
  justify-self:start!important;
  width:max-content!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0 0 3px!important;
  border:0!important;
  border-bottom:1px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--hrx-ink)!important;
  -webkit-text-fill-color:var(--hrx-ink)!important;
  font-family:var(--hrx-ui)!important;
  font-size:11px!important;
  font-weight:400!important;
  line-height:1!important;
  letter-spacing:.04em!important;
  text-decoration:none!important;
  text-transform:uppercase!important;
  cursor:pointer!important;
}
.hrx-popup__close:hover{border-bottom-color:var(--hrx-ink)!important}
.hrx-popup__brand{display:flex;align-items:center;justify-content:center;min-width:110px;max-width:190px}
.hrx-popup__brand img{display:block;width:auto;max-width:180px;height:auto;max-height:30px;object-fit:contain}
.hrx-popup__brand span{display:block;overflow:hidden;color:var(--hrx-ink);font-family:var(--hrx-accent);font-size:19px;line-height:1;text-overflow:ellipsis;white-space:nowrap}
.hrx-popup__header-spacer{justify-self:end;width:34px}

.hrx-popup__scroll{height:calc(100% - 58px);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;background:var(--hrx-paper)!important}
.hrx-popup__scroll::-webkit-scrollbar{display:none}
.hrx-popup__content{width:100%;max-width:none;margin:0;padding:24px 26px 32px;background:var(--hrx-paper)!important}
.hrx-popup__intro{max-width:430px;margin:0 0 16px}
.hrx-popup__intro .hrx-kicker{margin-bottom:6px;font-size:12.5px}
.hrx-popup__title{margin:0 0 8px;color:var(--hrx-ink)!important;font-family:var(--hrx-ui)!important;font-size:clamp(25px,2vw,30px)!important;font-style:normal!important;font-weight:400!important;line-height:.98!important;letter-spacing:-.01em!important;text-transform:none!important}
.hrx-popup__intro p{max-width:400px;margin:0;color:var(--hrx-muted);font-size:10.5px;line-height:1.45}
.hrx-popup .hrx-stepbar{margin-bottom:16px}
.hrx-popup .hrx-section-head{margin-bottom:12px}
.hrx-popup .hrx-section-head p{display:none}
.hrx-popup .hrx-grid{gap:16px;margin-bottom:16px}
.hrx-popup .hrx-form--request{margin-top:22px;padding-top:20px}
.hrx-popup .hrx-order-card__top{grid-template-columns:repeat(4,minmax(0,1fr))}
.hrx-popup .hrx-link--button{appearance:none!important;-webkit-appearance:none!important}
.hrx-popup .hrx-submit.is-loading{pointer-events:none!important}

/* Defensive reset against theme / Elementor accent rules. */
body .hrx-popup :is(button,input,select,textarea):not(.hrx-submit),
body .hrx-popup :is(button,input,select,textarea):not(.hrx-submit):hover,
body .hrx-popup :is(button,input,select,textarea):not(.hrx-submit):focus,
body .hrx-popup :is(button,input,select,textarea):not(.hrx-submit):active{
  box-shadow:none!important;
}
body .hrx-popup button::before,
body .hrx-popup button::after{display:none!important;content:none!important}

/* ---------- Confirmation page ---------- */
.hrx-confirmation{max-width:620px;padding:26px 0 8px;border-top:1px solid var(--hrx-ink)}
.hrx-confirmation__eyebrow{display:block;margin:0 0 12px;font-size:9.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.hrx-confirmation h2{margin:0 0 13px;color:var(--hrx-ink);font-size:clamp(30px,3.6vw,44px);font-weight:700;line-height:1;letter-spacing:-.02em}
.hrx-confirmation p{max-width:560px;margin:0 0 22px;color:var(--hrx-muted);font-size:12px;line-height:1.65}
.hrx-confirmation p strong{color:var(--hrx-ink);font-weight:700}

/* ---------- Tablet ---------- */
@media (max-width:900px){
  .hrx-popup__dialog{width:min(480px,calc(100vw - 28px));top:14px;bottom:14px;left:14px}
  .hrx-popup__content{padding:24px 22px 32px}
  .hrx-popup__title{font-size:26px!important}
}

/* ---------- Mobile ---------- */
@media (max-width:767px){
  .hrx-wrap{padding:58px 18px 72px}
  .hrx-title{font-size:34px}
  .hrx-grid--2{grid-template-columns:1fr}
  .hrx-section-head{display:block}
  .hrx-section-head>span{display:block;margin-bottom:7px}
  .hrx-section-head p{font-size:10.5px}
  .hrx-order-card__top{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
  .hrx-order-item{grid-template-columns:48px minmax(0,1fr);gap:10px}
  .hrx-order-item__media{width:48px}
  .hrx-order-item__total{grid-column:2;align-self:start;margin-top:-1px}
  .hrx-actions{gap:14px}

  .hrx-popup__dialog{
    top:0;
    bottom:0;
    left:0;
    width:min(94vw,420px);
    max-width:none;
    border-top:0;
    border-bottom:0;
    border-left:0;
    box-shadow:none;
  }
  .hrx-popup__header{min-height:58px;padding:0 16px}
  .hrx-popup__brand{max-width:min(46vw,180px)}
  .hrx-popup__brand img{max-width:min(46vw,180px);max-height:27px}
  .hrx-popup__brand span{font-size:18px}
  .hrx-popup__scroll{height:calc(100dvh - 58px)}
  .hrx-popup__content{padding:22px 16px 30px}
  .hrx-popup__intro{margin-bottom:14px}
  .hrx-popup__intro .hrx-kicker{font-size:12px}
  .hrx-popup__title{font-size:23px!important;margin-bottom:7px}
  .hrx-popup__intro p{font-size:10px;line-height:1.4}
  .hrx-popup .hrx-stepbar{margin-bottom:14px;padding:0 0 9px}
  .hrx-popup .hrx-stepbar__item{font-size:8px}
  .hrx-popup .hrx-grid--2{grid-template-columns:1fr}
  .hrx-popup .hrx-order-card__top{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hrx-popup .hrx-order-item{grid-template-columns:48px minmax(0,1fr);gap:10px}
  .hrx-popup .hrx-order-item__media{width:48px}
  .hrx-popup .hrx-order-item__total{grid-column:2}
  .hrx-popup .hrx-submit{min-width:146px!important;min-height:38px!important;padding:0 15px!important;font-size:10px!important}
  .hrx-popup .hrx-small{font-size:9px}
}

@media (max-width:390px){
  .hrx-popup__dialog{width:100vw}
  .hrx-popup__content{padding-right:14px;padding-left:14px}
  .hrx-popup__header{padding-right:14px;padding-left:14px}
  .hrx-popup__close{font-size:10.5px!important}
  .hrx-popup__brand img{max-width:150px}
  .hrx-popup__title{font-size:23px!important}
  .hrx-actions{align-items:flex-start;flex-direction:column}
}

@media (prefers-reduced-motion:reduce){
  .hrx-popup,.hrx-popup__backdrop,.hrx-popup__dialog{transition:none!important}
}

/* =========================================================
 * v1.6.0 desktop refinement
 * - Return drawer is edge-attached and slides left -> right.
 * - Desktop typography is intentionally larger than v1.5.0.
 * - DUONG ATELIER desktop navigation gets a restrained size lift.
 * ======================================================= */
@media (min-width:901px){
  .hrx-popup{font-size:15px}
  .hrx-popup__dialog{
    top:0;
    bottom:0;
    left:0;
    width:min(470px,34vw);
    max-width:470px;
    border-top:0;
    border-bottom:0;
    border-left:0;
    border-right:1px solid var(--hrx-rule);
    box-shadow:none;
    transform:translate3d(-100%,0,0);
    transition:transform 500ms cubic-bezier(.72,0,.16,1);
  }
  .hrx-popup.is-open .hrx-popup__dialog{transform:translate3d(0,0,0)}
  .hrx-popup__header{min-height:64px;padding:0 22px}
  .hrx-popup__scroll{height:calc(100dvh - 64px)}
  .hrx-popup__content{padding:24px 26px 34px}
  .hrx-popup__close{font-size:12px!important}
  .hrx-popup__brand img{max-width:190px;max-height:32px}
  .hrx-popup__brand span{font-size:20px}
  .hrx-popup__intro{margin-bottom:16px}
  .hrx-popup__intro .hrx-kicker{font-size:13px}
  .hrx-popup__title{font-size:clamp(28px,2vw,31px)!important;line-height:1!important;font-weight:400!important;letter-spacing:-.01em!important}
  .hrx-popup__intro p{font-size:11.5px;line-height:1.45}
  .hrx-popup .hrx-stepbar__item{font-size:9.5px}
  .hrx-popup .hrx-section-head>span{font-size:10.5px}
  .hrx-popup .hrx-field>span{font-size:10.5px}
  .hrx-popup .hrx-field input,
  .hrx-popup .hrx-field select,
  .hrx-popup .hrx-field textarea{font-size:14px!important}
  .hrx-popup .hrx-consent{font-size:11.5px}
  .hrx-popup .hrx-submit{min-height:42px!important;padding:0 20px!important;font-size:11.5px!important}
  .hrx-popup .hrx-link{font-size:10.5px!important}
  .hrx-popup .hrx-small{font-size:10.5px}
  .hrx-popup .hrx-order-card__label{font-size:8.8px}
  .hrx-popup .hrx-order-card__top strong{font-size:12.5px}
  .hrx-popup .hrx-order-item__name{font-size:12.5px}
  .hrx-popup .hrx-order-item__content>span,
  .hrx-popup .hrx-order-item__meta{font-size:9.6px}
  .hrx-popup .hrx-order-item__total{font-size:11.5px}

  /* Keep the menu family visually consistent with the return drawer. */
  .dakm4[data-mode="desktop"]{
    --dakm4-desktop-submenu-size:clamp(15px,1.08vw,17px);
    --dakm4-desktop-submenu-nested-size:clamp(14px,.98vw,15.5px);
  }
  .dakm4[data-mode="desktop"] .dakm4__desktop-root{
    font-size:clamp(16px,1.16vw,17.5px)!important;
  }
  .dakm4[data-mode="desktop"] .dakm4__desktop-utility a,
  .dakm4[data-mode="desktop"] .dakm4__desktop-utility button{
    font-size:clamp(11px,.78vw,12.5px)!important;
  }
}


/* v1.6.2 visual cleanup */
.hrx-popup .hrx-section-head{display:block}
.hrx-popup .hrx-section-head>span{display:block}


/* v1.6.6 independent popup success state */
.hrx-popup-success{padding:4px 0 8px}
.hrx-popup-success__eyebrow{display:block;margin:0 0 10px;font-size:9.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.hrx-popup-success h3{margin:0 0 12px;color:var(--hrx-ink);font-family:var(--hrx-ui);font-size:30px;font-style:normal;font-weight:400;line-height:1;letter-spacing:-.01em}
.hrx-popup-success p{max-width:390px;margin:0 0 12px;color:var(--hrx-muted);font-size:11px;line-height:1.55}
.hrx-popup-success p strong{color:var(--hrx-ink);font-weight:700}
.hrx-popup-success .hrx-submit{margin-top:10px!important}
