/**
 * CF7 Redsys Payment Pro - Public UI Styles
 */

/* ────────────────────────────────────
   PRO Amount Field Wrapper
─────────────────────────────────────── */
.cf7rsp-pro-amount-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 220px;
    width: 100%;
}

.cf7rsp-pro-amount-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-weight: 700;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.wpcf7-form-control-wrap input.cf7rsp-pro-amount-input {
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px 12px 36px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    transition: all 0.3s ease;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.wpcf7-form-control-wrap input.cf7rsp-pro-amount-input:hover {
    border-color: #94a3b8;
}

.wpcf7-form-control-wrap input.cf7rsp-pro-amount-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.wpcf7-form-control-wrap input.cf7rsp-pro-amount-input[readonly] {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
    cursor: default;
}

/* ────────────────────────────────────
   PRO Overlay & Redsys Redirection Modal
─────────────────────────────────────── */
.cf7rsp-pro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cf7rsp-pro-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.cf7rsp-pro-dialog {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cf7rsp-pro-overlay.is-active .cf7rsp-pro-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cf7rsp-pro-spinner {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.cf7rsp-pro-spinner::before,
.cf7rsp-pro-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.cf7rsp-pro-spinner::before {
    border: 4px solid #e2e8f0;
}

.cf7rsp-pro-spinner::after {
    border: 4px solid #3b82f6;
    border-right-color: transparent;
    border-top-color: transparent;
    animation: cf7rsp-spin 0.8s linear infinite;
}

.cf7rsp-pro-title {
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.cf7rsp-pro-message {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.5;
}

.cf7rsp-pro-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.cf7rsp-pro-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.cf7rsp-pro-summary-row:not(:last-child) {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #cbd5e1;
}

.cf7rsp-pro-summary-label {
    color: #64748b;
}

.cf7rsp-pro-summary-val {
    font-weight: 700;
    color: #0f172a;
}

.cf7rsp-pro-summary-val.highlight {
    color: #3b82f6;
    font-size: 18px;
}

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