#cosmica-checkout .checkout-card {
    --checkout-accent: #713d63;
    --checkout-bg: #fbf3f8;
    background: var(--checkout-bg);
    border: 1px solid color-mix(in srgb, var(--checkout-accent) 23%, white);
    border-inline-start: 4px solid var(--checkout-accent);
    border-radius: 16px;
    margin: 0 0 1rem;
    min-width: 0;
    padding: clamp(1rem, 3vw, 1.4rem);
}

#cosmica-checkout .checkout-card--address { --checkout-accent: #376957; --checkout-bg: #edf8f2; }
#cosmica-checkout .checkout-card--contact { --checkout-accent: #3d5e84; --checkout-bg: #eff5fc; }
#cosmica-checkout .checkout-card--carriers { --checkout-accent: #795318; --checkout-bg: #fff8eb; }
#cosmica-checkout .checkout-card--summary { --checkout-accent: #58438c; --checkout-bg: #f3effd; }

#cosmica-checkout .checkout-title {
    align-items: center;
    color: var(--checkout-accent);
    display: flex;
    float: left;
    font-size: 1.13rem;
    font-weight: 750;
    gap: .65rem;
    margin: 0 0 .9rem;
    width: 100%;
}

#cosmica-checkout .checkout-title + * { clear: both; }
#cosmica-checkout [hidden] { display: none !important; }

.checkout-rate-list {
    display: grid;
    gap: .75rem;
    margin-top: .9rem;
}

.checkout-rate {
    align-items: center;
    background: #fff;
    border: 1px solid #d9cdb8;
    border-radius: 12px;
    color: #2d2630;
    cursor: pointer;
    display: grid;
    gap: .7rem;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    padding: .75rem;
}

.checkout-rate:hover { border-color: #87643c; }
.checkout-rate:has(input:checked) { background: #f9eff7; border-color: #713d63; box-shadow: 0 0 0 2px #713d63; }
.checkout-rate:focus-within { outline: 2px solid #58438c; outline-offset: 3px; }
.checkout-rate input { accent-color: #713d63; height: 1rem; width: 1rem; }
.checkout-rate-logo { align-items: center; color: #795318; display: flex; justify-content: center; width: 64px; }
.checkout-rate-logo img { max-width: 100%; object-fit: contain; }
.checkout-rate-details { display: grid; gap: .15rem; overflow-wrap: anywhere; }
.checkout-rate small { color: #554854; display: block; font-size: .78rem; }
.checkout-rate-time { align-items: center; color: #275848; display: flex; font-size: .95rem; gap: .45rem; margin-top: .25rem; }
.checkout-rate-cost { text-align: right; }
.checkout-rate-cost strong { color: #713d63; font-size: 1.2rem; white-space: nowrap; }

@media (max-width: 420px) {
    .checkout-rate { gap: .45rem; padding: .55rem; }
    .checkout-rate-logo { width: 42px; }
    .checkout-rate-cost strong { font-size: 1.02rem; }
}

.checkout-summary-row {
    align-items: baseline;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: .35rem;
}

.checkout-summary-total {
    border-top: 1px solid #cec2e8;
    color: #453370;
    font-size: 1.12rem;
    font-weight: 700;
    margin: .85rem 0 0;
    padding-top: .7rem;
}
