/* Checkout, thank-you and contact pages (the Boutiq store's checkout, in the MAD LABS look). The page body has
   class="bq": everything below is scoped to it so it can't change the rest of the site. */

.bq [hidden] { display: none !important; }  /* .sum-row, .two-col and the alerts set their own display */

.bq .co-small { font-size: 13px; font-weight: 500; color: var(--muted); }
.bq .co-loading { margin: 0; color: var(--muted); font-size: 14px; }
.bq .co-zip0 { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.bq .co-zip0 .link-btn { font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.bq .radio-card b { font-weight: 600; }
.bq .radio-card > b { white-space: nowrap; }

/* payment methods: the card, and below it (when chosen) the description, account details and screenshot upload */
.bq .co-pay { border-radius: 12px; }
.bq .co-pay.on { border: 1px solid var(--blue); background: var(--blue-tint); }
.bq .co-pay.on .radio-card { border: 0; background: transparent; }
.bq .co-pay-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.bq .co-desc { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.bq .co-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--body); }
.bq .radio-card .co-logo { flex: none; width: 36px; height: 36px; border-radius: 9px; }
.bq .radio-card .co-tag { flex: none; padding: 4px 10px; border-radius: 999px; background: #E7F6EE; color: var(--ok); font-size: 12px; font-weight: 700; }
.bq .co-rows { display: flex; flex-direction: column; border: 1px solid var(--blue-line); border-radius: 12px; background: #fff; }
.bq .co-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 14px; }
.bq .co-row + .co-row { border-top: 1px solid var(--line); }
.bq .co-row span { flex: none; width: 118px; color: var(--muted); }
.bq .co-row b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-weight: 500; }
.bq .co-copy {
  flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--blue-line); border-radius: 999px; background: var(--blue-tint);
  color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer;
}
.bq .co-copy:hover { border-color: var(--blue); }
.bq .co-proof { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px dashed var(--blue-line); border-radius: 12px; background: #fff; }
.bq .co-proof label { font-size: 14px; font-weight: 600; color: var(--ink); }
.bq .co-proof small { font-size: 12px; color: var(--muted); }
.bq .co-proof input { font: inherit; font-size: 14px; max-width: 100%; }
.bq .co-proof .err { font-size: 12px; color: var(--deal); }
.bq .co-proof.invalid { border-color: var(--deal); }
.bq .co-disc { color: var(--ok); }

.bq .co-place { display: flex; flex-direction: column; gap: 14px; border-bottom: 0; }
.bq .co-place .btn { height: 54px; font-size: 16px; }
.bq .co-fine { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); text-align: center; }
.bq .co-alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FDF0EC; color: #8A2A0F; font-size: 14px; font-weight: 600; line-height: 1.5; }
.bq .co-alert.ok { background: #E7F6EE; color: var(--ok); }

/* phones: 16px text in fields, so the browser doesn't zoom in on them */
@media (max-width: 720px) {
  .bq .field { font-size: 16px; height: 48px; }
  .bq .co-pay-body { padding-left: 16px; }
  .bq .co-row span { width: 96px; }
}

/* ---------- Thank-you page ---------- */
.bq .ty { max-width: 1040px; margin: 0 auto; }
.bq .ty-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 0 8px; }
.bq .ty-hero .confirm-icon { width: 64px; height: 64px; border-radius: 999px; background: #E7F6EE; color: var(--ok); display: flex; align-items: center; justify-content: center; }
.bq .ty-hero h1 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; }
.bq .ty-hero .lede { margin: 0; max-width: 620px; color: var(--body); font-size: 16px; line-height: 1.6; }
.bq .ty-msg { max-width: 680px; padding: 20px 22px; border-radius: 16px; background: var(--blue-tint); border: 1px solid var(--blue-line); text-align: left; display: flex; flex-direction: column; gap: 8px; }
.bq .ty-msg strong { font-size: 19px; line-height: 1.45; color: var(--ink); }
.bq .ty-msg p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.bq .ty-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px; align-items: start; margin-top: 32px; }
@media (max-width: 880px) { .bq .ty-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; } .bq .ty-hero { padding-top: 8px; } }
.bq .ty-col { display: flex; flex-direction: column; gap: 20px; }
.bq .ty-box { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.bq .ty-box h2 { margin: 0; font-size: 20px; }
.bq .ty-box p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.bq .ty-box.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.bq .ty-box.dark h2 { color: #fff; }
.bq .ty-box.dark p { color: rgba(255, 255, 255, .8); }
.bq .ty-box.dark .btn { background: #fff; color: var(--ink); border-color: #fff; align-self: flex-start; }
.bq .ty-box .btn { align-self: flex-start; }
.bq .ty-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: 15px; }
.bq .ty-kv dt { color: var(--muted); }
.bq .ty-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bq .ty-num { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

/* ---------- MAD LABS tokens for the checkout pieces ---------- */
.bq { --blue: var(--violet); --blue-tint: #F7F5FF; --blue-line: #D9D0FF; --ok: #127A3A; --deal: #B42318; --body: #3A414B;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #FFFFFF; }
.bq .wrap { max-width: 1180px; margin: 0 auto; padding: 28px var(--gut) 96px; box-sizing: border-box; }
.bq .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.bq .crumbs a, .bq .crumb-btn { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.bq .crumbs a:hover, .bq .crumb-btn:hover { color: var(--violet-d); text-decoration: underline; }
.bq .crumbs [aria-current] { color: var(--ink); }
.bq .page-head { margin-bottom: 26px; }
.bq .page-head h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.05; }
.bq .page-head .lede { margin: 10px 0 0; max-width: 620px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.bq .two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 40px; align-items: start; }
.bq .form-section { padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.bq .form-section h2 { margin: 0 0 16px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bq .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.bq .form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bq .form-field.full, .bq .form-grid > .full { grid-column: 1 / -1; }
.bq .form-field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.bq .field { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #FFFFFF; font: inherit; font-size: 15.5px; color: var(--ink); box-sizing: border-box; transition: border-color .2s ease, box-shadow .2s ease; }
.bq textarea.field { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.bq select.field { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23525B66' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.bq .field:hover { border-color: #C9CDC4; }
.bq .field:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109,74,255,0.14); }
.bq .form-field.invalid .field { border-color: var(--deal); }
.bq .err { font-size: 13px; font-weight: 600; color: var(--deal); }
.bq .err:empty { display: none; }
.bq .stack { display: flex; flex-direction: column; gap: 10px; }
.bq .link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--violet-d); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bq .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px; background: linear-gradient(150deg, #7C5BFF, #5B38F2); color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 12px 24px -12px rgba(91,56,242,0.8); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.bq .btn:hover { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 16px 30px -12px rgba(91,56,242,0.9); }
.bq .btn:disabled { opacity: .55; cursor: not-allowed; filter: none; box-shadow: none; }
.bq .btn-block { width: 100%; }
.bq .btn-ghost { background: #FFFFFF; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.bq .btn-ghost:hover { background: var(--ink); color: #FFFFFF; filter: none; }
/* shipping / payment choices */
.bq .radio-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #FFFFFF; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.bq .radio-card:hover { border-color: #C9CDC4; }
.bq .radio-card input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--violet); }
.bq .radio-card > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bq .radio-card small { font-size: 13px; color: var(--muted); }
.bq .radio-card:has(input:checked) { border-color: var(--violet); background: var(--blue-tint); }
/* order summary */
.bq .summary { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(15,20,25,0.04), 0 18px 40px -26px rgba(15,20,25,0.3); }
.bq .summary h2 { margin: 0 0 4px; font-family: var(--display); font-size: 21px; font-weight: 700; }
.bq .summary p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.bq .mini-lines { display: flex; flex-direction: column; gap: 12px; max-height: 360px; overflow-y: auto; }
.bq .mini-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14.5px; }
.bq .mini-line > span:nth-child(2) { font-weight: 700; color: var(--name-color); line-height: 1.3; }
.bq .line-media { position: relative; width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.bq .line-media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.bq .qty-dot { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.bq .dline-opt { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.bq .sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bq .sum-first { padding-top: 14px; border-top: 1px solid var(--line); }
.bq .sum-row.total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 800; }
.bq .empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 16px; text-align: center; }
.bq .empty h2 { margin: 0; font-family: var(--display); font-size: 26px; }
.bq .empty p { margin: 0; color: var(--muted); }
.bq .ty-main { padding-bottom: 96px; }
.bq .contact-side .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .bq .two-col { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bq .summary { position: static; order: 1; }  /* phones: order summary at the bottom, after Place order */
  .bq .contact-grid .summary { order: 0; }
}
@media (max-width: 600px) {
  .bq .wrap { padding-top: 18px; padding-bottom: 72px; }
  .bq .form-grid { grid-template-columns: minmax(0, 1fr); }
  .bq .field { font-size: 16px; }  /* 16px stops phones zooming into fields */
  .bq .summary { padding: 18px; border-radius: 18px; }
}
/* the chat bubble hides while a popup or the menu covers the page (as on the Boutiq store) */
body.is-locked [id*="chatway" i]:not(script), body.is-locked [class*="chatway" i], body.is-locked iframe[src*="chatway" i] { display: none !important; }
.bq select.field { padding-top: 0; padding-bottom: 0; line-height: 50px; }

/* mobile number: fixed +1 (US) in front of the number */
.bq .phone-field { position: relative; }
.bq .phone-prefix { position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; display: flex; align-items: center; padding: 0 12px 0 15px; border-right: 1.5px solid var(--line); border-radius: 13px 0 0 13px; background: #F6F6F3; font-weight: 700; font-size: 15px; color: var(--ink); pointer-events: none; }
.bq .phone-field .field { padding-left: 88px; }
@media (max-width: 600px) {
  .bq .ty-msg { padding: 18px; }
  .bq .ty-msg strong { font-size: 17px; line-height: 1.45; }
  .bq .ty-box { padding: 18px; }
}
