/* BeYou Size Guide — storefront styles */
/* ── RESET ─────────────────────────────────────────── */
.byz4 *, .byz4 *::before, .byz4 *::after,
.byz4-ov *, .byz4-ov *::before, .byz4-ov *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.byz4 a, .byz4 a:hover, .byz4 a:focus, .byz4 a:visited,
.byz4-ov a, .byz4-ov a:hover, .byz4-ov a:focus, .byz4-ov a:visited { text-decoration: none !important; }

/* ══ TRIGGER — simple text row (fit note left, "Size guide" link right) ══ */
.byz4 {
  display: block;
  width: 100%;
  margin: 2px 0 4px;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.byz4-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.byz4-fit {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: rgba(32,50,78,0.72);
}
.byz4-fit svg { flex-shrink: 0; color: #20324E; }

.byz4 .byz4-link {
  -webkit-appearance: none; appearance: none;
  flex-shrink: 0;
  min-height: 0; min-width: 0;
  margin: 0; padding: 12px 0;           /* 44px+ touch target, text still looks tiny */
  border: 0; border-radius: 0;
  background: none; box-shadow: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px; font-weight: 600; line-height: 1;
  letter-spacing: 0.01em;
  color: #20324E;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.1s ease-out;    /* response on press: instant */
}
.byz4 .byz4-link span {
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .byz4 .byz4-link:hover span { background-size: 100% 2px; }
}
.byz4 .byz4-link:active { opacity: 0.55; }
.byz4 .byz4-link:focus-visible { outline: 2px solid #20324E; outline-offset: 2px; border-radius: 4px; }

@media (max-width: 380px) { .byz4-fit { font-size: 12px; } }

/* ── OVERLAY ───────────────────────────────────────── */
.byz4-ov {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.byz4-ov.byz4-open { opacity: 1; pointer-events: all; }

/* ── SCRIM ─────────────────────────────────────────── */
.byz4-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.58);
  backdrop-filter: blur(6px) saturate(1.4);
  -webkit-backdrop-filter: blur(6px) saturate(1.4);
}

/* ── SHEET ─────────────────────────────────────────── */
.byz4-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  max-height: 90dvh;
  background: #FFFFFF;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  box-shadow:
    0 -1px 0 rgba(32,50,78,0.07),
    0 -12px 40px rgba(32,50,78,0.14),
    0 -40px 80px rgba(32,50,78,0.08);
}
.byz4-ov.byz4-open .byz4-sheet { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .byz4-sheet { transition: transform 180ms ease; }
  .byz4-ov    { transition: opacity 140ms ease; }
}

/* ── DRAG HANDLE (grab + pull down to close) ───────── */
.byz4-pill {
  width: 100%;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: grab;
}
.byz4-pill::before {
  content: '';
  width: 36px; height: 4px;
  background: #DDE1E9;
  border-radius: 100px;
}
.byz4-pill:active { cursor: grabbing; }

/* ── PRODUCT HEADER ────────────────────────────────── */
.byz4-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 16px 14px;
  border-bottom: 1px solid rgba(32,50,78,0.07);
  flex-shrink: 0;
  touch-action: none;
}
.byz4-hd-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

.byz4-img-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #E8EAF0;
  overflow: hidden;
  flex-shrink: 0;
  background: #F5F4F1;
  box-shadow: 0 2px 8px rgba(32,50,78,0.09);
  position: relative;
}
.byz4-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: opacity 0.30s ease;
}
.byz4-img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #F5F3EE 0%, rgba(32,50,78,0.12) 100%);
}

