/* Reusable Checkout Component Styles */
.checkout-component {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

/* Product Info Section */
.product-info-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.product-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    /* Will inherit brand colors from loaded brand CSS */
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    /* Will inherit brand colors from loaded brand CSS */
}

/* Email Section */
.email-section {
    margin-bottom: 2rem;
}

.email-label {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
    /* Will inherit brand colors from loaded brand CSS */
}

.email-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    /* Border radius will be overridden by global.css */
}

.email-help {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quantity-label {
    font-weight: 600;
    font-size: 1.1rem;
    /* Will inherit brand colors from loaded brand CSS */
}

.quantity-input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
}

.total-price {
    font-weight: bold;
    font-size: 1.2rem;
    /* Will inherit brand colors from loaded brand CSS */
}

/* Stripe Card Element */
.card-element {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.card-errors {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

/* Checkout Button - Will use global btn-checkout class */
.checkout-button {
    width: 100%;
    font-size: 1.3rem;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
}

.checkout-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Security Message */
.security-message {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

.security-message i {
    margin-right: 0.5rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
    background: #f0f9ff;
    border-radius: 8px;
    border: 2px solid #059669;
}

.success-message h3 {
    color: #059669;
    margin-bottom: 1rem;
}

.success-message p {
    color: #666;
    margin-bottom: 1rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkout-component {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .quantity-section {
        justify-content: center;
        text-align: center;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}
