/**
 * CurrencyClear Pay - Checkout Styles
 */

/* Payment method container */
.payment_method_currencyclear {
    padding: 15px 0;
}

/* Secure notice */
.cc-secure-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #495057;
    font-size: 14px;
    margin: 10px 0;
}

.cc-secure-notice .dashicons {
    color: #28a745;
    font-size: 18px;
}

/* Payment form placeholder */
#cc-payment-form {
    margin: 15px 0;
}

/* Saved cards section */
.cc-saved-cards {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.cc-saved-cards p {
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #212529;
}

.cc-saved-card {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cc-saved-card:hover {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.cc-saved-card input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.cc-saved-card input[type="radio"]:checked + .cc-card-info {
    color: #0d6efd;
}

.cc-card-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cc-card-brand {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    padding: 3px 8px;
    background: #212529;
    color: #fff;
    border-radius: 4px;
}

.cc-card-brand.visa {
    background: #1a1f71;
}

.cc-card-brand.mastercard {
    background: #eb001b;
}

.cc-card-brand.amex {
    background: #006fcf;
}

.cc-card-last4 {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    color: #495057;
}

.cc-card-expiry {
    color: #6c757d;
    font-size: 13px;
}

/* Consent text */
.cc-consent {
    margin: 15px 0;
    padding: 12px 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.cc-consent-text {
    margin: 0;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

/* Loading state */
.cc-loading {
    position: relative;
    pointer-events: none;
}

.cc-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    animation: cc-spin 1s linear infinite;
}

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

/* Error message */
.cc-error {
    padding: 12px 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    margin: 10px 0;
}

/* Payment redirect notice */
.cc-redirect-notice {
    text-align: center;
    padding: 20px;
    margin: 15px 0;
}

.cc-redirect-notice p {
    margin: 10px 0;
    color: #495057;
}

/* CC Logo */
.cc-logo {
    display: inline-block;
    max-height: 30px;
    width: auto;
    vertical-align: middle;
}

/* Card scheme icons */
.cc-card-schemes {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.cc-card-schemes img {
    height: 24px;
    width: auto;
}

/* Thank you page notice */
.cc-card-saved-notice {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    margin: 20px 0;
}

.cc-card-saved-notice p {
    margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cc-saved-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cc-card-info {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cc-saved-cards {
        padding: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cc-secure-notice {
        background: #2d3748;
        color: #e2e8f0;
    }

    .cc-saved-cards {
        background: #1a202c;
        border-color: #4a5568;
    }

    .cc-saved-cards p {
        color: #e2e8f0;
    }

    .cc-saved-card {
        background: #2d3748;
        border-color: #4a5568;
    }

    .cc-saved-card:hover {
        background: #3d4a5c;
    }

    .cc-card-last4 {
        color: #e2e8f0;
    }
}
