/**
 * PayPal ACDC Card Fields Styles
 *
 * Styles for PayPal Advanced Checkout (on-site card fields).
 * The actual card inputs are PayPal-hosted iframes styled via JS config.
 * This file styles the containers and surrounding UI.
 *
 * @package IdeaForge_Sync_Pro
 * @since 2.4.0
 */

/* Card field containers */
.paypal-card-field {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0;
    min-height: 45px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.paypal-card-field:hover {
    border-color: #999;
}

.paypal-card-field iframe {
    min-height: 45px;
}

/* Card field error state */
#paypal-card-errors {
    margin-top: 8px;
    color: #c62828;
    font-size: 13px;
}

#paypal-card-errors:empty {
    display: none;
}

/* Half-width fields (expiry + CVV) */
.form-row-half {
    display: flex;
    gap: 16px;
}

.form-row-half .half-field {
    flex: 1;
}

/* Payment method options */
.payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.payment-method-option:hover {
    border-color: #999;
    background: #fafafa;
}

.payment-method-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #003087;
}

.payment-method-option input[type="radio"]:checked ~ .method-name {
    font-weight: 600;
}

/* Highlight selected method */
.payment-method-option:has(input:checked) {
    border-color: #003087;
    background: #f0f5ff;
}

.method-icon {
    display: flex;
    align-items: center;
    min-width: 60px;
}

.method-icon img {
    display: block;
}

.method-name {
    font-size: 15px;
    color: #1d2327;
}

.method-desc {
    font-size: 13px;
    color: #646970;
    margin-left: auto;
}

/* PayPal buttons wrapper */
.paypal-buttons-wrapper {
    text-align: center;
}

#paypal-button-container,
#paylater-button-container,
#venmo-button-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Guest checkout note */
.guest-checkout-note {
    text-align: center;
    font-size: 13px;
    color: #646970;
    margin-top: 12px;
}

/* Pay Later wrapper */
.paylater-wrapper {
    text-align: center;
}

#paylater-message-container {
    margin-top: 16px;
}

/* Pay Later messaging on booking pages */
.paylater-booking-message {
    margin-top: 8px;
}

/* PayPal redirect button (for redirect flow) */
.paypal-redirect-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: #ffc439;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    color: #253b80;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.paypal-redirect-button:hover {
    background: #f0b929;
}

.paypal-redirect-button img {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .form-row-half {
        flex-direction: column;
        gap: 12px;
    }

    .method-desc {
        display: none;
    }

    .payment-method-option {
        padding: 12px;
    }
}
