/* =========================================================
   Afrikart Checkout — Premium Ecommerce Checkout Redesign
   ========================================================= */

:root {
    --ck-green: #006b35;
    --ck-green-dark: #00532a;
    --ck-green-light: #eef8f1;
    --ck-text: #111827;
    --ck-muted: #6b7280;
    --ck-border: #e5e7eb;
    --ck-bg: #f8faf9;
    --ck-white: #ffffff;
    --ck-radius-lg: 16px;
    --ck-radius-md: 10px;
    --ck-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.ck-checkout-page {
    background: var(--ck-bg);
    color: var(--ck-text);
}

.ck-card {
    background: var(--ck-white);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-lg);
    box-shadow: var(--ck-shadow);
    padding: 24px;
}

.ck-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ck-text);
}

/* ---------- Top progress bar + secure badge ---------- */

.ck-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ck-steps {
    display: flex;
    align-items: flex-start;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 280px;
}

.ck-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 64px;
}

.ck-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--ck-border);
    background: var(--ck-white);
    color: var(--ck-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ck-step.active .ck-step-circle,
.ck-step.completed .ck-step-circle {
    background: var(--ck-green);
    border-color: var(--ck-green);
    color: var(--ck-white);
}

.ck-step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ck-muted);
    white-space: nowrap;
    text-align: center;
}

.ck-step.active .ck-step-label,
.ck-step.completed .ck-step-label {
    color: var(--ck-green);
    font-weight: 600;
}

a.ck-step {
    text-decoration: none;
}

a.ck-step:hover .ck-step-circle {
    box-shadow: 0 0 0 3px rgba(0, 107, 53, 0.15);
}

.ck-step-line {
    flex: 1 1 auto;
    height: 2px;
    min-width: 24px;
    background: var(--ck-border);
    margin-top: 16px;
}

.ck-step-line.active {
    background: var(--ck-green);
}

.ck-secure-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.ck-secure-badge-icon {
    font-size: 1.4rem;
    color: var(--ck-green);
}

.ck-secure-badge-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ck-text);
    line-height: 1.2;
}

.ck-secure-badge-sub {
    font-size: 0.75rem;
    color: var(--ck-muted);
    line-height: 1.2;
}

/* ---------- Shipping & Contact form card ---------- */

.ck-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 20px;
}

.ck-avatar-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ck-green-light);
    color: var(--ck-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ck-form-subtitle {
    font-size: 0.9rem;
    color: var(--ck-muted);
}

.ck-form-grid {
    margin-bottom: 4px;
}

.ck-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ck-text);
    margin-bottom: 0.4rem;
}

.ck-required {
    color: #dc2626;
}

.ck-input {
    height: 46px;
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-md);
    font-size: 0.875rem;
    padding: 0.6rem 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ck-input:focus {
    border-color: var(--ck-green);
    box-shadow: 0 0 0 3px rgba(0, 107, 53, 0.12);
}

.ck-input-error {
    border-color: #dc2626;
}

.ck-error-text {
    display: block;
    color: #dc2626;
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

/* ---------- Coupon accordion row ---------- */

.ck-coupon-accordion {
    margin-top: 20px;
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-md);
    overflow: hidden;
}

.ck-coupon-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--ck-white);
    border: none;
    padding: 0.9rem 1rem;
    cursor: pointer;
    text-align: left;
}

.ck-coupon-row i.bi-tag {
    color: var(--ck-green);
    font-size: 1.1rem;
}

.ck-coupon-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ck-coupon-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ck-text);
}

.ck-coupon-sub {
    font-size: 0.78rem;
    color: var(--ck-muted);
}

.ck-coupon-chevron {
    margin-left: auto;
    color: var(--ck-muted);
    transition: transform 0.2s;
}

.ck-coupon-row[aria-expanded="true"] .ck-coupon-chevron {
    transform: rotate(180deg);
}

.ck-coupon-body {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid var(--ck-border);
    padding-top: 1rem;
}

.ck-coupon-apply-btn {
    background: var(--ck-green);
    color: var(--ck-white);
    border: none;
    border-radius: var(--ck-radius-md);
    padding: 0 1.2rem;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.ck-coupon-apply-btn:hover {
    background: var(--ck-green-dark);
}

.ck-coupon-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Applied coupon chip ---------- */

.ck-coupon-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--ck-green-light);
    border: 1px solid var(--ck-green);
    border-radius: var(--ck-radius-md);
    padding: 10px 14px;
    margin-top: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ck-green-dark);
}

