/**
 * ThinkForge Stripe Checkout Button Styles
 *
 * Styles for the Stripe checkout payment buttons
 */

.thinkforge-stripe-payment-button {
    margin: 20px 0;
    padding: 0;
    background: transparent !important;
}

.thinkforge-stripe-payment-button .thinkforge-price-display {
    margin-bottom: 15px;
    font-size: 18px;
}

.thinkforge-stripe-payment-button .price-label {
    font-weight: 600;
    color: #495057;
    margin-right: 8px;
}

.thinkforge-stripe-payment-button .price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
}

.thinkforge-stripe-payment-button .thinkforge-quantity-selector {
    margin-bottom: 15px;
}

.thinkforge-stripe-payment-button .thinkforge-quantity-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.thinkforge-stripe-payment-button .thinkforge-quantity-input {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

.thinkforge-stripe-payment-button .thinkforge-quantity-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Button Styles */
.thinkforge-stripe-payment-button .thinkforge-stripe-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #635bff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 48px;
}

.thinkforge-stripe-payment-button .thinkforge-stripe-checkout-btn:hover:not(:disabled) {
    background: #5558d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

.thinkforge-stripe-payment-button .thinkforge-stripe-checkout-btn:active:not(:disabled) {
    transform: translateY(0);
}

.thinkforge-stripe-payment-button .thinkforge-stripe-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.thinkforge-stripe-payment-button .thinkforge-stripe-checkout-btn.loading {
    pointer-events: none;
}

/* Button Sizes */
.thinkforge-stripe-payment-button .thinkforge-btn-small {
    padding: 8px 16px;
    font-size: 14px;
    min-height: 36px;
}

.thinkforge-stripe-payment-button .thinkforge-btn-medium {
    padding: 12px 24px;
    font-size: 16px;
    min-height: 48px;
}

.thinkforge-stripe-payment-button .thinkforge-btn-large {
    padding: 8px 16px;
    font-size: 14px;
}

/* Spinner */
.thinkforge-stripe-payment-button .btn-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Message Display */
.thinkforge-stripe-payment-button .thinkforge-payment-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.thinkforge-stripe-payment-button .thinkforge-payment-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.thinkforge-stripe-payment-button .thinkforge-payment-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.thinkforge-stripe-payment-button .thinkforge-payment-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Payment Info */
.thinkforge-stripe-payment-button .thinkforge-payment-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.thinkforge-stripe-payment-button .secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 12px;
}

.thinkforge-stripe-payment-button .secure-badge svg {
    flex-shrink: 0;
}

/* Free Enrollment */
.thinkforge-free-enrollment {
    margin: 20px 0;
    padding: 20px;
    background: #e7f5ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
}

.thinkforge-free-enrollment .free-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 6px 12px;
    background: #28a745;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.thinkforge-free-enrollment .free-badge svg {
    flex-shrink: 0;
}

.thinkforge-free-enrollment .thinkforge-free-enroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #28a745;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 48px;
}

.thinkforge-free-enrollment .thinkforge-free-enroll-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .thinkforge-stripe-payment-button {
        background: #2d3748;
        border-color: #4a5568;
    }

    .thinkforge-stripe-payment-button .price-label,
    .thinkforge-stripe-payment-button .thinkforge-quantity-selector label {
        color: #e2e8f0;
    }

    .thinkforge-stripe-payment-button .thinkforge-quantity-input {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .thinkforge-stripe-payment-button .secure-badge {
        color: #a0aec0;
    }

    .thinkforge-free-enrollment {
        background: #2d3748;
        border-color: #4a5568;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .thinkforge-stripe-payment-button,
    .thinkforge-free-enrollment {
        margin: 15px 0;
        padding: 15px;
    }

    .thinkforge-stripe-payment-button .thinkforge-stripe-checkout-btn,
    .thinkforge-free-enrollment .thinkforge-free-enroll-btn {
        width: 100%;
    }
}
