/* BeYou Size Finder — styles. Loaded by beyou-size-finder.php */

/* ── trigger row (injected under the size chips) ── */
.byf-trig-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 14px; font-family: 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
.byf-trig-txt { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; line-height: 1.35; color: rgba(32,50,78,0.68); }
.byf-trig-txt svg { flex-shrink: 0; color: #20324E; }
.byf-trig-row button.byf-trig {
  -webkit-appearance: none !important; appearance: none !important;
  flex-shrink: 0; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 12px 0 !important;
  border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  font-family: 'DM Sans', sans-serif !important; font-size: 12.5px !important; font-weight: 600 !important; line-height: 1 !important;
  letter-spacing: 0.01em !important; text-transform: none !important; color: #20324E !important; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; transition: opacity 0.1s ease-out;
}
.byf-trig-row button.byf-trig 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) { .byf-trig-row button.byf-trig:hover span { background-size: 100% 2px; } }
.byf-trig-row button.byf-trig:active { opacity: 0.55; }

/* ── sheet ── */
.byf, .byf * { box-sizing: border-box; }
.byf {
  --navy: #20324E; --caramel: #20324E;
  --out: cubic-bezier(0.22, 1, 0.36, 1); --sheet: cubic-bezier(0.32, 0.72, 0, 1);
  position: fixed; inset: 0; z-index: 2147483600;
  visibility: hidden; pointer-events: none;
  font-family: 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased;
  transition: visibility 0s linear 0.5s;
}
.byf.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.byf-scrim { position: absolute; inset: 0; background: rgba(8,12,20,0.55); -webkit-backdrop-filter: blur(6px) saturate(1.4); backdrop-filter: blur(6px) saturate(1.4); opacity: 0; transition: opacity 0.3s ease; }
.byf.is-open .byf-scrim { opacity: 1; }
.byf-sheet {
  position: absolute; left: 50%; bottom: 0;
  width: min(520px, 100%); max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 24px 24px 0 0; overflow: hidden;
  transform: translate(-50%, 100%); transition: transform 0.46s var(--sheet);
  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);
}
.byf.is-open .byf-sheet { transform: translate(-50%, 0); }

.byf-grab { height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; }
.byf-grab::before { content: ''; width: 36px; height: 4px; border-radius: 100px; background: rgba(32,50,78,0.18); }
.byf-head { flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 2px 20px 14px; touch-action: none; }
.byf-title { margin: 0; padding: 0; font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: 0.01em; color: var(--navy); }
.byf-sub { margin: 6px 0 0; padding: 0; font-size: 13px; line-height: 1.45; color: rgba(32,50,78,0.60); }

/* theme-proofed buttons */
.byf button { -webkit-tap-highlight-color: transparent; }
.byf button.byf-x {
  -webkit-appearance: none !important; appearance: none !important; flex-shrink: 0;
  width: 36px !important; height: 36px !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  border: 0 !important; border-radius: 50% !important; box-shadow: none !important;
  background: rgba(32,50,78,0.07) !important; color: #20324E !important; cursor: pointer; transition: background 0.2s ease, transform 0.1s ease-out;
}
.byf button.byf-x:hover { background: rgba(32,50,78,0.13) !important; }
.byf button.byf-x:active { transform: scale(0.9); }
.byf button svg { display: block !important; fill: none !important; stroke: currentColor !important; }

