/* REV053 — same shared Office controls, portalled above the scrolling story.
   Derived from office-locations.css and its final bilingual-mobile overrides. */
.product-detail #detail-footer .office-locations {
  position: absolute;
  z-index: 16;
  left: 50%;
  bottom: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: max-content;
  max-width: calc(100% - 420px);
  min-height: 44px;
  transform: translateX(-50%);
  color: #f5f2ea80;
  font: 400 9px/1.5 monospace;
  letter-spacing: .1em;
  pointer-events: auto;
}
.product-detail #detail-footer .office-location { position: relative; min-width: 0; }
.product-detail #detail-footer .office-location-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
.product-detail #detail-footer .office-location-trigger:hover,
.product-detail #detail-footer .office-location-trigger[aria-expanded="true"] { color: var(--gold, #d7b44a); }
.product-detail #detail-footer .office-location-trigger:focus-visible {
  outline: 2px solid var(--gold, #d7b44a);
  outline-offset: 3px;
}
.product-detail #detail-footer .office-locations > * + * {
  border-left: 0;
  padding-left: 16px;
  background-image: linear-gradient(rgb(245 242 234 / .2), rgb(245 242 234 / .2));
  background-position: left center;
  background-size: 1px .9em;
  background-repeat: no-repeat;
}
.product-detail #detail-footer .office-location-card {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  width: 258px;
  max-width: calc(100vw - 32px);
  padding: 16px 18px;
  border: 1px solid rgb(215 180 74 / .42);
  border-radius: 6px;
  background: rgb(9 11 11 / .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgb(0 0 0 / .25);
  transform: translateX(-50%);
  color: var(--editorial-paper, #e1ddcf);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -.01em;
  text-align: left;
  white-space: normal;
}
.product-detail #detail-footer .office-location-card[hidden] { display: none; }
.product-detail #detail-footer .office-location-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgb(215 180 74 / .42);
  border-bottom: 1px solid rgb(215 180 74 / .42);
  background: #090b0b;
  transform: translateX(-50%) rotate(45deg);
}
.product-detail #detail-footer .office-location-card > p {
  margin: 0 0 7px;
  color: var(--gold, #d7b44a);
  font-size: 11px;
  font-weight: 550;
}
.product-detail #detail-footer .office-location-card address { margin: 0; font-style: normal; overflow-wrap: break-word; }
.product-detail #detail-footer .office-location-card address span {
  display: block;
  margin-top: 4px;
  color: rgb(245 242 234 / .55);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .product-detail #detail-footer .office-locations { gap: 10px; }
  .product-detail #detail-footer .office-locations > * + * { padding-left: 10px; }
}
@media (min-width: 761px) and (max-width: 850px) {
  .product-detail #detail-footer .office-locations { left: calc(50% + 20px); max-width: calc(100% - 360px); gap: 7px; }
  .product-detail #detail-footer .office-locations > * + *,
.product-detail #detail-footer .office-locations > .office-location-link { padding-left: 7px; }
}
@media (min-width: 761px) and (max-height: 850px) {
  .product-detail #detail-footer .office-locations { bottom: 9px; }
}

@media (max-width: 760px) {
  .product-detail #detail-footer .office-locations {
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 68px));
    gap: 6px;
    width: max-content;
    max-width: calc(100% - 32px);
    font-size: 8px;
    letter-spacing: .06em;
  }
  .product-detail #detail-footer .office-locations > * + * { padding-left: 6px; }
  .product-detail #detail-footer .office-location-trigger { padding-right: 0; padding-left: 0; }
  .product-detail #detail-footer .office-locations > .office-location-link { padding-left: 6px; }
  .product-detail #detail-footer .office-location { position: static; }
  .product-detail #detail-footer .office-location-card {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: calc(100% + 8px);
    width: min(300px, calc(100vw - 32px));
    max-width: none;
    margin: 0;
    transform: translateX(-50%);
    font-size: 12.5px;
  }
  .product-detail #detail-footer .office-location-card::after { display: none; }
}

@media (min-width: 641px) and (max-width: 760px) and (max-height: 560px) and (orientation: landscape) {
  .product-detail #detail-footer .office-locations {
    left: 196px;
    right: 180px;
    bottom: max(6px, calc(env(safe-area-inset-bottom) + 6px));
    width: auto;
    max-width: none;
    transform: none;
  }
  .product-detail #detail-footer .office-location-card {
    bottom: calc(100% + 8px);
  }
}