.ck-coupon-chip i.bi-tag-fill {
    color: var(--ck-green);
}

.ck-coupon-chip-code {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.8rem;
}

.ck-coupon-chip-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--ck-muted);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.ck-coupon-chip-remove:hover {
    color: #dc2626;
}

.ck-coupon-chip-remove:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ck-coupon-chip-amount {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* A gift card chip stacks below a coupon chip rather than replacing it, so it
   gets its own amber tone (matching the gift card face elsewhere in the
   account) to read as a second, distinct thing rather than a coupon retry. */
.ck-coupon-chip--gift {
    background: #FFF7E6;
    border-color: #D9A32C;
    color: #7A5A12;
}

.ck-coupon-chip--gift i.bi-gift-fill {
    color: #D9A32C;
}

/* ---------- Gift card offer panel ---------- */
/* The customer's own card, shown unprompted above the coupon box: a balance,
   a checkbox that is already checked, and a small card face on the right so
   it reads as a real card rather than another form field. */

.ck-gc-offer {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #FFFBF2;
    border: 1px solid #E9CB8A;
    border-radius: var(--ck-radius-md);
    padding: 16px;
    margin-top: 20px;
}

.ck-gc-offer-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #FFF1CE;
    color: #B67F1B;
    font-size: 1.05rem;
}

.ck-gc-offer-body {
    flex: 1 1 auto;
    min-width: 0;
}

.ck-gc-offer-title {
    margin: 0 0 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ck-text);
}

.ck-gc-offer-bal-l {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ck-muted);
}

.ck-gc-offer-bal-v {
    margin: 2px 0 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ck-text);
}

/* Why a restricted card applies less than the balance shown above it. */
.ck-gc-offer-scope {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -6px 0 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(233, 169, 60, 0.14);
    font-size: 0.74rem;
    font-weight: 600;
    color: #8A5D12;
}

.ck-gc-offer-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.ck-gc-offer-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.ck-gc-offer-check-mark {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    border: 2px solid #C9A96A;
    background: var(--ck-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.75rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ck-gc-offer-check input:checked ~ .ck-gc-offer-check-mark {
    background: #8E1216;
    border-color: #8E1216;
    color: #fff;
}

.ck-gc-offer-check input:focus-visible ~ .ck-gc-offer-check-mark {
    outline: 2px solid #B67F1B;
    outline-offset: 2px;
}

.ck-gc-offer-check-b {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.ck-gc-offer-check-b b {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ck-text);
}

.ck-gc-offer-check-b em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--ck-muted);
}

.ck-gc-offer-art {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    width: 92px;
    aspect-ratio: 1.55;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 9px;
    padding: 8px 9px;
    color: #fff;
    background: linear-gradient(145deg, #A2171C 0%, #7E1014 46%, #5E0A0D 100%);
    box-shadow: 0 8px 16px -10px rgba(94, 10, 13, 0.6);
}

.ck-gc-offer-art-pat {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    pointer-events: none;
    background: repeating-linear-gradient(58deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 9px);
}

.ck-gc-offer-art-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.ck-gc-offer-art-mark {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
}

.ck-gc-offer-art-sub {
    position: relative;
    z-index: 1;
    font-size: 0.58rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.08em;
    color: #F0C25A;
}

@media (min-width: 420px) {
    .ck-gc-offer-art {
        display: flex;
    }
}

/* ---------- Checkout upsell ("You Might Also Like") ----------
   Client design, 11 Oct 2026: two cards in view on phone and desktop, a
   heart on each picture, "See more" in place of Hide, round dots. */

.ck-upsell-section {
    position: relative;
    margin-top: 20px;
    border: 1px solid var(--ck-border);
    border-radius: 16px;
    background: var(--ck-green-light);
    overflow: hidden;
}

.ck-upsell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1rem 0.85rem;
}

.ck-upsell-section[hidden] {
    display: none;
}

/* Small, in the very corner, so the header keeps its full width for the
   title; "See more" sits a little lower to clear it. */
