
.ckos-customer-shell,
.ckos-customer-shell *,
.ckos-customer-shell *::before,
.ckos-customer-shell *::after {
    box-sizing: border-box;
}

.ckos-customer-shell {
    --ckos-brand-primary: #0f172a;
    --ckos-brand-secondary: #2563eb;
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    isolation: isolate;
    line-height: 1.5;
}

.ckos-customer-shell button,
.ckos-customer-shell input,
.ckos-customer-shell select,
.ckos-customer-shell textarea {
    font: inherit;
}

.ckos-customer-brand {
    display: flex;
    justify-content: center;
    margin: 0 auto 14px;
    max-width: 220px;
}

.ckos-customer-brand img {
    display: block;
    height: auto;
    max-height: 72px;
    max-width: 100%;
    object-fit: contain;
}

.ckos-customer-shell.ckos-theme-astra,
.ckos-customer-shell.ckos-theme-generatepress,
.ckos-customer-shell.ckos-theme-block,
.ckos-customer-shell.ckos-theme-default,
.ckos-customer-shell.ckos-theme-standard {
    max-width: 720px;
}

.ckos-customer-shell {
    --ckos-border: #e2e8f0;
    --ckos-muted: #64748b;
    --ckos-text: #0f172a;
    --ckos-surface: #ffffff;
    --ckos-soft: #f8fafc;
    box-sizing: border-box;
    color: var(--ckos-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 32px auto;
    max-width: 680px;
    padding: 0 16px;
}

.ckos-customer-shell *,
.ckos-customer-shell *::before,
.ckos-customer-shell *::after {
    box-sizing: border-box;
}

.ckos-customer-card {
    background: var(--ckos-surface);
    border: 1px solid var(--ckos-border);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
    overflow: hidden;
    padding: clamp(20px, 5vw, 36px);
}

.ckos-customer-good {
    border-top: 5px solid #15803d;
}

.ckos-customer-watch {
    border-top: 5px solid #ca8a04;
}

.ckos-customer-alert,
.ckos-customer-stop {
    border-top: 5px solid #b91c1c;
}

.ckos-customer-neutral {
    border-top: 5px solid #475569;
}

.ckos-customer-kicker {
    color: var(--ckos-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    margin: 0 0 22px;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.ckos-customer-status h1 {
    font-size: clamp(28px, 7vw, 42px);
    letter-spacing: -.025em;
    line-height: 1.08;
    margin: 12px 0;
}

.ckos-customer-status p {
    color: #334155;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

.ckos-customer-badge {
    background: var(--ckos-soft);
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 7px 10px;
}

.ckos-customer-eta {
    background: var(--ckos-soft);
    border-radius: 16px;
    display: grid;
    gap: 4px;
    margin: 26px 0;
    padding: 18px 20px;
}

.ckos-customer-eta span,
.ckos-customer-eta small,
.ckos-customer-updated {
    color: var(--ckos-muted);
}

.ckos-customer-eta span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ckos-customer-eta strong {
    font-size: clamp(26px, 7vw, 38px);
    line-height: 1.1;
}

.ckos-customer-progress {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    list-style: none;
    margin: 28px 0;
    padding: 0;
}

.ckos-customer-step {
    align-items: center;
    display: grid;
    gap: 8px;
    justify-items: center;
    min-width: 0;
    position: relative;
    text-align: center;
}

.ckos-customer-step::before {
    background: var(--ckos-border);
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 9px;
    z-index: 0;
}

.ckos-customer-step:first-child::before {
    left: 50%;
}

.ckos-customer-step:last-child::before {
    right: 50%;
}

.ckos-customer-step > span {
    background: #cbd5e1;
    border: 3px solid var(--ckos-surface);
    border-radius: 50%;
    height: 18px;
    position: relative;
    width: 18px;
    z-index: 1;
}

.ckos-step-done > span,
.ckos-step-current > span {
    background: #15803d;
}

.ckos-step-current > span {
    box-shadow: 0 0 0 4px rgba(21, 128, 61, .12);
}

.ckos-step-stopped > span {
    background: #94a3b8;
}

.ckos-customer-step strong {
    font-size: 11px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ckos-customer-items {
    border-top: 1px solid var(--ckos-border);
    margin-top: 24px;
    padding-top: 18px;
}

.ckos-customer-items summary {
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
    padding-top: 10px;
}

.ckos-customer-items ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.ckos-customer-items li {
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 11px 0;
}

.ckos-customer-updated {
    font-size: 12px;
    margin: 20px 0 0;
}

.ckos-customer-refresh {
    display: grid;
    gap: 8px;
    justify-items: center;
    margin-top: 16px;
}

.ckos-customer-button {
    appearance: none;
    background: var(--ckos-brand-primary);
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 48px;
    padding: 0 22px;
}

.ckos-customer-button:hover {
    background: #1e293b;
}

.ckos-customer-button:disabled {
    cursor: wait;
    opacity: .65;
}

.ckos-customer-button:focus-visible,
.ckos-customer-items summary:focus-visible {
    outline: 3px solid var(--ckos-brand-secondary);
    outline-offset: 3px;
}

.ckos-customer-refresh p {
    color: var(--ckos-muted);
    font-size: 13px;
    margin: 0;
    min-height: 20px;
    text-align: center;
}

@media (max-width: 480px) {
    .ckos-customer-shell {
        margin: 18px auto;
        padding: 0 10px;
    }

    .ckos-customer-card {
        border-radius: 16px;
    }

    .ckos-customer-progress {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .ckos-customer-step {
        grid-template-columns: 24px 1fr;
        justify-items: start;
        text-align: left;
    }

    .ckos-customer-step::before {
        bottom: -12px;
        height: auto;
        left: 9px !important;
        right: auto !important;
        top: 9px;
        width: 3px;
    }

    .ckos-customer-step:last-child::before {
        display: none;
    }

    .ckos-customer-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ckos-customer-shell * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.ckos-customer-reward {
    border: 1px solid currentColor;
    border-radius: 12px;
    display: grid;
    gap: 4px;
    margin: 16px 0;
    padding: 14px;
}
.ckos-customer-reward span,
.ckos-customer-reward small {
    opacity: .78;
}
.ckos-customer-reward strong {
    font-size: 1.5rem;
    line-height: 1.15;
}


.ckos-customer-order-received {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    color: #065f46;
    display: grid;
    gap: 4px;
    margin: 0 auto 16px;
    max-width: 720px;
    padding: 14px 16px;
}
