/* Checkout page — reference layout, pink accent, no overlays */

.sf-checkout-page {
    background: #fff;
}

.sf-co-layout {
    align-items: flex-start;
}

.sf-co-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 1.25rem 1.35rem;
}

.sf-co-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.sf-co-input,
.sf-co-textarea {
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    background: #fff;
    box-shadow: none;
}

.sf-co-input:focus,
.sf-co-textarea:focus {
    border-color: var(--brand-pink, #c2185b);
    box-shadow: 0 0 0 0.15rem rgba(194, 24, 91, 0.12);
}

.sf-co-field {
    margin-bottom: 0.85rem;
}

.sf-co-field label {
    display: none;
}

.sf-co-delivery-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sf-co-delivery-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.sf-co-delivery-option:has(input:checked) {
    border-color: var(--brand-pink, #c2185b);
    background: rgba(194, 24, 91, 0.04);
}

.sf-co-delivery-option input {
    accent-color: var(--brand-pink, #c2185b);
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}

.sf-co-pay-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sf-co-pay-tile {
    position: relative;
    display: block;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 2.75rem;
    cursor: pointer;
    background: #fff;
    min-height: 72px;
}

.sf-co-pay-tile.is-cod.is-selected,
.sf-co-pay-tile:has(input:checked) {
    border-color: #2e9b4b;
    background: #f8fff9;
}

.sf-co-pay-tile input {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    accent-color: #2e9b4b;
}

.sf-co-pay-tile-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sf-co-pay-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e8f8ec;
    color: #2e9b4b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sf-co-pay-name {
    font-weight: 700;
    color: #1a1a1a;
}

.sf-co-summary-panel {
    position: sticky;
    top: 96px;
}

.sf-co-items-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.sf-co-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 0;
    border-bottom: 1px solid #efefef;
}

.sf-co-item:last-child {
    border-bottom: none;
}

.sf-co-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fafafa;
}

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

.sf-co-item-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #222;
    margin-bottom: 0.2rem;
    line-height: 1.35;
}

.sf-co-item-var {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.45rem;
}

.sf-co-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sf-co-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.sf-co-qty-btn {
    border: 0;
    background: #fff;
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 1;
    color: #444;
}

.sf-co-qty-btn:hover {
    background: #f5f5f5;
    color: var(--brand-pink, #c2185b);
}

.sf-co-qty-val {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 0 0.25rem;
}

.sf-co-item-price-col {
    text-align: end;
    min-width: 88px;
}

.sf-co-item-price {
    font-weight: 700;
    color: var(--brand-pink, #c2185b);
    font-size: 0.95rem;
}

.sf-co-item-old {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
}

.sf-co-item-remove {
    border: 0;
    background: transparent;
    color: #aaa;
    padding: 0.15rem;
    margin-top: 0.35rem;
    font-size: 1.1rem;
    line-height: 1;
}

.sf-co-item-remove:hover {
    color: #dc3545;
}

.sf-co-totals {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #efefef;
}

.sf-co-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: #444;
}

.sf-co-total-row.is-discount span:last-child {
    color: #2e9b4b;
    font-weight: 600;
}

.sf-co-total-row.is-grand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px dashed #e5e5e5;
}

.sf-co-total-row.is-grand span:last-child {
    color: var(--brand-pink, #c2185b);
}

.sf-co-points {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #b8e6c1;
    border-radius: 6px;
    background: #f4fff6;
    color: #2e9b4b;
    font-weight: 600;
    font-size: 0.9rem;
}

.sf-co-coupon-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #888;
}

.sf-co-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sf-co-back {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.sf-co-back:hover {
    color: var(--brand-pink, #c2185b);
}

.sf-co-submit {
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    background: var(--brand-pink, #c2185b);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sf-co-submit:hover {
    background: var(--brand-pink-bright, #e91e63);
    color: #fff;
}

.sf-co-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.sf-co-errors {
    margin-bottom: 1rem;
}

.sf-co-error-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #dc3545;
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .sf-co-summary-panel {
        position: static;
        top: auto;
    }

    .sf-co-item {
        grid-template-columns: 64px 1fr;
    }

    .sf-co-item-price-col {
        grid-column: 2;
        text-align: start;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .sf-co-panel {
        padding: 1rem;
    }

    .sf-co-item {
        grid-template-columns: 56px 1fr;
    }

    .sf-co-item-thumb {
        width: 56px;
        height: 56px;
    }
}