.ck-upsell-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ck-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ck-upsell-close:hover,
.ck-upsell-close:focus-visible {
    background: rgba(0, 107, 53, 0.1);
    color: var(--ck-text);
}

.ck-upsell-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.ck-upsell-heading i.bi-bag-heart {
    color: var(--ck-green);
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.ck-upsell-heading-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.ck-upsell-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ck-text);
    /* One line, as designed - never "You Might Also / Like". */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ck-upsell-subtitle {
    font-size: 0.82rem;
    color: var(--ck-muted);
}

.ck-upsell-more {
    margin-top: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--ck-green);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.ck-upsell-more:hover {
    color: var(--ck-green);
    text-decoration: underline;
}

.ck-upsell-more i {
    font-size: 0.8rem;
}

.ck-upsell-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 0.75rem 0.85rem;
    scroll-padding: 0 0.75rem;
    scrollbar-width: none;
    cursor: grab;
}

.ck-upsell-scroll::-webkit-scrollbar {
    display: none;
}

.ck-upsell-scroll.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.ck-upsell-scroll.dragging .ck-upsell-card * {
    pointer-events: none;
}

.ck-upsell-card {
    /* Two cards per view (one 10px gap between them). */
    flex: 0 0 calc((100% - 10px) / 2);
    scroll-snap-align: start;
    background: var(--ck-white);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.ck-upsell-card-media {
    position: relative;
}

.ck-upsell-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--ck-bg);
}

.ck-upsell-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ck-upsell-wish {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--ck-white);
    color: var(--ck-text);
    font-size: 1rem;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.ck-upsell-wish:hover {
    transform: scale(1.06);
}

.ck-upsell-wish.is-active {
    color: #e0245e;
}

.ck-upsell-wish[disabled] {
    opacity: 0.6;
    cursor: wait;
}

.ck-upsell-card-body {
    padding: 0.6rem 0.15rem 0.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.ck-upsell-card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ck-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.ck-upsell-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ck-text);
    margin-top: auto;
}

.ck-upsell-from {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ck-muted);
    margin-right: 2px;
}

.ck-upsell-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 38px;
    padding: 6px 8px;
    background: white !important;
    color: var(--ck-green);
    border: 1.5px solid var(--ck-green);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.ck-upsell-add-btn:hover:not([disabled]) {
    background: var(--ck-green) !important;
    color: var(--ck-white);
}

.ck-upsell-add-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ck-upsell-qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 38px;
    padding: 0 6px;
    border-radius: 10px;
    border: 1.5px solid var(--ck-green);
    background: var(--ck-white);
}

.ck-upsell-qty-stepper .qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--ck-green);
    color: var(--ck-white);
    font-size: 0.75rem;
    cursor: pointer;
}

.ck-upsell-qty-stepper .qty-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.ck-upsell-qty-stepper .qty-number {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ck-text);
}

.ck-upsell-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-bottom: 0.95rem;
}

.ck-upsell-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d5dbd7;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.ck-upsell-dot.active {
    background: var(--ck-green);
    transform: scale(1.25);
}

/* ---------- CTA button ---------- */

.ck-cta-btn {
    width: 100%;
    height: 48px;
    margin-top: 20px;
    background: var(--ck-green);
    color: var(--ck-white);
    border: none;
    border-radius: var(--ck-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.ck-cta-btn:hover:not(:disabled) {
    background: var(--ck-green-dark);
}

.ck-cta-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ck-cta-note {
    text-align: center;
    color: var(--ck-muted);
    font-size: 0.8rem;
    margin-top: 0.7rem;
    margin-bottom: 0;
}

/* ---------- Order summary card ---------- */

.ck-summary-sticky {
    position: sticky;
    top: 32px;
    z-index: 2;
}

.ck-edit-cart {
    color: var(--ck-green);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ck-edit-cart:hover {
    color: var(--ck-green-dark);
}

.ck-summary-items {
    max-height: 260px;
    overflow-y: auto;
}

.ck-summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--ck-border);
}

.ck-summary-item:first-child {
    padding-top: 0;
}

.ck-summary-item:last-child {
    border-bottom: none;
}

.ck-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--ck-border);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ck-bg);
    color: var(--ck-muted);
}

.ck-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ck-item-info {
    flex: 1 1 auto;
    min-width: 0;
}

.ck-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ck-text);
}