.product-detail #detail-footer .office-label-short { display: none; }
@media (max-width: 760px) {
  .product-detail #detail-footer .office-locations {
    left: 50%;
    right: auto;
    bottom: max(8px, calc(env(safe-area-inset-bottom) + 8px));
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100% - 24px);
    height: 44px;
    min-height: 44px;
    gap: 10px;
    transform: translateX(-50%);
    font-size: 8.5px;
    line-height: 1.4;
    letter-spacing: .025em;
  }
  .product-detail #detail-footer .office-locations .office-label-long { display: none; }
  .product-detail #detail-footer .office-locations .office-label-short { display: inline; }
  .product-detail #detail-footer .office-locations > * + *,
.product-detail #detail-footer .office-locations > .office-location-link { padding-left: 10px; background-size: 1px .8em; }
  .product-detail #detail-footer .office-location-trigger { min-width: 44px; min-height: 44px; height: 44px; }
  .product-detail #detail-footer .office-location-card { bottom: calc(100% + 12px); }
}


.product-detail #detail-footer { position:fixed; inset:0; z-index:16; pointer-events:none; }
.product-detail #detail-footer::before { content:""; position:absolute; left:0; right:0; bottom:0; height:80px; background:linear-gradient(to top,rgb(9 11 11 / .97),transparent); pointer-events:none; }
.product-detail #detail-footer .office-locations { pointer-events:auto; }

/* One thin shared capsule; address disclosures retain their independent layers. */
body.product-detail #detail-footer nav.office-locations {
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 48px);
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  gap: 0;
  flex-wrap: nowrap;
  overflow: visible;
  border: 1px solid rgb(178 189 177 / .23);
  border-radius: 999px;
  background: rgb(12 15 13 / .9);
  box-shadow: 0 2px 8px rgb(0 0 0 / .12);
  color: rgb(245 242 234 / .76);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .04em;
}
body.product-detail #detail-footer nav.office-locations > * + * {
  padding-left: 0;
  border-left: 0;
  background-image: linear-gradient(rgb(188 197 184 / .24), rgb(188 197 184 / .24));
  background-position: left center;
  background-size: 1px 12px;
  background-repeat: no-repeat;
}
body.product-detail #detail-footer nav.office-locations .office-location-trigger {
  box-sizing: border-box;
  min-width: 0;
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  transition: color .2s ease, background-color .2s ease;
}
body.product-detail #detail-footer nav.office-locations .office-location-trigger:hover,
body.product-detail #detail-footer nav.office-locations .office-location-trigger[aria-expanded="true"] {
  background-color: rgb(157 167 141 / .06);
  color: var(--gold, #d7b44a);
}
body.product-detail #detail-footer nav.office-locations .office-location-trigger:focus-visible {
  outline: 1px solid rgb(215 180 74 / .8);
  outline-offset: -3px;
}
@media (max-width: 760px) {
  body.product-detail #detail-footer nav.office-locations {
    max-width: calc(100% - 24px);
    height: 28px;
    min-height: 28px;
    padding: 0 5px;
    gap: 0;
    font-size: 8px;
    letter-spacing: .01em;
  }
  body.product-detail #detail-footer nav.office-locations .office-location-trigger {
    min-width: 0;
    height: 26px;
    min-height: 26px;
    padding: 0 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.product-detail #detail-footer nav.office-locations .office-location-trigger { transition: none; }
}
body.product-detail #detail-footer nav.office-locations .office-copyright {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 30px;
  padding: 0 8px;
  color: rgb(245 242 234 / .46);
  font-size: 8px;
  letter-spacing: 0;
  white-space: nowrap;
}
body.product-detail #detail-footer nav.office-locations .office-copyright-short { display: none; }
@media (max-width: 760px) {
  body.product-detail #detail-footer nav.office-locations .office-copyright {
    height: 26px;
    padding: 0 6px;
    font-size: 7px;
  }
  body.product-detail #detail-footer nav.office-locations .office-copyright-long { display: none; }
  body.product-detail #detail-footer nav.office-locations .office-copyright-short { display: inline; }
}