.byz4-meta { min-width: 0; flex: 1; }
.byz4-brand {
  font-size: 14px;
  font-weight: 700;
  color: #20324E;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.byz4-pname {
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(32,50,78,0.50);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.byz4-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.byz4-price-now { font-size: 14px; font-weight: 700; color: #20324E; letter-spacing: -0.01em; }
.byz4-price-mrp { font-size: 11.5px; color: #B0B8C8; text-decoration: line-through; }
.byz4-price-off {
  font-size: 10.5px;
  font-weight: 700;
  color: #20324E;
  background: rgba(32,50,78,0.07);
  padding: 1px 7px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* Close button */
.byz4-close {
  width: 30px; height: 30px;
  min-width: 30px; min-height: 30px;
  border-radius: 50% !important;
  border: none;
  background: #20324E;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(32,50,78,0.30);
  transition: background 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.18s ease;
  aspect-ratio: 1 / 1;
  -webkit-tap-highlight-color: transparent;
}
.byz4-close:hover {
  background: #1a2840;
  transform: scale(1.10) rotate(90deg);
  box-shadow: 0 4px 16px rgba(32,50,78,0.36);
}
.byz4-close:active { transform: scale(0.90); }
.byz4-close:focus-visible, .byz4-tab:focus-visible, .byz4-uBtn:focus-visible, .byz4-add:focus-visible, .byz4-help:focus-visible {
  outline: 2px solid #20324E; outline-offset: 2px;
}

/* ── SWIPE HINT ────────────────────────────────────── */
.byz4-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px 7px;
  background: rgba(32,50,78,0.03);
  border-bottom: 1px solid rgba(32,50,78,0.07);
  flex-shrink: 0;
}
.byz4-swipe-hint-text { font-size: 10.5px; font-weight: 500; color: rgba(32,50,78,0.45); letter-spacing: 0.03em; }
.byz4-swipe-arrows { display: flex; align-items: center; gap: 2px; animation: byz4Nudge 2.4s ease-in-out infinite; }
@keyframes byz4Nudge {
  0%,100% { transform: translateX(0); opacity: 0.5; }
  40%      { transform: translateX(4px); opacity: 1; }
  60%      { transform: translateX(4px); opacity: 1; }
  80%      { transform: translateX(0); opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) { .byz4-swipe-arrows { animation: none; } }

/* ── TABS ──────────────────────────────────────────── */
.byz4-tabs {
  display: flex;
  border-bottom: 1.5px solid rgba(32,50,78,0.08);
  flex-shrink: 0;
  padding: 0 16px;
  gap: 0;
  background: #fff;
}
.byz4-tab {
  position: relative;
  padding: 13px 0;
  margin-right: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(32,50,78,0.45);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: color 0.20s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.byz4-tab::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0; right: 0;
  height: 2px;
  background: #20324E;
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.byz4-tab.active { color: #20324E; }
.byz4-tab.active::after { transform: scaleX(1); }

/* ── in / cm TOGGLE ────────────────────────────────── */
.byz4-unit-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 16px 2px;
  flex-shrink: 0;
}
.byz4-toggle { display: flex; background: #F1EFEA; border-radius: 100px; padding: 2px; }
.byz4-uBtn {
  padding: 4px 16px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(32,50,78,0.50);
  letter-spacing: 0.06em;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.byz4-uBtn.active { background: #20324E; color: #fff; box-shadow: 0 2px 8px rgba(32,50,78,0.30); }

/* ── SCROLLABLE BODY ───────────────────────────────── */
.byz4-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 8px;
}
.byz4-body::-webkit-scrollbar { width: 3px; }
.byz4-body::-webkit-scrollbar-track { background: transparent; }
.byz4-body::-webkit-scrollbar-thumb { background: #D8DCE8; border-radius: 10px; }

/* ── PANEL ─────────────────────────────────────────── */
.byz4-panel { display: none; }
.byz4-panel.active { display: block; animation: byz4PanIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes byz4PanIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .byz4-panel.active { animation: none; } }

/* ── SECTION HEADER ────────────────────────────────── */
.byz4-sec { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; }
.byz4-sec-icon { flex-shrink: 0; color: #20324E; }
.byz4-sec-txt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #20324E;
  white-space: nowrap;
}
.byz4-sec-line { flex: 1; height: 1px; background: rgba(32,50,78,0.08); }

/* ── TABLE ─────────────────────────────────────────── */
.byz4-tscroll {
  overflow-x: auto;
  margin: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(32,50,78,0.08);
}
.byz4-tscroll::-webkit-scrollbar { height: 2px; }
.byz4-tscroll::-webkit-scrollbar-thumb { background: #D0D4E0; border-radius: 10px; }

table.byz4-t { width: 100%; min-width: 400px; border-collapse: collapse; background: #fff; }

table.byz4-t thead tr { background: #FAF9F7; }
table.byz4-t thead th {
  padding: 9px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(32,50,78,0.50);
  text-align: center;
  border-bottom: 1px solid rgba(32,50,78,0.08);
  white-space: nowrap;
}
table.byz4-t thead th:first-child { text-align: left; padding-left: 14px; }
table.byz4-t thead th.byz4-wh { color: #20324E; font-weight: 700; }

table.byz4-t tbody tr {
  cursor: pointer;
  transition: background 0.13s ease;
  border-bottom: 1px solid #F5F4F1;
}
table.byz4-t tbody tr:last-child { border-bottom: none; }
table.byz4-t tbody tr:hover { background: #FAF9F7; }
table.byz4-t tbody tr.byz4-sel { background: #F1EFEA; }
table.byz4-t tbody tr.byz4-sel:hover { background: #ECE9E2; }

table.byz4-t tbody td {
  padding: 13px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: #4A5468;
  vertical-align: middle;
  transition: color 0.13s;
}
table.byz4-t tbody td:first-child { text-align: left; padding-left: 14px; }
table.byz4-t tbody tr.byz4-sel td { color: #20324E; font-weight: 500; }

td.byz4-wc { font-weight: 700 !important; color: #20324E !important; }
tr.byz4-sel td.byz4-wc { color: #20324E !important; }

.byz4-sz {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: #20324E;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.byz4-radio {
  width: 17px; height: 17px;
  border: 1.5px solid #C8CEDC;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.18s ease;
  position: relative;
}
.byz4-radio::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #20324E;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
tr.byz4-sel .byz4-radio { border-color: #20324E; }
tr.byz4-sel .byz4-radio::after { opacity: 1; transform: scale(1); }

/* ── NOTE STRIP ────────────────────────────────────── */
.byz4-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 16px 4px;
  background: #FAF9F7;
  border: 1px solid #E4E8F2;
  border-radius: 10px;
  padding: 11px 13px;
}
.byz4-note-ico { flex-shrink: 0; color: #20324E; margin-top: 1px; }
.byz4-note-txt { font-size: 11px; font-weight: 400; color: rgba(32,50,78,0.62); line-height: 1.75; }
.byz4-note-txt strong { font-weight: 700; color: #20324E; }

/* ── HOW TO MEASURE ────────────────────────────────── */
.byz4-htm { padding: 0 16px 4px; }
.byz4-htm-title {
  font-size: 13px;
  font-weight: 700;
  color: #20324E;
  padding: 14px 0 12px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(32,50,78,0.08);
  margin-bottom: 12px;
}
.byz4-htm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.byz4-htm-card {
  background: #FAF9F7;
  border: 1px solid rgba(32,50,78,0.08);
  border-radius: 12px;
  padding: 13px 12px;
  transition: box-shadow 0.20s ease, transform 0.30s cubic-bezier(0.22, 1, 0.36, 1);
}
.byz4-htm-card:hover { box-shadow: 0 4px 16px rgba(32,50,78,0.09); transform: translateY(-2px); }
.byz4-htm-ico {
  width: 30px; height: 30px;
  background: rgba(32,50,78,0.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 9px;
  color: #20324E;
}
.byz4-htm-name { font-size: 12px; font-weight: 700; color: #20324E; margin-bottom: 4px; letter-spacing: -0.01em; }
.byz4-htm-desc { font-size: 10.5px; font-weight: 400; color: #7A849A; line-height: 1.65; }
.byz4-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: rgba(32,50,78,0.04);
  border: 1px solid rgba(32,50,78,0.09);
  border-radius: 10px;
  padding: 11px 13px;
  margin-top: 9px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(32,50,78,0.62);
  line-height: 1.72;
}
.byz4-tip strong { font-weight: 700; color: #20324E; }
.byz4-tip-ico { flex-shrink: 0; color: #20324E; margin-top: 1px; }

/* ── BOTTOM BAR : help + add to cart ──────────────── */
.byz4-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(32,50,78,0.08);
  background: #fff;
  flex-shrink: 0;
}
.byz4-help {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  border: 1.5px solid rgba(32,50,78,0.12);
  background: #fff;
  color: #20324E;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.byz4-help:hover { border-color: rgba(32,50,78,0.4); background: #FAF9F7; }
.byz4-help:active { transform: scale(0.94); }

.byz4-add {
  -webkit-appearance: none; appearance: none;
  position: relative;
  flex: 1; min-width: 0;
  height: 48px; min-height: 0;
  margin: 0; padding: 0 18px;
  border: 0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #20324E; color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(32,50,78,0.26);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.1s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.byz4-add:hover { background: #2c4470; }
.byz4-add:active { transform: scale(0.97); }          /* feedback on press */
.byz4-add.need { background: rgba(32,50,78,0.10); color: #20324E; box-shadow: none; }
.byz4-add.need:hover { background: rgba(32,50,78,0.14); }
.byz4-add-size {
  display: none;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(255,255,255,0.18);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.byz4-add.has-size .byz4-add-size { display: inline-block; }
.byz4-add-ico { display: none; flex-shrink: 0; }
.byz4-add.loading .byz4-add-ico.spin,
.byz4-add.done .byz4-add-ico.tick { display: block; }
.byz4-add.loading, .byz4-add.done { pointer-events: none; }
.byz4-add.done .tick { color: #20324E; }
.byz4-add-ico.spin { animation: byz4Spin 0.8s linear infinite; }
@keyframes byz4Spin { to { transform: rotate(360deg); } }

/* ── ROW STATES (size picking) ─────────────────────── */
.byz4-t tbody tr:focus-visible { outline: 2px solid #20324E; outline-offset: -2px; }
table.byz4-t tbody tr:active { background: #ECE9E2; }
table.byz4-t tbody tr.byz4-na { cursor: not-allowed; }
table.byz4-t tbody tr.byz4-na:hover,
table.byz4-t tbody tr.byz4-na:active { background: transparent; }
table.byz4-t tbody tr.byz4-na td,
.byz4-na .byz4-sz { color: #B5BCCB !important; font-weight: 400 !important; text-decoration: line-through; }
.byz4-na .byz4-radio { border-color: rgba(32,50,78,0.12); background: #F5F4F1; }

.byz4-tscroll.byz4-nudge { animation: byz4Shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes byz4Shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.byz4-inl { color: #20324E; font-weight: 600; border-bottom: 1px solid rgba(32,50,78,0.35); }
@media (prefers-reduced-motion: reduce) {
  .byz4-tscroll.byz4-nudge { animation: none; }
  .byz4-add-ico.spin { animation-duration: 1.6s; }
}

/* ── MOBILE ────────────────────────────────────────── */
@media (max-width: 480px) {
  .byz4-htm-grid { grid-template-columns: 1fr; }
  .byz4-pname { display: none; }
}

/* ── HARD RESET against site-wide glass/overlay CSS ───
 * Some other global style on the site (theme/Elementor custom CSS) is
 * matching .byz4-ov / .byz4-sheet and forcing isolation:isolate + contain:layout
 * on the overlay and a translucent background + backdrop-filter:blur() on the
 * sheet. On this site that combination breaks the blur, so the sheet renders
 * see-through and the product gallery behind it bleeds through, looking like
 * the size chart "overlaps" the photos. Force this popup back to a fully
 * opaque sheet and a plain stacking context, regardless of what else loads. */
.byz4-ov {
  isolation: auto !important;
  contain: none !important;
}
.byz4-sheet {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