.ck-item-meta {
    font-size: 0.78rem;
    color: var(--ck-muted);
    display: flex;
    gap: 0.5rem;
}

.ck-item-price {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.ck-view-all-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    background: var(--ck-bg);
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ck-text);
    cursor: pointer;
    transition: background 0.15s ease;
}

.ck-view-all-items:hover {
    background: var(--ck-border);
}

.ck-view-all-items i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.ck-view-all-items.active i {
    transform: rotate(180deg);
}

.ck-summary-totals {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ck-border);
}

.ck-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--ck-text);
    margin-bottom: 0.6rem;
}

.ck-discount-value {
    color: var(--ck-green);
    font-weight: 600;
}

.ck-shipping-message {
    color: var(--ck-muted);
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ck-order-total {
    border-top: 2px solid var(--ck-border);
    margin-top: 0.6rem;
    padding-top: 14px;
    font-size: 1rem;
    font-weight: 700;
}

.ck-order-total-value {
    color: var(--ck-green);
    font-size: 1.3rem;
    font-weight: 800;
}

/* ---------- Free shipping progress widget ---------- */

.ck-free-shipping-card {
    margin-top: 16px;
    background: var(--ck-green-light);
    border-radius: var(--ck-radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* One icon for both rows, centred on them, as in the design. */
.ck-fs-icon {
    color: var(--ck-green-dark);
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.ck-fs-body {
    flex: 1;
    min-width: 0;
    container: ck-fs / inline-size;
}

.ck-fs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    margin-bottom: 0.5rem;
}

.ck-fs-text {
    font-size: 0.88rem;
    color: var(--ck-green-dark);
    line-height: 1.3;
    white-space: nowrap;
}

.ck-fs-text strong {
    font-weight: 700;
}

.ck-fs-info {
    color: var(--ck-muted);
    font-size: 0.9rem;
    margin-left: 0.3rem;
    vertical-align: -1px;
    cursor: help;
}

.ck-progress {
    height: 7px;
    border-radius: 999px;
    background: var(--ck-border);
    overflow: hidden;
}

.ck-progress-bar {
    height: 100%;
    background: var(--ck-green);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.ck-ships-from {
    font-size: 0.78rem;
    color: var(--ck-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

/* Decided by the box's own width, not the screen's: whole phrase when it
   fits (about 300px), the flag and "Oregon" when it does not. The row may
   still wrap on the very narrowest, rather than run out of the box. */
@container ck-fs (max-width: 320px) {
    .ck-ships-from-label {
        display: none;
    }
}

.ck-flag-us {
    width: 19px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}

/* ---------- Card logos (beside the card payment option) ---------- */

.ck-payment-logo {
    height: 32px;
    min-width: 48px;
    padding: 0 10px;
    border: 1px solid var(--ck-border);
    border-radius: 6px;
    background: var(--ck-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ck-pay-visa {
    color: #1a1f71;
}

.ck-pay-amex {
    color: #2e77bc;
}

.ck-pay-discover {
    color: #ee7623;
}

.ck-pay-mc {
    gap: 0;
}

.ck-mc-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.ck-mc-circle--red {
    background: #eb001b;
    margin-right: -6px;
    z-index: 1;
}

.ck-mc-circle--orange {
    background: #f79e1b;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .ck-card {
        padding: 18px;
    }
}

@media (max-width: 767.98px) {
    .ck-input {
        font-size: 16px;
    }

    .ck-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .ck-secure-badge {
        justify-content: center;
    }

    .ck-step-circle {
        width: 26px;
        height: 26px;
        font-size: 0.78rem;
    }

    .ck-step-label {
        font-size: 0.65rem;
        white-space: normal;
        max-width: 72px;
    }

    .ck-step-line {
        margin-top: 13px;
        min-width: 12px;
    }

    .ck-summary-sticky {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .ck-card {
        padding: 14px;
    }

    /* Still one line on a phone, as the design has it: the sizes step down
       rather than the row breaking. */
    .ck-free-shipping-card {
        padding: 10px 12px;
        gap: 0.65rem;
    }

    .ck-fs-icon {
        font-size: 1.45rem;
    }

    .ck-fs-row {
        column-gap: 0.4rem;
    }

    .ck-fs-text {
        font-size: 0.74rem;
    }

    .ck-fs-info {
        font-size: 0.78rem;
        margin-left: 0.15rem;
    }

    .ck-ships-from {
        font-size: 0.68rem;
        gap: 0.25rem;
    }

    .ck-flag-us {
        width: 16px;
        height: 10px;
    }

    .ck-upsell-title {
        font-size: 0.92rem;
    }

    .ck-upsell-subtitle {
        font-size: 0.76rem;
    }

    .ck-upsell-heading {
        gap: 0.6rem;
    }

    .ck-upsell-heading i.bi-bag-heart {
        font-size: 1.4rem;
    }

    .ck-upsell-more {
        font-size: 0.82rem;
    }

    .ck-upsell-card-name {
        font-size: 0.82rem;
    }
}

/* =========================================================
   Express checkout (Apple Pay / Google Pay)
   ========================================================= */

.ck-express-checkout {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.ck-express-title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ck-text);
    margin-bottom: 0.75rem;
}

#express-checkout-element,
.ck-express-loader {
    min-height: 44px;
}

.ck-express-skeleton {
    display: flex;
    gap: 0.6rem;
}

.ck-express-skeleton-btn {
    flex: 1 1 0;
    display: block;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--ck-border) 25%, #f1f2f4 50%, var(--ck-border) 75%);
    background-size: 200% 100%;
    animation: ck-express-shimmer 1.4s ease-in-out infinite;
}

@keyframes ck-express-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.ck-express-loader-text {
    text-align: center;
    color: var(--ck-muted);
    font-size: 0.82rem;
    margin: 0.6rem 0 0 0;
    transition: opacity 0.2s ease;
}

/* Product page Buy Now: same disabled treatment as the Add to Cart / Buy Now
   buttons (dimmed, unclickable) until a variation is selected. */
.ck-express-checkout--disabled {
    opacity: 0.5;
    pointer-events: none;
}

.ck-page-loader-inner {
    width: 100%;
    max-width: 380px;
    padding: 0 1.5rem;
}

.ck-loader-badge {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ck-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--ck-green-light);
    border-top-color: var(--ck-green);
    border-right-color: var(--ck-green);
    animation: ck-loader-spin 1.1s linear infinite;
}

.ck-loader-icon {
    font-size: 2rem;
    color: var(--ck-green);
    z-index: 1;
}

@keyframes ck-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.ck-loader-heading {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ck-text);
    margin: 0 0 0.35rem 0;
}

.ck-loader-subtext {
    text-align: center;
    color: var(--ck-muted);
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

.ck-loader-progress {
    display: flex;
    gap: 0.4rem;
    margin: 0 0 1.75rem 0;
}

.ck-loader-progress-seg {
    flex: 1 1 0;
    height: 5px;
    border-radius: 999px;
    background: var(--ck-border);
    transition: background-color 0.3s ease;
}

.ck-loader-progress-seg.is-filled {
    background: var(--ck-green);
}

.ck-loader-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
}

.ck-loader-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    color: var(--ck-muted);
    white-space: nowrap;
}

.ck-loader-badge-item:not(:last-child) {
    padding-right: 0.9rem;
    border-right: 1px solid var(--ck-border);
}

.ck-loader-badge-item i {
    color: var(--ck-green);
}

@media (prefers-reduced-motion: reduce) {
    .ck-express-skeleton-btn {
        animation: none;
        background: var(--ck-border);
    }

    .ck-loader-ring {
        animation: none;
    }
}

.ck-express-note {
    text-align: center;
    color: var(--ck-muted);
    font-size: 0.78rem;
    margin: 0.6rem 0 0 0;
}

.ck-or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--ck-muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1.2rem;
}

.ck-or-divider::before,
.ck-or-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--ck-border);
}

