/**
 * 83 Ordinal Booking Pro - Payment Styles
 * Frontend and shared styles
 * @since 3.2.0
 */

/* Payment Gateway Selection */
.obp-payment-gateways {
    margin: 20px 0;
}

.obp-gateway-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.obp-gateway-option:hover {
    border-color: #2563EB;
    background-color: #f9fafb;
}

.obp-gateway-option input[type="radio"] {
    margin-right: 15px;
}

.obp-gateway-option.selected {
    border-color: #2563EB;
    background-color: #eff6ff;
}

.obp-gateway-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.obp-gateway-info {
    flex: 1;
}

.obp-gateway-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.obp-gateway-description {
    font-size: 14px;
    color: #6b7280;
}

/* Payment Method Forms */
.payment-method-form {
    display: none;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.payment-method-form.active {
    display: block;
}

/* Stripe Elements */
#stripe-card-element {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
}

#stripe-card-errors {
    color: #dc2626;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

/* PayPal Container */
#paypal-button-container {
    margin-top: 20px;
}

/* Offline Payment Methods */
.offline-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.offline-method-option {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.offline-method-option:hover {
    border-color: #2563EB;
}

.offline-method-option.selected {
    border-color: #2563EB;
    background-color: #eff6ff;
}

.offline-method-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.offline-method-name {
    font-weight: 600;
    color: #111827;
}

/* Offline Instructions */
.offline-instructions {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 8px;
}

.offline-instructions.active {
    display: block;
}

.offline-instructions h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #111827;
}

.offline-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.offline-instructions li {
    margin-bottom: 8px;
    color: #374151;
}

.offline-qr-code {
    display: block;
    margin: 15px auto;
    max-width: 200px;
}

.offline-deep-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #2563EB;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.offline-deep-link:hover {
    background: #1d4ed8;
}

/* Alerts */
.obp-alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
}

.obp-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.obp-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Loading States */
.obp-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .obp-gateway-option {
        flex-direction: column;
        text-align: center;
    }
    
    .obp-gateway-icon {
        margin: 0 0 10px 0;
    }
    
    .offline-methods {
        grid-template-columns: 1fr;
    }
}