/* segmented control */
.byf-seg { position: relative; flex-shrink: 0; margin: 0 20px 6px; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 13px; background: rgba(32,50,78,0.07); }
.byf-seg-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(32,50,78,0.14); transition: transform 0.4s var(--out); }
.byf-seg[data-on="m"] .byf-seg-ind { transform: translateX(100%); }
.byf button.byf-tab {
  -webkit-appearance: none !important; appearance: none !important; position: relative; z-index: 1;
  height: 38px !important; min-height: 0 !important; margin: 0 !important; padding: 0 8px !important; border: 0 !important; border-radius: 10px !important;
  background: transparent !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important;
  font-family: 'DM Sans', sans-serif !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1 !important;
  color: rgba(32,50,78,0.55) !important; cursor: pointer; transition: color 0.25s ease;
}
.byf button.byf-tab.on { color: #20324E !important; }

/* body */
.byf-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 20px 18px; }
.byf-pane[hidden] { display: none; }
.byf-pane { animation: byfIn 0.35s var(--out) both; }
@keyframes byfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.byf-field { margin: 10px 0 20px; }
.byf-ftop { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.byf-ftop label, .byf-lbl { margin: 0; padding: 0; font-size: 13px; font-weight: 600; color: rgba(32,50,78,0.70); }
.byf-val { flex: 1; text-align: right; font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: 0.01em; color: var(--navy); font-variant-numeric: tabular-nums; }
.byf-unit { display: inline-flex; padding: 2px; border-radius: 100px; background: rgba(32,50,78,0.07); }
.byf button.byf-u {
  -webkit-appearance: none !important; appearance: none !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important;
  padding: 5px 12px !important; border: 0 !important; border-radius: 100px !important; box-shadow: none !important; text-transform: none !important;
  background: transparent !important; color: rgba(32,50,78,0.60) !important;
  font-family: 'DM Sans', sans-serif !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.02em !important; line-height: 1 !important;
  cursor: pointer; transition: background 0.22s ease, color 0.22s ease;
}
.byf button.byf-u.on { background: #20324E !important; color: #fff !important; }

/* sliders */
.byf-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; padding: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.byf-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, #20324E var(--pct, 50%), rgba(32,50,78,0.12) var(--pct, 50%)); }
.byf-range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(32,50,78,0.12); }
.byf-range::-moz-range-progress { height: 6px; border-radius: 3px; background: #20324E; }
.byf-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2px solid #20324E; box-shadow: 0 3px 10px rgba(32,50,78,0.25); transition: transform 0.15s var(--out); }
.byf-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #20324E; box-shadow: 0 3px 10px rgba(32,50,78,0.25); }
.byf-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.byf-range:focus-visible { outline: 2px solid #20324E; outline-offset: 4px; border-radius: 6px; }

/* measurements */
.byf-mhead { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 14px; }
.byf-mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.byf-mf label { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: rgba(32,50,78,0.70); }
.byf input.byf-in {
  -webkit-appearance: none !important; appearance: none !important; width: 100% !important; height: 50px !important; margin: 0 !important; padding: 0 12px !important;
  border: 1.5px solid rgba(32,50,78,0.14) !important; border-radius: 13px !important; background: #fff !important; box-shadow: none !important;
  font-family: 'Oswald', sans-serif !important; font-size: 20px !important; font-weight: 500 !important; color: #20324E !important; text-align: center;
  transition: border-color 0.2s ease;
}
.byf input.byf-in:focus { outline: none !important; border-color: #20324E !important; }
.byf input.byf-in::placeholder { color: rgba(32,50,78,0.28); }
.byf-mnote { margin: 12px 0 4px; font-size: 12px; line-height: 1.5; color: rgba(32,50,78,0.55); }

/* body shape picker */
.byf-shape { margin: 8px 0 18px; }
.byf-shead { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.byf-opt { margin-left: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: rgba(32,50,78,0.42); }
.byf button.byf-clear {
  -webkit-appearance: none !important; appearance: none !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 6px 2px !important;
  border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; text-transform: none !important;
  font-family: 'DM Sans', sans-serif !important; font-size: 12.5px !important; font-weight: 600 !important; letter-spacing: 0.01em !important; line-height: 1 !important;
  color: #20324E !important; cursor: pointer; transition: opacity 0.1s ease-out;
}
.byf button.byf-clear[hidden] { display: none !important; }
.byf button.byf-clear:active { opacity: 0.5; }

.byf-rail {
  position: relative; display: flex; gap: 10px; margin: 4px -20px 0; padding: 6px 20px 10px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; scroll-padding: 0 20px; scrollbar-width: none; touch-action: pan-x pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%);
}
.byf-rail::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .byf-rail { cursor: grab; } .byf-rail.drag { cursor: grabbing; } }
.byf-rail.drag, .byf-rail.coast { scroll-snap-type: none; }
.byf-rail.drag .byf-card { pointer-events: none; }

.byf button.byf-card {
  -webkit-appearance: none !important; appearance: none !important; position: relative; flex: 0 0 auto; width: 96px !important; min-width: 0 !important; min-height: 0 !important;
  display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 6px; margin: 0 !important; padding: 6px 6px 8px !important;
  border: 1.5px solid rgba(32,50,78,0.10) !important; border-radius: 18px !important; background: #FAF9F7 !important; box-shadow: none !important; text-transform: none !important;
  color: #20324E !important; text-align: center; cursor: pointer; scroll-snap-align: start; user-select: none; -webkit-user-select: none;
  transition: transform 0.1s ease-out, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.35s var(--out);
}
.byf button.byf-card:active { transform: scale(0.96); }
.byf button.byf-card.on {
  border-color: #20324E !important; background: #fff !important;
  box-shadow: 0 6px 18px rgba(32,50,78,0.14) !important;
}
.byf-cimg { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 13px; overflow: hidden; background: rgba(32,50,78,0.05); }
.byf-cimg:not(.ld):not(.err)::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(32,50,78,0.00) 25%, rgba(255,255,255,0.75) 50%, rgba(32,50,78,0.00) 75%) 0 0 / 200% 100%;
  animation: byfSk 1.6s ease-in-out infinite;
}
@keyframes byfSk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.byf-cimg img {
  display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
  object-fit: contain; mix-blend-mode: multiply; opacity: 0; transform: scale(0.96);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-user-drag: none; pointer-events: none;
}
.byf-cimg.ld img { opacity: 1; transform: none; }
.byf-card.on .byf-cimg.ld img { transform: scale(1.05); }
.byf-cname { display: flex; align-items: center; justify-content: center; min-height: 2.4em; padding: 0 2px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.005em; color: rgba(32,50,78,0.72); transition: color 0.25s ease; }
.byf-card.on .byf-cname { color: #20324E; }
.byf-card::after {
  content: ''; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: #20324E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: 0 2px 6px rgba(32,50,78,0.28); opacity: 0; transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.byf-card.on::after { opacity: 1; transform: none; }

.byf-snote { margin: 2px 0 0; }
.byf-snote.has { min-height: 56px; }
.byf-sn1 { margin: 0; padding: 0; font-size: 12.5px; line-height: 1.45; color: rgba(32,50,78,0.50); }
.byf-sn2 { margin: 3px 0 0; padding: 0; font-size: 12.5px; line-height: 1.45; color: rgba(32,50,78,0.70); }
.byf-sn2:empty { display: none; }
.byf-snote.has .byf-sn1 { font-weight: 600; color: #20324E; }
.byf-snote.swap { animation: byfFocus 0.5s var(--out) both; }
@keyframes byfFocus { from { opacity: 0; filter: blur(6px); transform: translateY(4px); } to { opacity: 1; filter: blur(0); transform: none; } }

/* fit chips */
.byf-fit { margin: 4px 0 8px; }
.byf-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.byf button.byf-chip {
  -webkit-appearance: none !important; appearance: none !important; height: 44px !important; min-height: 0 !important; margin: 0 !important; padding: 0 8px !important;
  border: 1.5px solid rgba(32,50,78,0.14) !important; border-radius: 13px !important; background: #fff !important; box-shadow: none !important; text-transform: none !important;
  font-family: 'DM Sans', sans-serif !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0 !important; line-height: 1 !important; color: #20324E !important;
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease-out;
}
.byf button.byf-chip:active { transform: scale(0.96); }
.byf button.byf-chip.on { border-color: #20324E !important; background: rgba(32,50,78,0.06) !important; }

/* result footer */
/* the result card scrolls with the form; only the action button stays pinned at the bottom */
.byf-result { margin: 14px 0 8px; padding: 16px; border-radius: 20px; background: #FAF9F7; border: 1px solid rgba(32,50,78,0.07); }
.byf-foot { flex-shrink: 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(32,50,78,0.08); background: #fff; }
.byf-res { display: flex; align-items: center; gap: 16px; }
.byf-flag { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(32,50,78,0.06); border: 1px solid rgba(32,50,78,0.16); }
.byf-flag[hidden] { display: none; }
.byf-flag svg { flex-shrink: 0; margin-top: 1px; color: #20324E; }
.byf-flag p { margin: 0; padding: 0; font-size: 12.5px; line-height: 1.5; color: #20324E; }
.byf-flag.swap { animation: byfFocus 0.5s var(--out) both; }
.byf-ring { position: relative; flex-shrink: 0; width: 68px; height: 68px; }
.byf-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.byf-ring circle { fill: none; stroke-width: 6; }
.byf-rbg { stroke: rgba(32,50,78,0.10); }
.byf-rfg { stroke: #20324E; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 0.7s var(--out); }
.byf-sz { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 500; color: var(--navy); letter-spacing: 0.01em; }
.byf-sz.long { font-size: 20px; letter-spacing: 0; }
.byf-sz.bump { animation: byfBump 0.45s var(--out); }
@keyframes byfBump { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.byf-rt { min-width: 0; }
.byf-r1 { margin: 0; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.byf-r2 { margin: 4px 0 0; padding: 0; font-size: 12.5px; line-height: 1.45; color: rgba(32,50,78,0.62); }
.byf-r3 { margin: 6px 0 0; padding: 0; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.byf-r3:empty { display: none; }

.byf button.byf-go {
  -webkit-appearance: none !important; appearance: none !important; display: flex !important; align-items: center !important; justify-content: center !important;
  width: 100% !important; height: 52px !important; min-height: 0 !important; margin: 0 !important; padding: 0 20px !important;
  border: 0 !important; border-radius: 14px !important; background: #20324E !important; color: #fff !important; box-shadow: 0 8px 22px rgba(32,50,78,0.26) !important;
  font-family: 'DM Sans', sans-serif !important; font-size: 13.5px !important; font-weight: 600 !important; letter-spacing: 0.03em !important; line-height: 1 !important; text-transform: none !important;
  cursor: pointer; transition: background 0.25s ease, transform 0.1s ease-out, opacity 0.25s ease;
}
.byf button.byf-go:hover { background: #162338 !important; }
.byf button.byf-go:active { transform: scale(0.97); }
.byf button.byf-go:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.byf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.byf button.byf-lk[hidden] { display: none !important; }
.byf button.byf-lk {
  -webkit-appearance: none !important; appearance: none !important; min-height: 0 !important; margin: 0 !important; padding: 14px 0 0 !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0.01em !important;
  font-family: 'DM Sans', sans-serif !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1 !important; color: #20324E !important; cursor: pointer;
}
.byf button.byf-lk span { padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; }
.byf button:focus-visible, .byf-trig-row button:focus-visible { outline: 2px solid #20324E !important; outline-offset: 2px; }

/* pinned summary above the button: shows the answer without scrolling, folds away when the result card is on screen */
.byf-dockw { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--out), opacity 0.3s ease, filter 0.4s ease; }
.byf-dockw.off { grid-template-rows: 0fr; opacity: 0; filter: blur(6px); pointer-events: none; }
.byf-dockc { min-height: 0; overflow: hidden; }
.byf-dock { margin-bottom: 12px; padding: 10px 12px; border-radius: 18px; background: #FAF9F7; border: 1px solid rgba(32,50,78,0.08); transition: background 0.3s ease, border-color 0.3s ease; }
.byf-dock.is-custom { background: rgba(32,50,78,0.05); border-color: rgba(32,50,78,0.22); }
.byf-dockin { display: flex; align-items: center; gap: 12px; }
.byf-dk-ring { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid #20324E; display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 500; line-height: 1; color: var(--navy); transition: border-color 0.3s ease; }
.byf-dk-ring span.long { font-size: 13px; }
.byf-dock.is-custom .byf-dk-ring { border-style: dashed; }
.byf-dk-tx { flex: 1; min-width: 0; }
.byf-dk-tx.swap { animation: byfFocus 0.45s var(--out) both; }
.byf-dk1 { margin: 0; padding: 0; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.byf-dk2 { margin: 3px 0 0; padding: 0; font-size: 12px; line-height: 1.45; color: rgba(32,50,78,0.66); }
.byf-dk2[hidden] { display: none; }
.byf-stock { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; padding: 1px 9px 1px 7px; border-radius: 100px; background: rgba(32,50,78,0.09); color: #20324E; font-size: 11px; font-weight: 600; line-height: 1.55; vertical-align: 1px; }
.byf-stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #20324E; }
.byf-pick { display: flex; gap: 8px; margin-top: 8px; }
.byf-pick[hidden] { display: none; }
.byf button.byf-pill {
  -webkit-appearance: none !important; appearance: none !important; flex: 1 1 0; min-width: 0 !important; min-height: 0 !important; height: 38px !important; margin: 0 !important; padding: 0 8px !important;
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 6px;
  border: 1.5px solid rgba(32,50,78,0.16) !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; text-transform: none !important;
  color: #20324E !important; cursor: pointer; line-height: 1 !important; letter-spacing: 0 !important;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.1s ease-out;
}
.byf button.byf-pill:active { transform: scale(0.96); }
.byf button.byf-pill b { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 500; }
.byf button.byf-pill span { font-family: 'DM Sans', sans-serif; font-size: 11.5px; font-weight: 600; color: rgba(32,50,78,0.6); transition: color 0.25s ease; }
.byf button.byf-pill.on { background: #20324E !important; border-color: #20324E !important; color: #fff !important; }
.byf button.byf-pill.on span { color: rgba(255,255,255,0.78); }
.byf button.byf-go { gap: 8px; }

/* "Why this size?" */
.byf-why { margin-top: 12px; }
.byf-why[hidden] { display: none; }
.byf button.byf-whyb {
  -webkit-appearance: none !important; appearance: none !important; width: 100% !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 12px 14px !important;
  display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px;
  border: 1px solid rgba(32,50,78,0.10) !important; border-radius: 14px !important; background: #fff !important; box-shadow: none !important; text-transform: none !important;
  font-family: 'DM Sans', sans-serif !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0.01em !important; line-height: 1 !important; color: #20324E !important; text-align: left;
  cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease-out;
}
.byf button.byf-whyb:active { transform: scale(0.985); background: rgba(32,50,78,0.03) !important; }
.byf button.byf-whyb svg { color: rgba(32,50,78,0.55); transition: transform 0.45s var(--out); }
.byf-why.open .byf-whyb svg { transform: rotate(180deg); }
.byf-whyp { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.5s var(--out), opacity 0.35s ease; }
.byf-why.open .byf-whyp { grid-template-rows: 1fr; opacity: 1; }
.byf-whyc { min-height: 0; overflow: hidden; }
.byf-whyin { padding: 14px 2px 2px; }
.byf-cmp { border-radius: 14px; background: #fff; border: 1px solid rgba(32,50,78,0.08); overflow: hidden; }
.byf-cr { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; color: #20324E; border-top: 1px solid rgba(32,50,78,0.06); }
.byf-cr:first-child { border-top: 0; }
.byf-ch { padding: 8px 12px 6px; background: rgba(32,50,78,0.03); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(32,50,78,0.46); }
.byf-cl { font-weight: 600; color: rgba(32,50,78,0.70); }
.byf-cv, .byf-cs b { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 500; letter-spacing: 0.01em; }
.byf-cs { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; }
.byf-cs i { font-style: normal; padding: 2px 8px; border-radius: 100px; background: #20324E; color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; line-height: 1.4; }
.byf-cr.is-d { background: rgba(32,50,78,0.05); }
.byf-rs { margin: 14px 0 0; padding: 0; list-style: none; }
.byf-rs li { position: relative; margin: 0 0 8px; padding: 0 0 0 16px; font-size: 12.5px; line-height: 1.55; color: rgba(32,50,78,0.78); }
.byf-rs li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #20324E; }
.byf button.byf-sw {
  -webkit-appearance: none !important; appearance: none !important; min-width: 0 !important; min-height: 0 !important; margin: 2px 0 0 !important; padding: 8px 0 !important;
  border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; text-transform: none !important;
  font-family: 'DM Sans', sans-serif !important; font-size: 12.5px !important; font-weight: 600 !important; line-height: 1 !important; color: #20324E !important; cursor: pointer;
}
.byf button.byf-sw[hidden] { display: none !important; }
.byf button.byf-sw::after { content: ' \2192'; }
.byf-dock { position: relative; }
.byf button.byf-dkwhy {
  -webkit-appearance: none !important; appearance: none !important; position: absolute; top: 8px; right: 10px; z-index: 1; margin: 0 !important; min-width: 0 !important; min-height: 0 !important; padding: 5px 9px 5px 7px !important;
  display: inline-flex !important; align-items: center !important; gap: 4px; border: 0 !important; border-radius: 100px !important; background: rgba(32,50,78,0.07) !important; box-shadow: none !important; text-transform: none !important;
  font-family: 'DM Sans', sans-serif !important; font-size: 11.5px !important; font-weight: 600 !important; line-height: 1 !important; letter-spacing: 0.01em !important; color: #20324E !important; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease-out;
}
.byf button.byf-dkwhy[hidden] { display: none !important; }
.byf button.byf-dkwhy:active { transform: scale(0.94); background: rgba(32,50,78,0.13) !important; }
.byf-dock .byf-dk1 { padding-right: 62px; }
.byf-dockw[data-state="pick"] .byf-dk1 { padding-right: 62px; }

/* short screens (laptops, landscape phones): give the form the room */
@media (max-height: 780px) {
  .byf-sub { display: none; }
  .byf-head { padding-bottom: 8px; }
  .byf-field { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .byf-flag.swap, .byf-dk-tx.swap { animation: none; }
  .byf-whyp { transition: opacity 0.2s ease; }
  .byf-whyb svg { transition: none; }
  .byf-dockw { transition: opacity 0.2s ease; filter: none !important; }
  .byf-sheet { transition: transform 0.18s ease; }
  .byf-seg-ind, .byf-rfg { transition: none; }
  .byf-pane, .byf-sz.bump, .byf-snote.swap { animation: none; }
  .byf-cimg img, .byf-card::after { transition: opacity 0.2s ease; transform: none !important; }
  .byf-cimg:not(.ld):not(.err)::after { animation: none; }
  .byf-rail { scroll-behavior: auto; }
}