.ck-or-divider span {
    padding: 0 0.9rem;
}

/* =========================================================
   Merged checkout: numbered accordion sections
   ========================================================= */

.ck-section {
    border-bottom: 1px solid var(--ck-border);
}

.ck-section:last-of-type {
    border-bottom: none;
}

.ck-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: none;
    border: none;
    padding: 1.1rem 0;
    cursor: pointer;
    text-align: left;
}

.ck-section-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ck-green);
    color: var(--ck-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ck-section-number--done {
    background: var(--ck-green-dark);
}

.ck-section-heading {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
}

.ck-section-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ck-text);
}

.ck-section-sub {
    font-size: 0.8rem;
    color: var(--ck-muted);
}

.ck-section-chevron {
    color: var(--ck-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ck-section-header[aria-expanded="true"] .ck-section-chevron {
    transform: rotate(180deg);
}

.ck-section-body {
    padding: 0 0 1.4rem 0;
}

.ck-readonly-address {
    font-size: 0.9rem;
    color: var(--ck-text);
    line-height: 1.6;
}

.ck-readonly-name {
    font-weight: 600;
}

.ck-readonly-line {
    color: var(--ck-muted);
}

/* ---------- Shipping rate options ---------- */

.ck-shipping-rates {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ck-shipping-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ck-muted);
    font-size: 0.85rem;
    background: var(--ck-bg);
    border: 1px dashed var(--ck-border);
    border-radius: var(--ck-radius-md);
    padding: 0.9rem 1rem;
    margin: 0;
}

.ck-shipping-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-md);
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ck-shipping-option:hover {
    border-color: var(--ck-green);
}

