/* Checkout Options Modal Styles */

.checkout-options-content {
    background: linear-gradient(135deg, var(--medium-bg), var(--dark-bg));
    padding: 2rem;
    border-radius: 20px;
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    position: relative;
}

.checkout-summary {
    background: rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.summary-header h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.customer-info {
    margin-bottom: 1rem;
}

    .customer-info p {
        margin: 0.5rem 0;
        color: var(--text-light);
    }

.order-total {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

    .order-total p {
        margin: 0.3rem 0;
        color: var(--primary-gold);
    }

.checkout-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.checkout-option {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

    .checkout-option:hover {
        border-color: var(--primary-gold);
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
    }

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

    .option-header h4 {
        color: var(--primary-gold);
        margin: 0;
        font-size: 1.2rem;
    }

.option-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

    .option-badge.quick {
        background: linear-gradient(45deg, #25D366, #128C7E);
        color: white;
    }

    .option-badge.verified {
        background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
        color: var(--dark-bg);
    }

.option-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.option-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

    .option-features li {
        color: var(--text-light);
        margin: 0.5rem 0;
        font-size: 0.9rem;
    }

.checkout-method-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.whatsapp-method {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
}

    .whatsapp-method:hover {
        background: linear-gradient(45deg, #128C7E, #075E54);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    }

.pos-method {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
}

    .pos-method:hover {
        background: linear-gradient(45deg, var(--secondary-gold), var(--accent-gold));
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    }

    .pos-method:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.pos-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .pos-status.connected {
        background: rgba(76, 175, 80, 0.2);
        border: 1px solid #4CAF50;
        color: #4CAF50;
    }

    .pos-status.simulation {
        background: rgba(255, 193, 7, 0.2);
        border: 1px solid #FFC107;
        color: #FFC107;
    }

    .pos-status.disconnected {
        background: rgba(244, 67, 54, 0.2);
        border: 1px solid #F44336;
        color: #F44336;
    }

    .pos-status.error {
        background: rgba(255, 152, 0, 0.2);
        border: 1px solid #FF9800;
        color: #FF9800;
    }

.status-indicator {
    font-size: 1rem;
}

.status-text {
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkout-options-content {
        width: 98%;
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .checkout-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .checkout-option {
        padding: 1.2rem;
    }

    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

        .option-header h4 {
            font-size: 1.1rem;
        }

    .checkout-method-btn {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
    }

    .checkout-summary {
        padding: 1.2rem;
    }

    .customer-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .checkout-options-content {
        padding: 1rem;
    }

    .checkout-option {
        padding: 1rem;
    }

    .option-header h4 {
        font-size: 1rem;
    }

    .option-description {
        font-size: 0.9rem;
    }

    .option-features li {
        font-size: 0.85rem;
    }

    .checkout-method-btn {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }

    .pos-status {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* Animation for modal appearance */
.checkout-options-content {
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .checkout-options-content {
    transform: scale(1) translateY(0);
}

/* Loading state for POS button */
.pos-method.loading {
    position: relative;
    color: transparent;
}

    .pos-method.loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid transparent;
        border-top: 2px solid var(--dark-bg);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Enhanced hover effects */
.checkout-option:hover .option-badge {
    transform: scale(1.05);
}

.checkout-option:hover .checkout-method-btn {
    transform: translateY(-2px);
}

/* Focus states for accessibility */
.checkout-method-btn:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

.close-btn:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}
