/* Checkout Modal Styles */
.checkout-modal {
    max-width: 500px !important;
}

.checkout-body {
    padding: 1.5rem;
}

.checkout-product {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chk-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chk-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: white;
}

.chk-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.checkout-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.chk-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.chk-value {
    color: white;
    font-family: var(--font-mono);
}

.checkout-total {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.btn-primary-sm {
    background: var(--accent);
    color: black;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary-sm:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Full Page Checkout Styles */
.checkout-view-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.chk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chk-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.chk-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

.chk-main-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
}

.chk-product-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.chk-prod-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    background: #000;
}

.chk-prod-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.chk-features-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.chk-features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.chk-summary-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.chk-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.chk-total-price {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    text-align: right;
    display: block;
    margin-top: 1rem;
}

.chk-payment-method {
    background: rgba(247, 147, 26, 0.1);
    border: 1px dashed #f7931a;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    align-items: center;
    gap: 1rem;
}

/* ORDER DETAIL SIDEBAR SUMMARY (Fix) */
.od-summary-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.od-summary-box h3 {
    margin: 0 0 1rem 0 !important;
    font-size: 1rem !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.od-item-mini {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 0.8rem !important;
    font-size: 0.9rem !important;
    color: #cbd5e1 !important;
}

.od-total-mini {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.1) !important;
    font-weight: 700 !important;
    color: var(--accent) !important;
    font-size: 1.1rem !important;
}

.support-mini-block {
    text-align: center !important;
    margin-bottom: 1rem !important;
}

.support-mini-block span {
    display: block !important;
    font-size: 0.85rem !important;
    color: #cbd5e1 !important;
    margin-bottom: 0.5rem !important;
}

.upsell-mini {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
}

.upsell-mini strong {
    display: block !important;
    color: #fff !important;
    margin-bottom: 0.5rem !important;
}

.upsell-mini p {
    font-size: 0.85rem !important;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .checkout-modal {
        max-width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .chk-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .chk-product-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .chk-prod-img {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }

    .chk-features-list li {
        justify-content: center;
    }

    .chk-summary-card {
        position: static;
        margin-top: 1rem;
    }

    .checkout-view-layout {
        padding: 1rem 1rem 6rem 1rem;
        /* Extra bottom padd for nav */
    }

    .chk-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}