.ck-shipping-option-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.ck-shipping-option-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ck-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}

.ck-shipping-option-input:checked ~ .ck-shipping-option-indicator {
    border-color: var(--ck-green);
}

.ck-shipping-option-input:checked ~ .ck-shipping-option-indicator::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ck-green);
}

.ck-shipping-option-input:checked ~ .ck-shipping-option-info .ck-shipping-option-name {
    color: var(--ck-green);
}

.ck-shipping-option-input:focus-visible ~ .ck-shipping-option-indicator {
    box-shadow: 0 0 0 3px rgba(0, 107, 53, 0.15);
}

.ck-shipping-option-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ck-shipping-option-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ck-text);
}

.ck-shipping-option-meta {
    font-size: 0.78rem;
    color: var(--ck-muted);
}

.ck-shipping-option-price {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ck-text);
    white-space: nowrap;
}

/* ---------- Payment method options ---------- */

.ck-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.ck-payment-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-md);
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ck-payment-option:hover {
    border-color: var(--ck-green);
}

.ck-payment-option-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.ck-payment-option-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ck-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}

.ck-payment-option-input:checked ~ .ck-payment-option-indicator {
    border-color: var(--ck-green);
}

.ck-payment-option-input:checked ~ .ck-payment-option-indicator::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ck-green);
}

.ck-payment-option-input:focus-visible ~ .ck-payment-option-indicator {
    box-shadow: 0 0 0 3px rgba(0, 107, 53, 0.15);
}

.ck-payment-option-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
}

.ck-payment-option-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--ck-green-light);
    color: var(--ck-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ck-payment-option-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ck-payment-option-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ck-text);
}

.ck-payment-option-brands {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

/* ---------- Terms checkbox ---------- */

.ck-terms-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--ck-bg);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-md);
    padding: 0.8rem 1rem;
}

.ck-terms-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ck-green);
    margin-top: 2px;
}

.ck-terms-wrapper label {
    font-size: 0.85rem;
    color: var(--ck-text);
}

.ck-link-accent {
    color: var(--ck-green);
}

.ck-link-accent:hover {
    color: var(--ck-green-dark);
}

/* ---------- Saved cards ---------- */
/* A block of their own above the gateways. Full-width rows, because a saved
   card carries a mark, a number and an expiry — squeezed into the two-column
   gateway grid it had half a row and read as a tile with text spilling out of
   it. Type follows the same small ramp as the rest of the account pages. */

.ck-saved-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.ck-saved-h {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ck-muted);
}

.ck-saved-h i {
    color: var(--ck-green);
    font-size: 0.95rem;
}

