/* Basket and checkout: a clear, research-first path from products to payment. */
body.lab-checkout-page { background: var(--lab-soft, #f4f8f9); color: var(--lab-ink, #102c3a); }
.lab-checkout-page .container { max-width: 1200px; }
.lab-checkout-page .lab-order-strip { padding: .55rem 1rem; text-align: center; background: var(--lab-ink, #102c3a); color: #fff; font-size: .71rem; letter-spacing: .025em; }
.lab-checkout-page .lab-checkout-header { background: #fff; border-bottom: 1px solid var(--lab-line, #dce7eb); }
.lab-checkout-page .lab-header-inner { display: flex; min-height: 86px; justify-content: space-between; align-items: center; gap: 1rem; }
.lab-checkout-page .lab-header-brand { display: block; min-width: 0; flex-shrink: 1; }
.lab-checkout-page .lab-header-brand .cp-logo-image { display: block; width: 218px; max-width: 100%; height: 54px; object-fit: contain; object-position: left center; }
.lab-checkout-page .lab-header-actions { display: flex; align-items: center; flex-shrink: 0; gap: .55rem; }
.lab-checkout-page .lab-header-actions .cp-button { min-height: 42px; padding: .6rem .85rem; font-size: .81rem; gap: .4rem; white-space: nowrap; }
.lab-checkout-page .cp-profile-button { width: 42px; min-width: 42px; padding: .6rem; }
.lab-checkout-page .cp-profile-button svg { width: 19px; height: 19px; }
.lab-checkout-page .cp-profile-button-label { display: none; }
.lab-checkout-page .lab-label-mobile { display: none; }
.lab-checkout-page main.lab-order-main { padding-top: 2.3rem !important; padding-bottom: 4rem !important; }
.lab-checkout-page .lab-back-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--lab-muted, #617480); font-size: .82rem; text-decoration: none; margin-bottom: 1.8rem; }
.lab-checkout-page .lab-back-link:hover { color: var(--lab-teal, #087f83); text-decoration: underline; text-underline-offset: 4px; }
.lab-checkout-page .lab-order-heading { max-width: 710px; margin-bottom: 1.7rem; }
.lab-checkout-page .lab-order-heading h1 { margin: .45rem 0 .8rem; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.08; }
.lab-checkout-page .lab-order-heading p { margin-bottom: 0; color: var(--lab-muted, #617480); font-size: .94rem; line-height: 1.65; overflow-wrap: anywhere; }
.lab-checkout-page .lab-order-kicker { color: var(--lab-teal, #087f83); font-size: .69rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.lab-checkout-page .precision-checkout-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 650px; margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: order-step; }
.lab-checkout-page .precision-checkout-steps li { display: flex; gap: .65rem; align-items: center; position: relative; color: var(--lab-muted, #617480); font-size: .82rem; border-bottom: 2px solid var(--lab-line, #dce7eb); padding: .25rem .5rem 1rem 0; }
.lab-checkout-page .precision-checkout-steps li:before { content: counter(order-step, decimal-leading-zero); counter-increment: order-step; display: inline-grid; place-content: center; width: 30px; height: 30px; flex-shrink: 0; background: #eaf0f2; border-radius: 50%; font-size: .7rem; font-weight: 700; }
.lab-checkout-page .precision-checkout-steps li[aria-current="step"] { color: var(--lab-teal, #087f83); border-color: var(--lab-teal, #087f83); font-weight: 750; }
.lab-checkout-page .precision-checkout-steps li[aria-current="step"]:before { color: #fff; background: var(--lab-teal, #087f83); }
.lab-checkout-page .precision-checkout-steps a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
.lab-checkout-page .precision-checkout-steps a:hover { text-decoration: underline; }
.lab-checkout-page .cp-card { border: 1px solid var(--lab-line, #dce7eb); border-radius: 14px; background: #fff; box-shadow: 0 5px 24px #102c3a04; }
.lab-checkout-page .cp-muted, .lab-checkout-page .form-text { color: var(--lab-muted, #617480); }
.lab-checkout-page .cp-button { background: var(--lab-teal, #087f83); border-color: var(--lab-teal, #087f83); border-radius: 8px; min-height: 48px; font-weight: 650; box-shadow: none; }
.lab-checkout-page .cp-button:hover { background: #066c70; border-color: #066c70; }
.lab-checkout-page .cp-button.secondary { color: var(--lab-ink, #102c3a); background: #fff; border-color: var(--lab-line, #dce7eb); }
.lab-checkout-page .cp-button.secondary:hover { background: var(--lab-soft, #f4f8f9); border-color: #a8c5cc; }
.lab-checkout-page .cp-button:disabled { opacity: .55; cursor: not-allowed; }
.lab-checkout-page a { text-underline-offset: 3px; }
.lab-checkout-page :focus-visible { outline: 3px solid var(--lab-blue, #0059df); outline-offset: 3px; }
.lab-checkout-page .lab-delivery-note { display: flex; align-items: flex-start; gap: .85rem; border: 1px solid #cfe3e3; border-radius: 10px; background: #edf6f5; padding: 1rem 1.15rem; margin-bottom: 1.5rem; }
.lab-checkout-page .lab-delivery-note svg { width: 22px; height: 22px; margin-top: .1rem; color: var(--lab-teal, #087f83); flex-shrink: 0; }
.lab-checkout-page .lab-delivery-note strong { display: block; color: var(--lab-ink, #102c3a); font-size: .88rem; margin-bottom: .18rem; }
.lab-checkout-page .lab-delivery-note p { font-size: .8rem; color: var(--lab-muted, #617480); line-height: 1.6; margin: 0; }
.lab-checkout-page .lab-basket-layout, .lab-checkout-page .lab-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 355px; gap: 1.6rem; align-items: start; }
.lab-checkout-page .lab-basket-items, .lab-checkout-page .lab-checkout-form, .lab-checkout-page .lab-checkout-sidebar { min-width: 0; }
.lab-checkout-page .lab-panel-heading { padding: 1.2rem 1.3rem; margin: 0; font-size: 1rem; font-weight: 700; border-bottom: 1px solid var(--lab-line, #dce7eb); }
.lab-checkout-page .cp-cart-table { overflow: hidden; }
.lab-checkout-page .cp-cart-table .table { color: var(--lab-ink, #102c3a); font-size: .84rem; }
.lab-checkout-page .cp-cart-table thead th { color: var(--lab-muted, #617480); background: #f8fafb; border-color: var(--lab-line, #dce7eb); font-size: .67rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; padding: .85rem 1rem; }
.lab-checkout-page .cp-cart-table td { padding: 1.2rem 1rem; background: transparent; border-color: var(--lab-line, #dce7eb); }
.lab-checkout-page .cp-cart-table tbody tr:last-child td { border-bottom: 0; }
.lab-checkout-page .lab-table-product { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: .85rem; align-items: start; min-width: 185px; }
.lab-checkout-page .lab-table-product img { width: 62px; height: 82px; object-fit: contain; border: 1px solid var(--lab-line, #dce7eb); border-radius: 7px; padding: .2rem; background: #fff; }
.lab-checkout-page .lab-product-name { color: var(--lab-ink, #102c3a); font-size: .94rem; font-weight: 700; line-height: 1.35; }
.lab-checkout-page .lab-product-spec { color: var(--lab-muted, #617480); font-size: .78rem; line-height: 1.5; margin-top: .2rem; }
.lab-checkout-page .lab-product-document { color: var(--lab-muted, #617480); font-size: .71rem; margin-top: .55rem; line-height: 1.5; }
.lab-checkout-page .cp-stock-status { display: inline-flex; margin-top: .45rem; padding: .2rem .5rem; border-radius: 5px; border: 1px solid #cde5da; color: #256647; background: #eff8f2; font-size: .69rem; font-weight: 700; }
.lab-checkout-page .cp-stock-status[data-state="incoming"], .lab-checkout-page .cp-stock-status[data-state="lead_time"] { background: #fff7e8; border-color: #ecdcb9; color: #815b17; }
.lab-checkout-page .cp-stock-status[data-state="out"] { background: #f7f0ee; border-color: #e9d5cf; color: #8d4432; }
.lab-checkout-page .cp-stock-note { display: block; color: var(--lab-muted, #617480); font-size: .72rem; line-height: 1.5; margin-top: .25rem; }
.lab-checkout-page .lab-remove-button { padding: .4rem 0; color: #7b5148; background: none; border: 0; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.lab-checkout-page .lab-remove-button:hover { color: #9c3926; }
.lab-checkout-page .lab-quantity { width: 68px; min-height: 43px; padding-inline: .55rem; text-align: center; }
.lab-checkout-page .cp-cart-mobile { display: none; }
.lab-checkout-page .lab-basket-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.lab-checkout-page .lab-basket-bottom p { font-size: .77rem; color: var(--lab-muted, #617480); max-width: 265px; margin: 0; }
.lab-checkout-page .lab-summary-card { padding: 1.5rem; }
.lab-checkout-page .lab-summary-kicker { color: var(--lab-teal, #087f83); font-size: .66rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .45rem; }
.lab-checkout-page .lab-summary-card h2 { font-size: 1.25rem; font-weight: 650; margin-bottom: 1.5rem; letter-spacing: -.02em; }
.lab-checkout-page .lab-summary-row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .85rem; color: var(--lab-muted, #617480); font-size: .85rem; }
.lab-checkout-page .lab-summary-row > :last-child { color: var(--lab-ink, #102c3a); white-space: nowrap; font-weight: 550; }
.lab-checkout-page .lab-summary-row.lab-summary-discount, .lab-checkout-page .lab-summary-row.lab-summary-discount > :last-child { color: #277055; }
.lab-checkout-page .lab-summary-total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--lab-line, #dce7eb); margin-top: .3rem; padding: 1.05rem 0 1.3rem; font-weight: 650; }
.lab-checkout-page .lab-summary-total strong { font-size: 1.7rem; font-weight: 650; letter-spacing: -.035em; white-space: nowrap; }
.lab-checkout-page .lab-summary-card .cp-button { width: 100%; }
.lab-checkout-page .lab-summary-note { color: var(--lab-muted, #617480); line-height: 1.6; font-size: .74rem; margin: 1rem 0 0; }
.lab-checkout-page .cp-account-option { margin-top: 1rem; text-align: center; font-size: .75rem; line-height: 1.7; }
.lab-checkout-page .cp-account-option a { color: var(--lab-teal, #087f83); font-weight: 650; }
.lab-checkout-page .lab-basket-extras { display: grid; grid-template-columns: minmax(0, 1fr) 355px; gap: 1.6rem; align-items: start; margin-top: 1.25rem; }
.lab-checkout-page .lab-research-note { border-left: 2px solid #93bfc0; padding: .25rem 0 .25rem 1rem; max-width: 530px; color: var(--lab-muted, #617480); font-size: .78rem; line-height: 1.65; }
.lab-checkout-page .lab-research-note strong { display: block; color: var(--lab-ink, #102c3a); margin-bottom: .25rem; font-size: .8rem; }
.lab-checkout-page .precision-code-details { border-color: var(--lab-line, #dce7eb); border-radius: 10px; box-shadow: none; }
.lab-checkout-page .precision-code-details summary { color: var(--lab-muted, #617480); font-size: .81rem; padding: 1rem; }
.lab-checkout-page .precision-code-details form { padding: .15rem 1rem 1rem !important; background: #fff; }
.lab-checkout-page .lab-empty-basket { max-width: 720px; padding: 3rem 2rem; text-align: center; }
.lab-checkout-page .lab-empty-basket h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.lab-checkout-page .lab-empty-basket p { color: var(--lab-muted, #617480); }
.lab-checkout-page .lab-checkout-form { padding: 0; overflow: hidden; }
.lab-checkout-page .lab-form-section { min-width: 0; margin: 0; padding: 1.6rem; border: 0; border-bottom: 1px solid var(--lab-line, #dce7eb); }
.lab-checkout-page .lab-form-section:last-child { border-bottom: 0; }
.lab-checkout-page .lab-form-section legend { float: none; width: 100%; padding: 0; margin: 0 0 1rem; display: flex; align-items: center; gap: .65rem; color: var(--lab-ink, #102c3a); font-size: 1rem; font-weight: 700; }
.lab-checkout-page .lab-form-section legend span { display: inline-grid; place-content: center; height: 26px; width: 26px; border: 1px solid #c4dede; border-radius: 50%; color: var(--lab-teal, #087f83); background: #f0f7f6; font-size: .68rem; }
.lab-checkout-page .lab-form-section > p { margin: -.35rem 0 1.1rem; color: var(--lab-muted, #617480); font-size: .79rem; line-height: 1.6; }
.lab-checkout-page #checkout-form .form-label { color: var(--lab-ink, #102c3a); font-size: .79rem; font-weight: 650; margin-bottom: .4rem; }
.lab-checkout-page .form-control, .lab-checkout-page .form-select { border-color: #cfdee3; border-radius: 7px; background-color: #fff; color: var(--lab-ink, #102c3a); min-height: 47px; font-size: 16px; }
.lab-checkout-page .form-control:focus, .lab-checkout-page .form-select:focus { border-color: var(--lab-teal, #087f83); box-shadow: 0 0 0 3px #087f8315; }
.lab-checkout-page .form-control[readonly] { background: #f3f7f8; color: var(--lab-muted, #617480); }
.lab-checkout-page .form-text { font-size: .73rem; line-height: 1.55; }
.lab-checkout-page .lab-checkout-notice { margin-bottom: 1.25rem; padding: .85rem 1rem; border: 1px solid var(--lab-line, #dce7eb); border-radius: 8px; background: #f8fafb; font-size: .79rem; line-height: 1.6; }
.lab-checkout-page .lab-checkout-notice strong { display: block; margin-bottom: .1rem; color: var(--lab-ink, #102c3a); }
.lab-checkout-page .lab-checkout-notice a { color: var(--lab-teal, #087f83); font-weight: 600; }
.lab-checkout-page #checkout-form .form-check { margin: 0; padding: .9rem 1rem .9rem 2.8rem; border: 1px solid var(--lab-line, #dce7eb); border-radius: 8px; background: #fff; font-size: .8rem; line-height: 1.65; }
.lab-checkout-page #checkout-form .form-check + .form-check { margin-top: .75rem; }
.lab-checkout-page #checkout-form .form-check:has(input:required) { background: #f8fbfb; }
.lab-checkout-page #checkout-form .form-check-input { width: 18px; height: 18px; margin-top: .2rem; margin-left: -1.8rem; border-color: #9cb6c1; }
.lab-checkout-page #checkout-form .form-check-input:checked { background-color: var(--lab-teal, #087f83); border-color: var(--lab-teal, #087f83); }
.lab-checkout-page #checkout-submit { width: 100%; min-height: 54px; margin-top: 1.3rem; }
.lab-checkout-page .lab-payment-note { text-align: center; color: var(--lab-muted, #617480); font-size: .73rem; line-height: 1.6; margin: .85rem 0 0; }
.lab-checkout-page .precision-checkout-summary { order: 0; }
.lab-checkout-page .precision-checkout-summary > .cp-card { position: static; background: #fff; }
.lab-checkout-page .lab-summary-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: start; gap: .7rem; border-top: 1px solid var(--lab-line, #dce7eb); padding: 1rem 0; }
.lab-checkout-page .lab-summary-item:first-of-type { border-top: 0; padding-top: 0; }
.lab-checkout-page .lab-summary-item img { width: 48px; height: 62px; object-fit: contain; border: 1px solid var(--lab-line, #dce7eb); border-radius: 6px; padding: .1rem; background: #fff; }
.lab-checkout-page .lab-summary-item > strong { font-size: .83rem; white-space: nowrap; }
.lab-checkout-page .lab-summary-item h3 { margin: 0 0 .2rem; font-size: .85rem; line-height: 1.4; font-weight: 650; }
.lab-checkout-page .lab-summary-item p { color: var(--lab-muted, #617480); font-size: .73rem; line-height: 1.5; margin: .2rem 0 0; }
.lab-checkout-page .lab-summary-items { margin-bottom: 1.1rem; }
.lab-checkout-page .lab-order-footer { border-top: 1px solid var(--lab-line, #dce7eb); padding: 1.5rem 0; font-size: .74rem; color: var(--lab-muted, #617480); }
.lab-checkout-page .lab-order-footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.5rem; }
.lab-checkout-page .lab-order-footer p { margin: 0; }
.lab-checkout-page .lab-order-footer a { color: var(--lab-ink, #102c3a); margin-right: 1.1rem; }
@media (max-width: 1050px) {
    .lab-checkout-page .lab-basket-layout, .lab-checkout-page .lab-checkout-layout { grid-template-columns: minmax(0, 1fr) 315px; gap: 1rem; }
    .lab-checkout-page .lab-basket-extras { grid-template-columns: minmax(0, 1fr) 315px; gap: 1rem; }
    .lab-checkout-page .lab-summary-card, .lab-checkout-page .lab-form-section { padding: 1.25rem; }
    .lab-checkout-page .lab-table-product { grid-template-columns: minmax(0, 1fr); min-width: 130px; }
    .lab-checkout-page .lab-table-product img { display: none; }
}
@media (max-width: 991.98px) {
    .lab-checkout-page .lab-basket-layout, .lab-checkout-page .lab-checkout-layout, .lab-checkout-page .lab-basket-extras { grid-template-columns: minmax(0, 1fr); }
    .lab-checkout-page .lab-basket-extras .precision-code-details { max-width: 540px; }
    .lab-checkout-page .lab-checkout-sidebar { display: contents; }
    .lab-checkout-page .lab-checkout-sidebar > .lab-summary-card { order: -1; }
    .lab-checkout-page .lab-checkout-sidebar > .precision-code-details { order: 2; }
    .lab-checkout-page .lab-checkout-form { order: 1; }
    .lab-checkout-page .lab-checkout-sidebar .lab-summary-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
}
@media (max-width: 767.98px) {
    .lab-checkout-page .cp-cart-table { display: none; }
    .lab-checkout-page .cp-cart-mobile { display: grid; gap: .85rem; }
    .lab-checkout-page .cp-cart-line { background: #fff; padding: 1rem; border: 1px solid var(--lab-line, #dce7eb); border-radius: 12px; }
    .lab-checkout-page .cp-cart-line-head { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: .85rem; margin-bottom: 1rem; align-items: start; }
    .lab-checkout-page .cp-cart-line-head > div { min-width: 0; }
    .lab-checkout-page .cp-cart-line .precision-cart-photo { width: 66px; height: 88px; object-fit: contain; border-color: var(--lab-line, #dce7eb); border-radius: 7px; }
    .lab-checkout-page .cp-cart-line-meta { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: .65rem; align-items: center; border-top: 1px solid var(--lab-line, #dce7eb); padding-top: .85rem; font-size: .86rem; }
    .lab-checkout-page .cp-cart-line-meta .small { font-size: .69rem; margin-bottom: .15rem; }
    .lab-checkout-page .cp-cart-line-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
    .lab-checkout-page .cp-cart-line-actions small { color: var(--lab-muted, #617480); font-size: .66rem; }
    .lab-checkout-page .lab-basket-bottom .cp-button { padding: .7rem 1rem; flex-shrink: 0; }
    .lab-checkout-page .lab-basket-bottom p { font-size: .72rem; }
}
@media (max-width: 575.98px) {
    .lab-checkout-page .container { padding-left: 18px; padding-right: 18px; }
    .lab-checkout-page .lab-order-strip { padding: .5rem .75rem; font-size: .59rem; }
    .lab-checkout-page .lab-header-inner { min-height: 72px; gap: .5rem; }
    .lab-checkout-page .lab-header-brand .cp-logo-image { width: 152px; max-width: 100%; height: 43px; }
    .lab-checkout-page .lab-header-actions { gap: .4rem; }
    .lab-checkout-page .lab-header-actions .cp-button { min-height: 40px; padding: .5rem .65rem; font-size: .75rem; }
    .lab-checkout-page .lab-header-actions .cp-profile-button { width: 40px; min-width: 40px; padding: .5rem; }
    .lab-checkout-page .lab-nav-catalogue, .lab-checkout-page .lab-label-desktop { display: none; }
    .lab-checkout-page .lab-label-mobile { display: inline; }
    .lab-checkout-page main.lab-order-main { padding-top: 1.5rem !important; padding-bottom: 2.5rem !important; }
    .lab-checkout-page .lab-back-link { margin-bottom: 1.35rem; font-size: .77rem; }
    .lab-checkout-page .lab-order-heading { margin-bottom: 1.25rem; }
    .lab-checkout-page .lab-order-heading h1 { font-size: 2.15rem; margin-bottom: .65rem; }
    .lab-checkout-page .lab-order-heading p { font-size: .84rem; }
    .lab-checkout-page .precision-checkout-steps { margin-bottom: 1.45rem; }
    .lab-checkout-page .precision-checkout-steps li { gap: .4rem; padding-bottom: .8rem; font-size: .69rem; align-items: center; }
    .lab-checkout-page .precision-checkout-steps li:before { width: 25px; height: 25px; font-size: .61rem; }
    .lab-checkout-page .lab-delivery-note { gap: .65rem; padding: .85rem; }
    .lab-checkout-page .lab-delivery-note p { font-size: .74rem; }
    .lab-checkout-page .lab-summary-card { padding: 1.25rem; }
    .lab-checkout-page .lab-summary-card h2 { margin-bottom: 1rem; font-size: 1.15rem; }
    .lab-checkout-page .lab-summary-row { font-size: .8rem; }
    .lab-checkout-page .lab-basket-bottom { flex-direction: column; align-items: stretch; gap: .7rem; }
    .lab-checkout-page .lab-basket-bottom p { max-width: none; }
    .lab-checkout-page .lab-form-section { padding: 1.2rem; }
    .lab-checkout-page .lab-checkout-sidebar .lab-summary-items { display: block; }
    .lab-checkout-page .lab-summary-item { grid-template-columns: 42px minmax(0, 1fr) auto; gap: .6rem; }
    .lab-checkout-page .lab-summary-item img { width: 42px; height: 56px; }
    .lab-checkout-page .lab-summary-item > strong { font-size: .77rem; }
    .lab-checkout-page #checkout-form .form-check { padding: .85rem .8rem .85rem 2.55rem; font-size: .76rem; }
    .lab-checkout-page .lab-empty-basket { padding: 2rem 1.2rem; }
    .lab-checkout-page .lab-order-footer .container { display: block; }
    .lab-checkout-page .lab-order-footer p { margin-bottom: .65rem; }
}
@media (max-width: 359.98px) {
    .lab-checkout-page .container { padding-left: 14px; padding-right: 14px; }
    .lab-checkout-page .lab-header-brand .cp-logo-image { width: 133px; }
    .lab-checkout-page .lab-header-actions .cp-button { padding-inline: .55rem; }
    .lab-checkout-page .precision-checkout-steps li { gap: .3rem; font-size: .64rem; }
    .lab-checkout-page .precision-checkout-steps li:before { width: 23px; height: 23px; }
    .lab-checkout-page .lab-summary-card, .lab-checkout-page .lab-form-section { padding: 1rem; }
}
