/* Copyright (c) 2026 DNA Genics, S.L. All rights reserved. */
.cv2-page { min-height: 80vh; font-family: var(--hd-sans); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.cv2-page *, .cv2-page *::before, .cv2-page *::after { box-sizing: border-box; }
.cv2-page [hidden] { display: none !important; }
.cv2-coupon-controls { flex-wrap: wrap; }
.cv2-provider-retry { margin-bottom: 12px; }
.cv2-next p + p { margin-top: 8px; }
@media (max-width: 430px) { .cv2-coupon-controls .form-control { flex-basis: 100%; width: 100%; } }
.cv2-container { width: min(1280px, 100%); padding: 0 28px 40px; margin: 0 auto; }
.cv2-page a { color: var(--hd-primary); text-underline-offset: 3px; }
.cv2-page button, .cv2-page input, .cv2-page select { font: inherit; }
.cv2-page h1, .cv2-page h2 { color: var(--hd-primary); font-family: var(--hd-serif); font-weight: 500; }
.cv2-page h1 { font-size: clamp(2.3rem, 4vw, 3rem); line-height: 1.1; margin: 14px 0 8px; }
.cv2-page h2 { margin: 0; }
.cv2-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 10px 0 26px; }
.cv2-header p { color: var(--hd-muted); margin: 0; }
.cv2-onboarding-progress { margin-bottom: 20px; }
.cv2-back, .cv2-secure { display: inline-flex; align-items: center; gap: 8px; font-size: .83rem; }
.cv2-back { text-decoration: none; }
.cv2-secure { color: var(--hd-primary); white-space: nowrap; }
.cv2-product { display: flex; align-items: center; gap: 20px; padding: 24px 28px; border: 1px solid var(--hd-border); border-radius: 14px; background: var(--hd-sand); margin-bottom: 28px; }
.cv2-product-image { flex: 0 0 72px; object-fit: contain; border-radius: 10px; background: var(--hd-surface); padding: 7px; }
.cv2-product-description { min-width: 0; flex: 1; }
.cv2-product-description .hd-eyebrow { font-size: .66rem; letter-spacing: .12em; color: #796135; }
.cv2-product-description h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.12; overflow-wrap: anywhere; }
.cv2-product-description p { margin: 5px 0 0; color: #625b50; font-size: .85rem; }
.cv2-product-total { flex: 0 0 auto; display: grid; text-align: right; gap: 2px; }
.cv2-product-total > span, .cv2-product-total a { font-size: .75rem; }
.cv2-product-total > strong { font-size: 1.6rem; font-weight: 650; color: var(--hd-primary); font-variant-numeric: tabular-nums; }
.cv2-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; grid-template-areas: "setup summary" "payment summary"; grid-template-rows: auto 1fr; align-items: start; gap: 24px 28px; }
.cv2-setup { grid-area: setup; display: grid; gap: 20px; min-width: 0; }
.cv2-setup:not(:has(> :not(input[type="hidden"]))) { display: none; }
.cv2-summary { grid-area: summary; position: sticky; top: calc(var(--nav-height, 72px) + 20px); max-height: calc(100dvh - var(--nav-height, 72px) - 40px); min-width: 0; border: 1px solid var(--hd-border); border-radius: 14px; background: var(--hd-surface); overflow-y: auto; }
.cv2-payment { grid-area: payment; }
.cv2-section { border: 1px solid var(--hd-border); border-radius: 14px; background: var(--hd-surface); overflow: hidden; min-width: 0; }
.cv2-section-header { display: flex; align-items: flex-start; gap: 14px; padding: 22px 26px 20px; border-bottom: 1px solid var(--hd-border); }
.cv2-section-header > .dna-icon, .cv2-step { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; margin-top: 2px; color: var(--hd-primary); }
.cv2-step { border: 1px solid var(--hd-sand-strong); background: var(--hd-cream); border-radius: 50%; font-size: .8rem; font-weight: 600; }
.cv2-page .cv2-section-title { font-size: 1.65rem; line-height: 1.15; }
.cv2-section-intro { color: var(--hd-muted); margin: 7px 0 0; font-size: .85rem; }
.cv2-section-body { padding: 24px 26px; }
.cv2-section-body > :last-child { margin-bottom: 0; }
.cv2-page label:not(.cv2-check):not(.payment-method-header):not(.haplogroup-ack), .cv2-field-label { display: block; color: var(--hd-ink); font-size: .87rem; font-weight: 600; margin: 0 0 8px; }
.cv2-page .form-control { width: 100%; min-width: 0; min-height: 46px; height: auto; padding: 11px 13px; border: 1px solid #c9c5bc; border-radius: 8px; background-color: var(--hd-surface); color: var(--hd-ink); box-shadow: none; }
.cv2-page select.form-control { padding-right: 32px; }
.cv2-page input[type=file].form-control { padding: 0; overflow: hidden; }
.cv2-page input[type=file]::file-selector-button { min-height: 46px; margin-inline-end: 12px; padding: 10px 13px; border: 0; border-inline-end: 1px solid #c9c5bc; background-color: var(--hd-sand); color: var(--hd-ink); font: inherit; cursor: pointer; }
.cv2-page input[type=file]:disabled::file-selector-button { background-color: #e5e2da; color: var(--hd-muted); cursor: not-allowed; }
.cv2-page input[type=checkbox], .cv2-page input[type=radio] { accent-color: var(--hd-primary); width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; cursor: pointer; }
.cv2-page input:disabled, .cv2-page select:disabled { cursor: not-allowed; background-color: #f1f0ec; }
.cv2-page .form-control[aria-invalid=true] { border-color: #a33b2c; }
.cv2-page :focus-visible { outline: 3px solid #a58950; outline-offset: 3px; }
.cv2-page .form-control:focus { border-color: var(--hd-primary); }
.cv2-help { margin: 8px 0 16px; color: var(--hd-muted); font-size: .8rem; line-height: 1.55; }
.cv2-check { display: flex; gap: 11px; align-items: flex-start; font-size: .86rem; line-height: 1.6; font-weight: 400; margin: 0 0 14px; cursor: pointer; }
.cv2-check > span { min-width: 0; }
.cv2-check:last-child { margin-bottom: 0; }
.cv2-processing-consent { border: 1px solid var(--hd-border); border-radius: 10px; padding: 18px 22px; background: var(--hd-cream); }
.cv2-processing-consent .cv2-help { margin: 8px 0 0 29px; }
.cv2-notice { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #cedacc; background: var(--hd-sage); border-radius: 10px; padding: 17px 20px; color: var(--hd-primary); font-size: .86rem; min-width: 0; }
.cv2-notice > .dna-icon { flex: 0 0 20px; margin-top: 2px; }
.cv2-notice p { margin: 5px 0 0; }
.cv2-notice--warning { border-color: #dfc8a0; background: #fbf2e2; color: #68451d; }
#checkoutV2Errors, #checkoutV2Recovery, .cv2-return-notice { margin-bottom: 24px; }
#checkoutV2Errors { display: block; }
#checkoutV2Errors > p { margin: 0 0 8px; }
#checkoutV2Errors ul { margin: 0; padding-left: 20px; }
.cv2-source-options, .cv2-acceptance, .cv2-methods { margin: 0; padding: 0; border: 0; min-width: 0; }
.cv2-source-options legend, .cv2-acceptance legend, .cv2-methods legend { width: auto; margin-bottom: 14px; }
.cv2-source-options { margin-bottom: 20px; }
.cv2-country { margin-bottom: 26px; }
.cv2-contact { margin-bottom: 26px; }
.cv2-contact .cv2-help { margin-bottom: 10px; }
.cv2-save-cart .cv2-help { margin: 4px 0 0 29px; }
.cv2-trust { display: grid; gap: 10px; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid var(--hd-border); font-size: .8rem; color: var(--hd-muted); }
.cv2-trust-proof { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--hd-primary); }
.cv2-trust-proof > .dna-icon, .cv2-trust-badges .dna-icon, .cv2-trust-email > .dna-icon { flex: 0 0 16px; }
.cv2-trust-badges { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.cv2-trust-badges li { display: flex; align-items: flex-start; gap: 8px; }
.cv2-trust-badges li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.cv2-trust-badges strong { color: var(--hd-primary); font-weight: 600; }
.cv2-trust-email { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.cv2-acceptance { padding-top: 22px; border-top: 1px solid var(--hd-border); margin-bottom: 26px; }
.cv2-summary-header { padding: 24px 24px 18px; }
.cv2-summary-header .hd-eyebrow { color: #826a3f; font-size: .65rem; }
.cv2-summary-header h2 { font-size: 1.85rem; }
.cv2-summary-body { padding: 0 24px 24px; }
.cv2-summary-product { display: grid; gap: 4px; font-size: .9rem; padding-bottom: 20px; }
.cv2-summary-product span { font-size: .77rem; color: var(--hd-muted); }
.cv2-summary-target { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 14px; background: var(--hd-cream); border-radius: 8px; font-size: .77rem; margin-bottom: 18px; }
.cv2-summary-target > span { color: var(--hd-muted); }
.cv2-summary-target strong { grid-row: 2; overflow-wrap: anywhere; }
.cv2-summary-target a { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.cv2-invoice { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--hd-border); font-size: .83rem; }
.cv2-invoice > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.cv2-invoice dt { font-weight: 400; min-width: 0; }
.cv2-invoice dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cv2-invoice dt small { display: block; color: var(--hd-muted); font-size: .72rem; }
.cv2-invoice .cv2-saving { color: #426347; }
.cv2-invoice .cv2-total { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hd-border); color: var(--hd-primary); }
.cv2-invoice .cv2-total dt { font-weight: 600; }
.cv2-invoice .cv2-total dd { font-size: 1.8rem; letter-spacing: -.03em; }
.cv2-invoice .cv2-total small { display: inline; font-weight: 400; margin-left: 3px; }
.cv2-invoice .cv2-tax { color: var(--hd-muted); font-size: .72rem; margin: 0 0 20px; }
.cv2-coupon, .cv2-inclusions { border-top: 1px solid var(--hd-border); font-size: .8rem; }
.cv2-coupon summary, .cv2-inclusions summary { padding: 15px 0; cursor: pointer; color: var(--hd-primary); font-weight: 600; }
.cv2-coupon-controls { display: flex; gap: 8px; }
.cv2-coupon-controls .form-control { flex: 1 1 10rem; width: 0; min-width: 10rem; }
.cv2-coupon-controls .hd-btn { flex: 0 0 auto; padding: 8px 13px; white-space: nowrap; }
.cv2-inclusions ul { margin: 0 0 16px; padding-left: 18px; color: var(--hd-muted); }
.cv2-inclusions li + li { margin-top: 7px; }
.cv2-next { display: flex; align-items: flex-start; gap: 10px; padding: 16px 0 0; margin-top: 4px; border-top: 1px solid var(--hd-border); font-size: .77rem; color: var(--hd-muted); }
.cv2-next p { margin: 0; }
.cv2-next > .dna-icon { flex: 0 0 17px; }
.cv2-payment-status { margin: 0 0 18px; font-size: .82rem; }
.cv2-payment-status p { margin: 0 0 8px; color: var(--hd-muted); }
.cv2-readiness { margin: 0 0 18px; }
.cv2-readiness .cv2-help, .cv2-internal-order #internalOrderReadiness { margin: 0 0 8px; }
.cv2-page #paymentReadiness p, .cv2-page #internalOrderReadiness p { margin: 0 0 4px; font-weight: 600; color: var(--hd-primary); }
.cv2-page #paymentReadiness ul, .cv2-page #internalOrderReadiness ul { margin: 0; padding-left: 18px; }
.cv2-page .cv2-check input[aria-invalid=true] { outline: 2px solid #a33b2c; outline-offset: 2px; }
.cv2-upload-consent-note { margin: 0 0 16px; }
.payment-method-card { border: 1px solid #d6d2ca; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.payment-method-card.selected { border-color: var(--hd-primary); }
.payment-method-header { display: flex; align-items: flex-start; gap: 12px; padding: 18px; cursor: pointer; margin: 0; }
.payment-method-header > span { min-width: 0; flex: 1; }
.payment-method-header strong { display: block; font-size: .9rem; font-weight: 600; }
.payment-method-header small { display: block; font-size: .75rem; color: var(--hd-muted); margin-top: 2px; }
.payment-method-header img { object-fit: contain; align-self: center; }
.payment-method-body { padding: 0 18px 18px; }
.cv2-pay-button { width: 100%; justify-content: center; min-height: 48px; }
.cv2-page .hd-btn:disabled, .cv2-page .hd-btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.cv2-provider-note { display: flex; align-items: center; gap: 8px; color: var(--hd-muted); font-size: .77rem; margin: 18px 0 0; }
.cv2-refund-note { display: block; margin-top: 8px; }
/* Visible progress while the provider session is created and the redirect happens (can take several seconds). */
.cv2-pay-button .btn-busy-label { display: none; align-items: center; gap: 8px; }
.cv2-pay-button[aria-busy=true] .btn-label, .cv2-pay-button[aria-busy=true] .dna-icon-lock { display: none; }
.cv2-pay-button[aria-busy=true] .btn-busy-label { display: inline-flex; }
.cv2-page .cv2-pay-button[aria-busy=true]:disabled { opacity: 1; cursor: progress; }
.cv2-spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cv2-spin .8s linear infinite; }
@keyframes cv2-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cv2-spinner { animation-duration: 2.4s; } }
.cv2-internal-order > .cv2-help { margin: 12px 0 0; }
.cv2-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0 0; color: var(--hd-muted); font-size: .8rem; }
.cv2-footer p { margin: 0; }
.cv2-selected-target { margin: 0; }
.cv2-selected-target dt { color: var(--hd-muted); font-weight: 400; font-size: .8rem; }
.cv2-selected-target dd { font-weight: 600; margin: 4px 0 0; overflow-wrap: anywhere; }
.cv2-page .multisample-search { margin-bottom: 12px; }
.cv2-page .multisample-selector { border: 0; margin: 0; padding: 0; min-width: 0; }
.cv2-page .multisample-header { display: grid; gap: 4px; margin-bottom: 12px; font-size: .8rem; }
.cv2-page .multisample-header-hint { color: var(--hd-muted); }
.cv2-page .multisample-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 350px; overflow-y: auto; padding: 4px; }
.cv2-page .multisample-item { margin: 0; padding: 12px; border: 1px solid var(--hd-border); border-radius: 8px; min-width: 0; }
.cv2-page .multisample-item:has(input:checked) { border-color: var(--hd-primary); background: var(--hd-sage); }
.cv2-page .multisample-item-text { min-width: 0; overflow-wrap: anywhere; }
.cv2-page .multisample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 350px; overflow-y: auto; padding: 4px; }
.cv2-page .multisample-card { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--hd-border); border-radius: 8px; min-width: 0; cursor: pointer; }
.cv2-page .multisample-card:has(input:checked) { border-color: var(--hd-primary); background: var(--hd-sage); }
.cv2-page .multisample-name { overflow-wrap: anywhere; }
.cv2-page .multisample-meta, .cv2-page .multisample-selection-count { color: var(--hd-muted); font-size: .75rem; }
.cv2-page .multisample-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.cv2-page progress { width: 100%; accent-color: var(--hd-primary); }
.cv2-page .order-attachment-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.cv2-page .order-attachment-summary .cv2-help { margin: 0; }
.cv2-mobile-review { display: none; }
.cv2-loading { position: fixed; inset: 0; background: rgba(250, 248, 244, .96); z-index: 1100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--hd-primary); }
.cv2-haplogroup-notice { margin-top: 18px; }
.cv2-page .haplogroup-notice { padding: 18px; border: 1px solid var(--hd-border); border-radius: 10px; background: var(--hd-cream); font-size: .83rem; }
.cv2-page .haplogroup-notice-heading { display: flex; gap: 8px; align-items: flex-start; }
.cv2-page .haplogroup-notice-generic, .cv2-page .haplogroup-notice-reason { color: var(--hd-muted); font-size: .79rem; margin: 10px 0; }
.cv2-page .haplogroup-notice-list { list-style: none; padding: 0; margin: 12px 0; }
.cv2-page .haplogroup-notice-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--hd-border); }
.cv2-page .haplogroup-notice-list li > span:last-child { text-align: right; font-size: .77rem; }
.cv2-page .haplogroup-state-unavailable { color: #80502c; }
.cv2-page .haplogroup-ack { display: flex; align-items: flex-start; gap: 10px; font-weight: 400 !important; margin-top: 16px !important; }
.cv2-page .haplogroup-ack-error { color: #a33b2c; font-size: .79rem; margin-top: 8px; }.cv2-page #checkoutPayment, .cv2-page #checkoutRequirements, .cv2-page #checkoutOrderSummary { scroll-margin-top: calc(var(--nav-height, 72px) + 20px); }
body:has(.cv2-page) .scroll-to-top { bottom: 95px; }
@media (max-width: 1050px) { .cv2-container { padding-inline: 20px; } .cv2-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; } .cv2-section-header, .cv2-section-body { padding: 20px; } .cv2-summary-header { padding: 20px 20px 16px; } .cv2-summary-body { padding-inline: 20px; } }
@media (max-width: 800px) {
    body:has(.cv2-mobile-review) #CookiebotWidget { bottom: calc(6rem + env(safe-area-inset-bottom)) !important; }
    .cv2-container { max-width: 700px; padding: 0 18px 110px; }
    .cv2-page .form-control { font-size: 16px; }
    .cv2-header { margin: 8px 0 22px; align-items: flex-start; }
    .cv2-header p { max-width: 38ch; font-size: .85rem; }
    .cv2-secure { margin-top: 4px; font-size: .72rem; }
    .cv2-product { flex-wrap: wrap; padding: 20px; gap: 14px; margin-bottom: 20px; }
    .cv2-product-image { width: 56px; height: 56px; flex-basis: 56px; }
    .cv2-product-total { flex: 1 0 100%; display: flex; align-items: center; gap: 12px; border-top: 1px solid #dbcfb9; padding-top: 14px; text-align: left; }
    .cv2-product-total > strong { margin-left: auto; font-size: 1.4rem; }
    .cv2-product-total a { display: none; }
    .cv2-layout { display: flex; flex-direction: column; gap: 20px; }
    .cv2-setup, .cv2-summary, .cv2-payment { width: 100%; }
    .cv2-summary { position: static; max-height: none; }
    .cv2-summary-header { padding-bottom: 12px; }
    .cv2-summary-product { padding-bottom: 16px; }
    .cv2-invoice .cv2-total { margin-top: 16px; }
    .cv2-mobile-review { position: fixed; display: flex; align-items: center; justify-content: space-between; gap: 16px; bottom: 0; left: 0; right: 0; z-index: 1015; background: var(--hd-surface); border-top: 1px solid var(--hd-border); padding: 12px max(18px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); box-shadow: 0 -3px 15px #213a2f08; }
    .cv2-mobile-review > div { display: grid; gap: 1px; }
    .cv2-mobile-review > div > span { font-size: .68rem; color: var(--hd-muted); }
    .cv2-mobile-review strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
    .cv2-mobile-review .hd-btn { padding: 11px 17px; font-size: .85rem; }
    .cv2-footer { flex-direction: column; align-items: flex-start; padding-top: 24px; }
}
@media (max-width: 430px) { .cv2-container { padding-inline: 12px; } .cv2-header { gap: 10px; } .cv2-header .cv2-secure { font-size: 0; gap: 0; } .cv2-header .cv2-secure .dna-icon { font-size: 1rem; } .cv2-product { padding: 18px; } .cv2-product-image { display: none; } .cv2-section-header, .cv2-section-body { padding: 18px; } .cv2-section-header { gap: 10px; } .cv2-page .cv2-section-title { font-size: 1.5rem; } .cv2-processing-consent { padding: 16px; } .cv2-page .multisample-grid, .cv2-page .multisample-list { grid-template-columns: minmax(0, 1fr); } .payment-method-header { padding: 15px; } .payment-method-body { padding: 0 15px 15px; } }

/* Optional WGS-instead-of-sample choice: collapsed by default so most buyers go straight to the sample picker. */
.cv2-optional-details > .cv2-optional-summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 16px 22px; }
.cv2-optional-details > .cv2-optional-summary::-webkit-details-marker { display: none; }
.cv2-optional-details > .cv2-optional-summary::after { content: "+"; margin-left: auto; color: var(--hd-primary); font-weight: 600; }
.cv2-optional-details[open] > .cv2-optional-summary::after { content: "−"; }
.cv2-optional-summary .cv2-section-title { font-size: .95rem; }
.cv2-optional-summary small { color: var(--hd-muted); font-weight: 400; margin-left: 6px; }
.cv2-optional-details > .cv2-section-intro { margin: 0 22px 12px; }
