/* ============================================================
   Box price calculator panel (Instant Price), from the reference build v43:
   side panel on desktop, bottom sheet on phones. The floating price tab of earlier drafts is not used.
   ============================================================ */
.ip-scrim { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(35, 27, 21, .18); opacity: 0; pointer-events: none; transition: opacity .25s; }
.ip-panel { position: fixed; z-index: calc(var(--z-modal) + 1); right: 16px; top: 50%; width: min(372px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  transform: translate(calc(100% + 32px), -50%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s;
  background: var(--pw-white); border-radius: 16px; box-shadow: 0 18px 48px rgba(35, 27, 21, .22); font-family: var(--font-body); color: var(--pw-bark); }
body.ip-open .ip-panel { transform: translate(0, -50%); visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
body.ip-open .ip-scrim { opacity: 1; pointer-events: auto; }
.ip-hd { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--pw-forest); color: var(--pw-white); border-radius: 16px 16px 0 0; }
.ip-ico { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--pw-foil-gold); flex: none; }
.ip-ico svg { width: 26px; height: 26px; }
.ip-hd h2 { margin: 0; font: 700 18px/22px var(--font-display); color: var(--pw-white); }
.ip-hd p { margin: 0; font-size: 12px; line-height: 16px; color: var(--pw-sage-mist); }
.ip-x { margin-left: auto; width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--pw-white); font-size: 18px; cursor: pointer; }
.ip-x:hover { background: rgba(255, 255, 255, .22); }
.ip-bd { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
.ip-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--pw-bark); }
.ip-f .ui-select__btn { min-height: 40px; font-size: 14px; }
#ipReadyWrap .ui-select__value { font-family: var(--font-mono); }
.ip-ready[hidden], .ip-dims[hidden] { display: none !important; }
.ip-row { display: flex; gap: 8px; }
.ip-row > * { flex: 1; min-width: 0; }
.ip-seg { display: flex; overflow: hidden; border: 1.5px solid var(--pw-forest); border-radius: 8px; }
.ip-seg button { flex: 1; min-height: 34px; border: 0; background: var(--pw-white); color: var(--pw-forest); font: 600 13px var(--font-body); cursor: pointer; }
.ip-seg button[aria-pressed="true"] { background: var(--pw-forest); color: var(--pw-white); }
.ip-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ip-chips button { min-height: 32px; padding: 0 9px; border: 1.5px solid var(--pw-line); border-radius: 999px; background: var(--pw-white); color: var(--pw-bark); font: 600 13px var(--font-mono); cursor: pointer; }
.ip-chips button[aria-pressed="true"] { border-color: var(--pw-forest); background: var(--pw-sage-mist); color: var(--pw-forest); }
.ip-dims { display: flex; align-items: center; gap: 6px; }
.ip-dims input { width: 100%; min-width: 0; min-height: 40px; padding: 0 10px; border: 1.5px solid var(--pw-line-strong); border-radius: 8px; background: var(--pw-white); color: var(--pw-bark); font: 500 14px var(--font-mono); }
.ip-dims span { color: var(--pw-line-strong); }
.ip-res { display: flex; flex-direction: column; gap: 6px; margin: 2px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--pw-kraft-mist); }
.ip-big { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); }
.ip-big b { font-size: 30px; line-height: 34px; font-weight: 600; color: var(--pw-bark); }
.ip-big span { font-size: 13px; color: var(--pw-bark-muted); }
.ip-big[hidden], .ip-quote[hidden], .ip-meta[hidden] { display: none; }
.ip-quote { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ip-quote strong { font: 700 18px/24px var(--font-display); color: var(--pw-forest); }
.ip-quote span { color: var(--pw-bark-muted); }
.ip-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--pw-bark-muted); }
.ip-meta strong { font-family: var(--font-body); font-variant-numeric: tabular-nums; color: var(--pw-bark); }
.ip-note { font-size: 11px; line-height: 15px; color: var(--pw-kraft-deep); }
.ip-ft { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 14px; }
.ip-ft .btn { width: 100%; }
.ip-mail { display: none; gap: 6px; }
.ip-mail.on { display: flex; }
.ip-mail input[type="email"] { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--pw-line-strong); border-radius: 8px; font: inherit; font-size: 14px; }
.ip-mail button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--pw-forest); color: var(--pw-white); font: 700 14px var(--font-body); cursor: pointer; }
.ip-ok { font-size: 13px; font-weight: 600; color: var(--pw-leaf); }
.ip-ok.is-error { color: var(--pw-alert-red); }
@media (max-width: 720px) {
  .ip-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 88vh; border-radius: 18px 18px 0 0; transform: translateY(105%); }
  body.ip-open .ip-panel { transform: translateY(0); }
  .ip-hd { border-radius: 18px 18px 0 0; }
  body.ip-open .mprice { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .ip-panel, .ip-scrim { transition: none; } }

.ip-big > span { font-family: var(--font-body); }
.ip-chips button { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
