/**
 * UI/UX Estilo Moderno para iPagos Gateway (Checkout + Admin)
 */

/* --- ESTILOS DEL CHECKOUT --- */
#wc-ipagos_gateway-cc-form {
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8fafc;
    margin-top: 15px;
}

.ipagos-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ipagos-iframe-container {
    flex: 1;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px;
    height: 48px;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.ipagos-iframe-container.flex-microform-focused {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

#ipagos-card-logos {
    position: absolute;
    right: 12px;
    display: flex;
    gap: 8px;
    pointer-events: none;
}

.ipagos-logo {
    width: 35px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.ipagos-expiry-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.ipagos-expiry-wrapper > div { flex: 1; }

#ipagos-exp-month, #ipagos-exp-year {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

@media (max-width: 480px) {
    .ipagos-expiry-wrapper { flex-direction: column; gap: 10px; }
}

/* --- ESTILOS DEL BANNER ADMIN PREMIUM --- */
.ipagos-admin-banner {
    background: linear-gradient(135deg, #0046ad 0%, #0095ff 100%);
    border-radius: 12px;
    padding: 40px;
    color: white;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,70,173,0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ipagos-banner-content h2 {
    color: white !important;
    font-size: 28px !important;
    margin: 0 0 10px 0 !important;
    font-weight: 700 !important;
}

.ipagos-banner-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.ipagos-banner-actions {
    display: flex;
    gap: 15px;
}

.ipagos-btn {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.ipagos-btn-white {
    background: white;
    color: #0046ad !important;
}

.ipagos-btn-outline {
    border: 2px solid white;
    color: white !important;
}

.ipagos-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}