/* Mirex Health checkout (layout cloned from the Fortis CoreWrap checkout, mobile first) */

:root {
  --brand: #16627E;
  --brand-deep: #0B2F3E;
  --accent: #2DB7A6;
  --ink: #212529;
  --dark: #252a32;
  --page: #f9f6f1;
  --line: #e0e3e8;
  --f-head: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-form: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--page); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sprite { position: absolute; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- banner + header ---------- */
.co-banner { background: #000; color: #fff; text-align: center; padding: 10px 16px; font: 400 14px/21px 'Montserrat', var(--f-body); }
.co-head { background: #f7f5f2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; min-height: 72px; }
.wordmark { font: 600 30px/1 'Cormorant Garamond', Georgia, serif; color: var(--brand-deep); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--brand); }
.co-secure { display: none; font: 700 15px/1 var(--f-body); letter-spacing: .3px; }
.co-contact { text-align: center; display: grid; }
.co-contact b { font: 700 18px/21.6px var(--f-body); }
.co-contact a { font-size: 13px; line-height: 15.6px; color: var(--ink); text-decoration: none; }

/* ---------- layout ---------- */
.co-page { max-width: 1160px; margin: 0 auto; padding: 16px 10px 0; }
.co-grid { display: grid; gap: 18px; }
.co-card { background: #fff; border: 1px solid #c9ced6; border-radius: 6px; overflow: hidden; }

/* ---------- summary ---------- */
.co-pack { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font: 700 16px/1.3 var(--f-head); color: var(--ink); }
.co-pack input { position: absolute; opacity: 0; pointer-events: none; }
.co-radio { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #9aa3ad; flex: none; background: #fff; }
.co-pack-name { flex: 1; }
.co-pack:has(input:checked) { background: var(--brand); color: #fff; padding-top: 17px; padding-bottom: 17px; border-bottom-color: var(--brand); }
.co-pack:has(input:checked) .co-radio { border-color: #fff; background: var(--brand); box-shadow: inset 0 0 0 2px var(--brand), inset 0 0 0 6px #fff; }
.co-pack:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.co-product { padding: 22px 16px 6px; text-align: center; }
.co-product img { height: 190px; width: auto; margin: 0 auto; }
.co-save { display: inline-block; margin-top: 18px; padding: 6px 28px; border-radius: 100px; background: var(--accent); color: #fff; font: 700 17px/25.5px var(--f-head); }
.co-price { margin-top: 6px; font: 700 32px/1.25 var(--f-head); color: var(--ink); }
.co-compare { font: 400 22px/1.25 var(--f-head); color: #303030; text-decoration: line-through; }
.co-totals { margin: 14px 16px 16px; padding-top: 12px; border-top: 1px dashed #cfd4da; display: grid; gap: 6px; font: 400 15px/1.4 var(--f-head); }
.co-totals div { display: flex; justify-content: space-between; }
.co-total { font-weight: 700; font-size: 17px; }
.co-refill { color: #4a5158; font-size: 14px; }
.co-note { margin: 22px 0 6px; text-align: center; font: 400 18px/27px var(--f-head); }
.co-note b { color: var(--brand); }

/* ---------- form ---------- */
.co-form { background: var(--page); }
.co-form-head { display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--brand); color: #fff; padding: 9px 12px; font: 700 18px/1 var(--f-head); }
.co-shield { width: 46px; height: 46px; flex: none; }
.co-step { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 12px; border-bottom: 1px solid var(--line); font: 700 16px/24px var(--f-head); color: #000; }
.co-step .ic { font-size: 30px; stroke-width: 1.3; }
.co-fields { padding: 16px; display: grid; gap: 20px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.co-field { display: block; position: relative; }
.co-field input, .co-field select { width: 100%; height: 50px; padding: 0 15px; border: 1px solid #c7ccd3; border-radius: 4px; background: #fff; font: 400 16px/1 var(--f-form); color: #000; appearance: none; -webkit-appearance: none; }
.co-field input::placeholder { color: #8b929b; }
.co-field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 14px center / 10px 6px; padding-right: 34px; }
.co-field input:focus, .co-field select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 98, 126, .15); }
.co-field.is-bad input, .co-field.is-bad select { border-color: #d93025; background-color: #fff7f6; }
.co-check { display: flex; align-items: flex-start; gap: 10px; margin-top: -8px; font-size: 14px; line-height: 20px; color: #3a4147; cursor: pointer; }
.co-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.co-phone { display: flex; align-items: center; border: 1px solid #c7ccd3; border-radius: 4px; background: #fff; }
.co-phone:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 98, 126, .15); }
.co-dial { padding: 0 4px 0 15px; font: 400 16px/1 var(--f-form); color: #000; white-space: nowrap; }
.co-phone input { border: 0; box-shadow: none !important; padding-left: 8px; background: transparent; }

.co-pay { margin: 0 6px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.co-method { display: flex; align-items: center; gap: 12px; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.co-radio--pay { width: 20px; height: 20px; border: 1.5px solid #c5cad1; }
.co-radio--pay.is-on { border-color: #F26B2A; background: #F26B2A; box-shadow: inset 0 0 0 3px #fff; }
.co-method-name { flex: 1; font: 500 14px/1 var(--f-form); color: #5a5f66; }
.co-method-icons { display: flex; gap: 4px; }
.co-method-icons svg { width: 30px; height: 20px; }
.co-card-fields { padding: 16px 14px; display: grid; gap: 16px; }
.co-card-fields .co-row { gap: 16px; }
/* the box looks like .co-field input; Stripe's iframe inside it is transparent */
.co-input { height: 50px; padding: 0 15px; border: 1px solid #c7ccd3; border-radius: 4px; background: #fff; display: flex; flex-direction: column; justify-content: center; }
.co-input.StripeElement--focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 98, 126, .15); }
.co-input.StripeElement--invalid, .co-field.is-bad .co-input { border-color: #d93025; background-color: #fff7f6; }
.co-ph { font: 400 16px/1 var(--f-form); color: #8b929b; }
.co-submit:disabled { opacity: .7; cursor: wait; }

.co-terms { margin: 4px 10px 14px; padding: 11px 12px; border: 1px solid #cfd8dc; border-radius: 4px; background: #fff; font-size: 13px; line-height: 19px; color: #2a3136; }
.co-error { margin: 0 10px 12px; padding: 10px 12px; border-radius: 4px; background: #fdecea; color: #a12018; font-size: 14px; line-height: 20px; }
.co-error[hidden] { display: none; }
.co-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: calc(100% - 12px); margin: 4px 6px 0; min-height: 60px; border-radius: 4px; background: var(--brand); color: #fff; font: 700 18px/1 var(--f-head); letter-spacing: .3px; box-shadow: 0 4px 10px rgba(22, 98, 126, .35); transition: filter .15s; }
.co-submit:hover { filter: brightness(1.1); }
.co-submit .ic { font-size: 17px; color: #F5C04A; }
.co-riskfree { margin-top: 22px; padding: 0 12px; text-align: center; font: italic 700 20px/30px var(--f-head); color: #000; }
.co-safe { margin-top: 10px; text-align: center; font: italic 400 16px/24px var(--f-head); }
.co-pay-icons { display: flex; justify-content: center; gap: 8px; padding: 16px 10px 22px; }
.co-pay-icons svg { width: 56px; height: 37px; }

/* ---------- thank-you page ---------- */
.ty { max-width: 620px; margin: 28px auto 60px; padding: 34px 22px 30px; text-align: center; }
.ty-check { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #1E9E4A; color: #fff; display: grid; place-items: center; font-size: 34px; }
.ty-check .ic { stroke-width: 3; }
.ty h1 { font: 700 26px/1.25 var(--f-head); color: var(--dark); }
.ty-lead { margin-top: 10px; font-size: 16px; line-height: 24px; }
.ty-box { margin-top: 22px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 6px; text-align: left; font: 400 15px/1.4 var(--f-head); }
.ty-box div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed #d5dadf; }
.ty-box div:last-child { border-bottom: 0; }
.ty-box dd { font-weight: 700; text-align: right; }
.ty-note { margin-top: 18px; font-size: 14px; line-height: 21px; color: #3a4147; }
.ty-note a { color: var(--brand); }
.ty-back { display: inline-block; margin-top: 22px; color: var(--brand); font-weight: 600; }

/* ---------- legal pages (privacy, terms, returns) ---------- */
.legal { max-width: 780px; margin: 0 auto 60px; padding: 30px 20px 34px; font-size: 15px; line-height: 1.65; color: #2a3136; }
.legal h1 { font: 700 28px/1.25 var(--f-head); color: var(--dark); }
.legal-date { margin-top: 6px; color: #6b7280; font-size: 14px; }
.legal h2 { margin-top: 30px; font: 700 19px/1.3 var(--f-head); color: var(--dark); }
.legal h3 { margin: 18px 0 0; font: 700 16px/1.3 var(--f-head); color: var(--dark); }
.legal p, .legal ul, .legal-table { margin-top: 12px; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--brand); overflow-wrap: anywhere; }
.legal-box { margin-top: 14px; padding: 14px 16px; border: 1px solid #cfd8dc; border-left: 4px solid var(--brand); border-radius: 4px; background: #f8fafb; }
.legal-table { overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.legal-table th { background: #f4f6f8; font-weight: 600; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 14px; }

/* ---------- about block ---------- */
.co-about { margin: 42px auto 0; max-width: 560px; padding: 30px 16px 28px; border-radius: 10px; background: #dfe3e8; text-align: center; }
.co-about h2 { font: 700 23px/1.4 var(--f-head); color: var(--dark); }
.co-about-sub { font-size: 15px; }
.co-about img { width: 132px; height: 132px; object-fit: cover; border-radius: 10px; margin: 18px auto; }
.co-about p { font-size: 16px; line-height: 1.25; }
.co-about ul { margin: 16px auto 0; display: grid; gap: 6px; width: max-content; max-width: 100%; text-align: left; }
.co-about li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.co-about li .ic { color: var(--brand); stroke-width: 3; font-size: 16px; }

/* ---------- guarantee cards ---------- */
.co-cards { margin-top: 34px; display: grid; gap: 22px; }
.co-gcard { background: #fff; border: 2px solid var(--brand); border-radius: 12px; padding: 22px 18px 28px; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .06); }
.co-gicon { width: 96px; height: 96px; margin: 0 auto; display: block; }
.co-gcard h3 { margin-top: 22px; font: 700 19px/1.3 var(--f-body); color: #000; }
.co-gcard p { margin-top: 22px; font-size: 16px; line-height: 21px; }

/* ---------- faq ---------- */
.co-faq { max-width: 1000px; margin: 0 auto; padding: 44px 20px 70px; }
.co-faq h2 { text-align: center; font: 700 25px/1.2 var(--f-head); color: var(--dark); }
.co-acc { margin-top: 30px; }
.co-acc-item { border-bottom: 1px solid #d9dde3; }
.co-acc-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 6px 24px 0; text-align: left; font: 700 17px/1.2 var(--f-head); color: var(--dark); }
.co-acc-item button .ic { font-size: 18px; transition: transform .25s; }
.co-acc-item button[aria-expanded="true"] .ic { transform: rotate(180deg); }
.co-acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.co-acc-a.is-open { grid-template-rows: 1fr; }
.co-acc-a > div { overflow: hidden; }
.co-acc-a p { padding: 0 0 22px; font-size: 15px; line-height: 23px; }
.co-acc-a a { color: var(--brand); }

/* ---------- footer ---------- */
.co-foot { background: #f7f3ef; padding: 18px 16px 24px; text-align: center; font-size: 14px; line-height: 22px; }
.co-foot .wordmark { font-size: 26px; display: block; margin-bottom: 8px; }
.co-foot nav a { color: #0d6efd; text-decoration: none; }
.co-foot-mail { color: var(--ink); text-decoration: none; font-size: 16px; }

/* =====================  DESKTOP  ===================== */
@media (min-width: 900px) {
  .co-banner { font-size: 13px; padding: 7px 16px; }
  .co-head { padding: 0 max(16px, calc((100% - 1100px) / 2)); min-height: 62px; }
  .co-secure { display: block; }
  .co-page { padding-top: 24px; }
  .co-grid { grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; background: #fff; padding: 46px 48px; }
  .co-product img { height: 220px; }
  .co-about { max-width: 600px; text-align: left; display: grid; grid-template-columns: 150px 1fr; column-gap: 22px; align-items: start; }
  .co-about h2, .co-about-sub { grid-column: 1 / -1; text-align: center; }
  .co-about img { grid-row: 3 / span 2; margin: 14px 0 0; width: 150px; height: 150px; }
  .co-about p { margin-top: 14px; font-size: 14px; }
  .co-about ul { margin: 12px 0 0; }
  .co-about li { font-size: 14px; }
  .co-cards { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin-left: auto; margin-right: auto; }
  .co-gcard p { font-size: 14px; }
}
