/* assets/styles/checkout.css */

.checkout-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    /* Centering */
    justify-content: center;
    align-items: center;
    padding: var(--nav-height) var(--space-md);

    /* Strong Glassmorphism Background as requested */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: var(--glass-container-bg);
}

.checkout-wrapper {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.checkout-title {
    font-family: var(--font-header);
    font-size: 2rem;
    color: var(--text-color);
}

.back-link {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

/* Order Summary */
.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.summary-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-name {
    font-weight: 500;
}

.summary-price {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.total-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Payment Section */
.payment-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
    padding: 30px;
}

.free-order-msg,
.redirect-msg {
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.checkout-action-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkout-action-btn:hover {
    background: var(--color-text-main);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(125, 125, 125, 0.3);
}

.checkout-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent !important;
    color: white !important;
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.success-content {
    text-align: center;
    padding: 50px;
    border: 1px solid var(--text-color);
    box-shadow: 0 0 30px rgba(125, 125, 125, 0.2);
    max-width: 500px;
    background: #000;
}

.success-content h2 {
    color: var(--text-color);
    margin-bottom: 20px;
}



.success-content p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-wrapper {
        padding: 20px;
    }
}