/**
 * wfns-gateway.css — Estilos de la pasarela de pago propia.
 */

.wfns-pp-button {
    max-width: 460px;
    margin: 0 auto;
}

.wfns-pp-btn-wrapper {
    min-height: 48px;
    margin-bottom: 16px;
}

.wfns-pp-card-fields {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 16px;
    background: #fff;
    margin-top: 4px;
}

.wfns-pp-card-row {
    margin-bottom: 14px;
}

.wfns-pp-card-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.wfns-pp-card-row > div {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    height: 3em;
    transition: border-color 0.15s;
}

.wfns-pp-card-row > div:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wfns-pp-card-row-half {
    display: inline-block;
    width: calc(50% - 6px);
}

.wfns-pp-card-row-half:first-child {
    margin-right: 10px;
}

.wfns-pp-card-submit {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #1a56db;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}

.wfns-pp-card-submit:hover {
    background: #1649c4;
}

.wfns-pp-card-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wfns-pp-card-amount {
    font-weight: 400;
    opacity: 0.9;
}

.wfns-pp-card-notice {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0;
}

.wfns-pp-msg {
    font-size: 13px;
    text-align: center;
    min-height: 18px;
    margin: 8px 0;
}

.wfns-pp-paypal-label {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 12px 0 6px;
    position: relative;
}

.wfns-pp-paypal-label::before,
.wfns-pp-paypal-label::after {
    content: '';
    display: inline-block;
    width: 30%;
    height: 1px;
    background: #e5e7eb;
    vertical-align: middle;
    margin: 0 8px;
}

/* ── Preloader elegante ─────────────────────────────────────────── */

.wfns-preloader-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.wfns-preloader-overlay.wfns-hidden {
    opacity: 0;
    pointer-events: none;
}

.wfns-preloader-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 36px 36px;
    max-width: 320px;
    width: calc(100% - 40px);
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.3);
    text-align: center;
}

.wfns-preloader-icon-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
}

.wfns-preloader-spinner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: wfns-spin 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.wfns-preloader-spinner .bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 4;
}

.wfns-preloader-spinner .arc {
    fill: none;
    stroke: #2563eb;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 140;
    stroke-dashoffset: 30;
}

.wfns-preloader-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    color: #2563eb;
}

.wfns-preloader-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.4;
}

.wfns-preloader-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

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