/**
 * Stratos Direct Card Payment - Checkout Styles
 */

/* Card form container */
#wc-stratos_direct-cc-form {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
}

/* Card input fields */
#wc-stratos_direct-cc-form .input-text {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#wc-stratos_direct-cc-form .input-text:focus {
    border-color: #a4f8f2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(164, 248, 242, 0.15);
}

/* Card number field with icon */
.wc-credit-card-form-card-number {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAzNiAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjM2IiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iI0U1RTVFNSIvPgo8cmVjdCB4PSI0IiB5PSI4IiB3aWR0aD0iMjgiIGhlaWdodD0iMyIgZmlsbD0iIzk5OSIvPgo8Y2lyY2xlIGN4PSI4IiBjeT0iMTYiIHI9IjIiIGZpbGw9IiM5OTkiLz4KPGNpcmNsZSBjeD0iMTQiIGN5PSIxNiIgcj0iMiIgZmlsbD0iIzk5OSIvPgo8L3N2Zz4=');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 36px;
    padding-right: 56px !important;
}

/* Labels */
#wc-stratos_direct-cc-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
    padding-left: 0 !important;
    padding-bottom: 5px;
}
.stratos_logo {padding-left : 8px;}

#wc-stratos_direct-cc-form .required {
    color: #e4002b;
    font-weight: bold;
}

/* Card type indicator */
.card-type-indicator {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #a4f8f2 0%, #7dd8d2 100%);
    color: #073a32;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Test mode notice */
.test-card-hint {
    margin-top: 10px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #856404;
    animation: slideDown 0.3s ease;
}

.test-card-hint strong {
    color: #533d03;
    display: block;
    margin-bottom: 5px;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        max-height: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1; 
        max-height: 200px;
        transform: translateY(0);
    }
}

/* Security notice */
#wc-stratos_direct-cc-form .dashicons-lock {
    color: #27776c;
    vertical-align: middle;
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #wc-stratos_direct-cc-form {
        padding: 15px;
    }
    
    #wc-stratos_direct-cc-form .form-row-first,
    #wc-stratos_direct-cc-form .form-row-last {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    
    #wc-stratos_direct-cc-form .input-text {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Error states */
#wc-stratos_direct-cc-form .input-text.error {
    border-color: #e4002b;
}

#wc-stratos_direct-cc-form .input-text.error:focus {
    box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.15);
}

/* Loading state */
.processing #wc-stratos_direct-cc-form {
    opacity: 0.6;
    pointer-events: none;
}

.processing #wc-stratos_direct-cc-form::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #a4f8f2;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success checkmark animation */
.payment-success-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #28a745;
    border-radius: 50%;
    position: relative;
    margin-left: 10px;
}

.payment-success-indicator::after {
    content: "✓";
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}
.payment_method_stratos_direct > label{ gap: 8px;}
.payment_box.payment_method_stratos_direct p { margin-bottom: 10px !important; }