.ck-saved-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ck-saved {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.72rem 0.85rem;
    background: var(--ck-white);
    border: 1.5px solid var(--ck-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ck-saved:hover {
    border-color: #b6d6c4;
}

.ck-saved-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.ck-saved:has(.ck-saved-input:checked),
.ck-saved.is-on {
    border-color: var(--ck-green);
    background: var(--ck-green-light);
    box-shadow: 0 0 0 3px rgba(0, 107, 53, 0.08);
}

/* The network mark, drawn rather than fetched. One plate size for every
   network, so the numbers line up down the list. */

.ck-saved-mark {
    flex-shrink: 0;
    width: 48px;
    height: 31px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f2f4f3;
}

.ck-saved-mark b {
    font-weight: 900;
    font-style: italic;
    font-size: 0.84rem;
    line-height: 1;
    letter-spacing: -0.035em;
    color: #1a1f71;
    text-transform: uppercase;
}

.ck-saved-mark--amex {
    background: #006fcf;
}

.ck-saved-mark--amex b {
    font-style: normal;
    font-size: 0.52rem;
    letter-spacing: 0.03em;
    color: #ffffff;
}

.ck-saved-mark--discover b {
    font-style: normal;
    font-size: 0.44rem;
    letter-spacing: 0.03em;
    color: #e8641c;
}

.ck-saved-mark--other b {
    font-style: normal;
    font-size: 0.44rem;
    letter-spacing: 0.03em;
    color: #46514d;
    padding: 0 3px;
    text-align: center;
}

/* Mastercard's interlocking circles. multiply, not screen: this pair sits on
   a light plate, where screen would wash the overlap out to nothing. */

.ck-mc {
    position: relative;
    width: 33px;
    height: 21px;
}

.ck-mc i {
    position: absolute;
    top: 0;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

.ck-mc i:first-child {
    left: 0;
    background: #eb001b;
}

.ck-mc i:last-child {
    right: 0;
    background: #f79e1b;
}

.ck-saved-b {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ck-saved-b b {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ck-text);
    letter-spacing: -0.012em;
}

.ck-saved-b em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--ck-muted);
}

.ck-saved-tag {
    flex-shrink: 0;
    background: #e3f1e9;
    color: var(--ck-green);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* A tick rather than a radio dot: the row is the control, and a tick reads as
   "this one" at a glance where a dot reads as a form field. */

.ck-saved-tick {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--ck-border);
    background: var(--ck-white);
    color: transparent;
    font-size: 0.68rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ck-saved:has(.ck-saved-input:checked) .ck-saved-tick,
.ck-saved.is-on .ck-saved-tick {
    background: var(--ck-green);
    border-color: var(--ck-green);
    color: var(--ck-white);
}

.ck-saved-input:focus-visible ~ .ck-saved-tick {
    outline: 2px solid var(--ck-green);
    outline-offset: 2px;
}

/* The seam between the saved cards and the other ways to pay. */

.ck-saved-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.2rem 0 0;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--ck-muted);
}

.ck-saved-or::before,
.ck-saved-or::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--ck-border);
}

/* Shown only for a card being typed in for the first time — a card already on
   file is already saved. */

.ck-savecard {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.85rem;
    padding: 0.8rem 0.9rem;
    background: var(--ck-bg);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-md);
    cursor: pointer;
}

.ck-savecard[hidden] {
    display: none;
}

.ck-savecard input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--ck-green);
    flex-shrink: 0;
}

.ck-savecard span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ck-savecard b {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ck-text);
}

.ck-savecard em {
    font-style: normal;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--ck-muted);
}

@media (prefers-reduced-motion: reduce) {
    .ck-saved,
    .ck-saved-tick {
        transition: none;
    }
}

/* Where the bank's own words about a decline go. */

.ck-pay-error {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.85rem 0 0;
    padding: 0.8rem 0.9rem;
    background: #fdecec;
    border: 1px solid #f5cfcf;
    border-radius: var(--ck-radius-md);
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.5;
    color: #9a2020;
}

.ck-pay-error[hidden] {
    display: none;
}

.ck-cta-btn.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.ck-pay-retry {
    color: #9a2020;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

/* ---------- Nothing left to pay ---------- */
/* A gift card or a coupon can cover a basket completely. Saying so before the
   payment options stops the customer hunting for the one that means "none". */

.ck-nothing {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0 0 1.1rem;
    padding: 0.85rem 0.95rem;
    background: var(--ck-green-light);
    border: 1px solid #cfe7da;
    border-radius: var(--ck-radius-md);
}

.ck-nothing-i {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ck-green);
    color: var(--ck-white);
    font-size: 0.78rem;
}

.ck-nothing-b {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ck-nothing-b b {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ck-green-dark);
}

.ck-nothing-b em {
    font-style: normal;
    font-size: 0.77rem;
    line-height: 1.5;
    color: #4a6357;
}
