/**
 * Remivz Style Calculator Styles
 * Modern gradient blue theme with glassmorphism effects
 * @version 2.0.0-remivz
 */

:root {
    --vr-primary: #4e73df;
    --vr-primary-dark: #2e59d9;
    --vr-gradient: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    --vr-glass: rgba(255, 255, 255, 0.95);
    --vr-border: rgba(0, 0, 0, 0.08);
    --vr-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --vr-radius: 16px;
    --vr-control-height: 44px;

    /* ── Tokens añadidos (nivel 1) ────────────────────────────────────────
       Los ocho de arriba ya existían y los usan 41 reglas; estos completan la
       paleta que estaba escrita literal por todo el archivo. Se EXTIENDE el
       sistema existente en vez de crear un segundo con otro prefijo: dos juegos
       de variables para lo mismo es cómo se llega a que cambiar un color deje
       la mitad de la interfaz sin cambiar.

       Se sobreescriben desde el panel con un <style> inline, así que cambiar la
       apariencia deja de exigir tocar CSS. */
    --vr-surface:      #fff;      /* fondo de tarjetas */
    --vr-surface-alt:  var(--vr-surface-alt);   /* fondo hundido / filas alternas */
    --vr-line:         var(--vr-line);   /* bordes y separadores */
    --vr-text:         var(--vr-text);   /* texto principal */
    --vr-text-muted:   var(--vr-text-muted);   /* etiquetas, ayudas */
    --vr-text-subtle:  var(--vr-text-subtle);   /* placeholders */
    --vr-success:      var(--vr-success);   /* ahorro, confirmaciones */
    --vr-danger:       var(--vr-danger);   /* errores, límites excedidos */
    --vr-radius-sm:    8px;
    --vr-radius-md:    12px;

    /* Densidad: un solo número que gobierna el aire del componente. Con esto
       "compacto" deja de ser reescribir paddings y pasa a ser un factor. */
    --vr-gap:          16px;
    --vr-pad:          20px;
    --vr-max-width:    550px;
}

/* ── LAYOUT (nivel 2) ──────────────────────────────────────────────────────
   Clases modificadoras sobre el contenedor. El marcado ya separa Envías,
   Reciben, Modo de entrega y Detalles en bloques propios, así que se reordenan
   con grid SIN tocar una línea de PHP.

   Se aplican con el atributo `layout` del shortcode o con la opción global.
   Nada de esto altera el flujo ni el cálculo: solo dónde se pinta cada bloque. */

/* Horizontal: los dos montos en fila. Para landings anchas, donde apilar
   desaprovecha el espacio y obliga a hacer scroll para ver el total. */
.remivz-container.cpp--horizontal { max-width: 980px; }
@media (min-width: 900px) {
    .remivz-container.cpp--horizontal .remivz-amounts {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: var(--vr-gap);
    }
}

/* Compacto: sidebar o widget. Menos aire y controles más bajos — el mismo
   componente, no una versión recortada. */
.remivz-container.cpp--compact {
    --vr-gap: 10px;
    --vr-pad: 12px;
    --vr-radius: 12px;
    --vr-control-height: 38px;
    max-width: 380px;
}

/* Ancho: hero de landing. */
.remivz-container.cpp--wide { max-width: 1140px; }

/* Invertido: primero lo que RECIBE el beneficiario. Cambia a qué presta
   atención el cliente —al destino, no al coste— y es una decisión de negocio
   que ahora se prueba sin tocar el marcado. */
.remivz-container.cpp--receive-first .remivz-amounts { display: flex; flex-direction: column; }
.remivz-container.cpp--receive-first .cpp-receive-group { order: 1; }
.remivz-container.cpp--receive-first .cpp-swap-btn      { order: 2; }
.remivz-container.cpp--receive-first .cpp-send-group    { order: 3; }

/* Respeta a quien pidió menos movimiento. */
@media (prefers-reduced-motion: reduce) {
    .remivz-container * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.remivz-section {
    padding: 40px 0;
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
}

.remivz-container {
    max-width: 550px;
    margin: 0 auto;
    padding: 0 15px;
}

.remivz-header {
    text-align: center;
    margin-bottom: 30px;
}

.remivz-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.remivz-subtitle {
    color: #666;
    font-size: 16px;
}

/* Calculator Container */
.remivz-calculator {
    background: var(--vr-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--vr-radius);
    border: 1px solid var(--vr-border);
    box-shadow: var(--vr-shadow);
    padding: 30px;
    position: relative;
    overflow: visible;
}

/* Progress Steps */
.remivz-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.remivz-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.remivz-steps .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef2ff;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.remivz-steps .step.active .step-number {
    background: var(--vr-primary);
    color: #fff;
}

.remivz-steps span {
    font-size: 12px;
    font-weight: 600;
    color: var(--vr-text-subtle);
}

.remivz-steps .step.active span {
    color: var(--vr-primary);
}

.remivz-steps .step-line {
    flex: 0.5;
    height: 2px;
    background: var(--vr-line);
    margin-top: -20px;
}

/* Rate Badge */
.remivz-rate-badge {
    background: var(--vr-surface-alt);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    border: 1px dashed #cbd5e1;
}

.remivz-rate-badge .rate-icon {
    background: rgba(16, 185, 129, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Cuando el ring está en checking, fondo neutro */
.remivz-rate-badge .rate-icon:has(.cpp-calc-refresh--checking) {
    background: rgba(156, 163, 175, 0.1);
}

.remivz-rate-badge .rate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.remivz-rate-badge .rate-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--vr-text-muted);
    letter-spacing: 0.5px;
}

.remivz-rate-badge .rate-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--vr-text);
}

.remivz-rate-badge .rate-update {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vr-success);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--vr-success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

/* ── Calculator Auto-Refresh Ring ─────────────────────────────────────────── */

.cpp-calc-refresh {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vr-success);
    transition: color 0.3s ease;
}

.cpp-calc-refresh__ring {
    flex-shrink: 0;
    overflow: visible;
}

.cpp-calc-refresh__track {
    fill: none;
    stroke: #d1fae5;
    stroke-width: 2.5;
}

.cpp-calc-refresh__progress {
    fill: none;
    stroke: var(--vr-success);
    stroke-width: 2.5;
    stroke-linecap: round;
    transform-origin: center;
    transform: rotate(-90deg);
    transition: stroke-dashoffset 0.9s linear, stroke 0.4s ease;
}

.cpp-calc-refresh__timestamp {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cpp-refresh-clock-icon {
    flex-shrink: 0;
    color: currentColor;
}

.cpp-refresh-time {
    font-size: 12px;
    font-weight: 600;
}

/* checking: consultando DB */
.cpp-calc-refresh--checking {
    color: #9ca3af;
}
.cpp-calc-refresh--checking .cpp-calc-refresh__progress {
    stroke: #9ca3af;
    stroke-dashoffset: 0;
    transition: none;
}
.cpp-calc-refresh--checking .cpp-calc-refresh__track {
    stroke: #e5e7eb;
}

/* refreshed: flash verde confirmación */
.cpp-calc-refresh--refreshed {
    color: #059669;
}
.cpp-calc-refresh--refreshed .cpp-calc-refresh__progress {
    stroke: #059669;
}

@media (max-width: 400px) {
    .cpp-calc-refresh__timestamp {
        max-width: 110px;
    }
}

/* Form Groups */
.remivz-input-group {
    margin-bottom: 20px;
}

.remivz-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.limit-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 10px;
    color: var(--vr-text-muted);
}

.estimate-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: #dcfce7;
    color: #166534;
    border-radius: 10px;
}

.remivz-input-wrapper {
    background: #fff;
    border: 2px solid var(--vr-line);
    border-radius: 12px;
    padding: 5px 12px;
    min-height: var(--vr-control-height);
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.remivz-input-wrapper:focus-within {
    border-color: var(--vr-primary);
    box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.1);
}

.amount-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-symbol {
    font-size: 20px;
    font-weight: 500;
    color: var(--vr-text-subtle);
}

.remivz-input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 4px 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--vr-text) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Currency Select */
.remivz-currency-select {
    position: relative;
    border-left: 1px solid var(--vr-line);
    padding-left: 12px;
    margin-left: 12px;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--vr-surface-alt);
    border: 1px solid #f1f5f9;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.currency-btn:hover {
    background: #f1f5f9;
}

.currency-flag {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.remivz-currency-select.unselected .currency-code {
    color: var(--vr-text-subtle);
    font-style: italic;
}

.remivz-currency-select.unselected .currency-btn {
    border: 1px dashed #cbd5e1;
}

.currency-code {
    font-size: 14px;
    font-weight: 700;
    color: var(--vr-text);
}

.chevron {
    color: var(--vr-text-subtle);
}

/* Swap Button */
.remivz-swap-wrapper {
    display: flex;
    justify-content: center;
    margin: -10px 0;
    position: relative;
    z-index: 5;
}

.remivz-swap-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--vr-primary);
    border: 4px solid #fff;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.remivz-swap-btn:hover {
    transform: scale(1.1) rotate(180deg);
    background: var(--vr-primary-dark);
}

/* Dropdown */
.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    margin-top: 10px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid var(--vr-line);
}

.remivz-currency-select.active .currency-dropdown {
    display: block;
    animation: vr-slide-up 0.3s ease;
}

@keyframes vr-slide-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--vr-text);
}

.close-dropdown {
    background: none;
    border: none;
    color: var(--vr-text-subtle);
    cursor: pointer;
}

.dropdown-search {
    padding: 12px;
    position: relative;
    background: var(--vr-surface-alt);
}

.dropdown-search svg {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vr-text-subtle);
}

.dropdown-search input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border: 1px solid var(--vr-line);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.currency-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 250px;
    overflow-y: auto;
}

.currency-list li {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.currency-list li:hover {
    background: #f1f5f9;
}

.currency-list li.active {
    background: #eff6ff;
}

/* Foco de teclado visible en la lista (WCAG 2.4.7). */
.currency-list li:focus,
.currency-list li:focus-visible {
    outline: 2px solid #004aad;
    outline-offset: -2px;
    background: #f1f5f9;
}

/* FIX FLAG SIZE IN DROPDOWN */
.list-flag {
    width: 24px !important;
    height: 18px !important;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.currency-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.currency-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--vr-text);
}

.currency-code-small {
    font-size: 11px;
    color: var(--vr-text-muted);
}

.check-icon {
    color: var(--vr-primary);
}

/* Summary Card */
.remivz-summary {
    background: var(--vr-surface-alt);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--vr-text-muted);
}

.summary-value {
    font-weight: 700;
    color: var(--vr-text);
}

.summary-row.total {
    border-top: 1px solid var(--vr-line);
    padding-top: 12px;
    margin-top: 12px;
    margin-bottom: 0;
}

.total-value {
    font-size: 20px;
    color: var(--vr-primary);
}

/* Savings Banner */
.savings-banner {
    background: var(--vr-gradient);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.2);
}

.savings-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.savings-text {
    display: flex;
    flex-direction: column;
}

.savings-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.8;
}

.savings-amount {
    font-size: 18px;
    font-weight: 800;
}

.savings-sub {
    font-size: 10px;
    opacity: 0.7;
}

/* Submit Button */
.remivz-submit {
    width: 100%;
    padding: 12px 16px;
    min-height: var(--vr-control-height);
    border-radius: 12px;
    background: var(--vr-gradient);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.3);
    transition: all 0.3s;
}

.remivz-submit:hover:not(.btn-disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(78, 115, 223, 0.4);
    background: var(--vr-primary-dark);
}

.remivz-submit:active:not(.btn-disabled) {
    transform: translateY(0);
}

.remivz-submit.btn-disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.65;
}

.remivz-submit.btn-disabled:hover {
    transform: none;
}

.remivz-submit.btn-enabled {
    background: var(--vr-gradient);
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.3);
    cursor: pointer;
}

.remivz-submit.loading .btn-text,
.remivz-submit.loading .btn-arrow {
    display: none;
}

.remivz-submit.loading .btn-loader {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    animation: vr-spin 1s linear infinite;
}

@keyframes vr-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cpp-fee-free {
    color: #16a34a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Trust Indicators */
.remivz-trust {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vr-text-muted);
}

.trust-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon.secure { background: #fee2e2; color: var(--vr-danger); }
.trust-icon.fast { background: #fef9c3; color: #eab308; }
.trust-icon.verified { background: #dcfce7; color: var(--vr-success); }

/* Mobile Optimizations */
@media (max-width: 480px) {
    .remivz-calculator {
        padding: 20px;
    }
    
    .remivz-input {
        font-size: 20px !important;
    }
    
    .remivz-steps {
        display: none;
    }
    
    .currency-dropdown {
        width: 260px;
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin-top: 0;
    }
}

/* Notifications */
.remivz-notification {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--vr-line);
}

.remivz-notification-success { border-left: 4px solid var(--vr-success); color: var(--vr-success); }
.remivz-notification-error { border-left: 4px solid var(--vr-danger); color: var(--vr-danger); }
.remivz-notification-warning { border-left: 4px solid #f59e0b; color: #f59e0b; }

/* ERROR STATE FOR INPUT */
.remivz-input-wrapper.error {
    border-color: var(--vr-danger);
}

.field-error {
    color: var(--vr-danger);
    font-size: 11px;
    position: absolute;
    bottom: -15px;
    left: 10px;
}

.limits-error {
    color: var(--vr-danger);
    font-size: 11px;
}

/* SHAKE ANIMATION */
@keyframes vr-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.vr-shake {
    animation: vr-shake 0.3s ease;
}

/* DELIVERY METHODS SECTION */
.cpp-delivery-section {
    padding: 20px 0;
    border-top: 1px solid var(--vr-border);
    margin-top: 20px;
}

.cpp-delivery-group,
.cpp-provider-section,
.cpp-currency-choice {
    margin-bottom: 15px;
}

.cpp-delivery-options {
    width: 100%;
}

/* Pill buttons for delivery method selection */
.cpp-method-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cpp-method-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
    border: 1.5px solid var(--vr-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    flex: 1;
    min-width: 90px;
    text-align: center;
    color: #555;
    line-height: 1;
}

.cpp-method-pill:hover {
    border-color: var(--vr-primary);
    background: #f0f5ff;
    color: var(--vr-primary);
}

.cpp-method-pill.selected {
    border-color: var(--vr-primary);
    background: linear-gradient(135deg, var(--vr-primary) 0%, #6e8efb 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(78, 115, 223, 0.35);
}

.cpp-pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.cpp-method-pill:hover .cpp-pill-icon,
.cpp-method-pill.selected .cpp-pill-icon {
    opacity: 1;
}

.cpp-pill-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.cpp-pill-meta {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 16px;
}

.cpp-pill-time {
    font-size: 11px;
    opacity: 0.7;
}

.cpp-pill-surcharge {
    font-size: 11px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 6px;
    border-radius: 20px;
}

.cpp-method-pill.selected .cpp-pill-time,
.cpp-method-pill.selected .cpp-pill-surcharge {
    opacity: 0.9;
}

.cpp-method-pill.selected .cpp-pill-surcharge {
    background: rgba(255, 255, 255, 0.22);
}

.cpp-delivery-select {
    width: 100%;
    padding: 10px 12px !important;
    min-height: var(--vr-control-height) !important;
    border: 1px solid var(--vr-border) !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cpp-delivery-select:hover {
    border-color: var(--vr-primary) !important;
    background: #f0f0f0 !important;
}

.cpp-delivery-select:focus {
    outline: none;
    border-color: var(--vr-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.cpp-delivery-select option {
    padding: 8px 12px;
    background: #fff;
    color: #1a1a1a;
}

.cpp-delivery-select option:hover {
    background: #e8f0ff;
}

.cpp-provider-select,
.remivz-select {
    width: 100%;
    padding: 10px 12px;
    min-height: var(--vr-control-height);
    border: 1px solid var(--vr-border);
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.cpp-provider-select:focus,
.remivz-select:focus {
    outline: none;
    border-color: var(--vr-primary);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

/* Custom Dropdown for Pickup Location */
.cpp-provider-dropdown {
    position: relative;
}

.custom-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    min-height: var(--vr-control-height);
    border: 1px solid var(--vr-border);
    border-radius: 8px;
    background: white;
    color: #1a1a1a;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select-btn:hover {
    border-color: var(--vr-primary);
    background: #f9f9f9;
}

.custom-select-btn.active {
    border-color: var(--vr-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.custom-select-btn .chevron {
    transition: transform 0.3s ease;
}

.cpp-provider-dropdown.active .custom-select-btn .chevron {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--vr-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
    z-index: 100;
    display: none;
    max-height: 300px;
    overflow: hidden;
    flex-direction: column;
}

.cpp-provider-dropdown.active .custom-select-menu {
    display: flex;
}

.custom-select-search {
    padding: 8px;
    border-bottom: 1px solid var(--vr-border);
}

.custom-select-search input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--vr-border);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-select-search input:focus {
    border-color: var(--vr-primary);
}

.cpp-provider-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    overflow-y: auto;
    flex: 1;
}

.cpp-provider-list li {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cpp-provider-list li:hover {
    background-color: #f0f5ff;
}

.cpp-provider-list li.selected {
    background-color: #e8f0ff;
    color: var(--vr-primary);
    font-weight: 600;
}

.cpp-currency-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpp-currency-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--vr-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cpp-currency-option:hover {
    background: #f9f9f9;
}

.cpp-currency-option.selected {
    background: #e8f0ff;
    border-color: var(--vr-primary);
}

.cpp-currency-option input[type="radio"] {
    margin-right: 8px;
}

.cpp-surcharge-display {
    padding-top: 10px;
}

/* POR QUÉ NO SE PUEDE CONTINUAR.
   Acompaña al botón deshabilitado, que antes no decía nada: el cliente tenía
   que adivinar si le faltaba el monto, el modo de entrega o la agencia de
   retiro. Ámbar y no rojo: no es un error del cliente, es un paso que todavía
   no dio. `[hidden]` explícito porque algunos temas lo pisan con display. */
.remivz-submit-hint {
  /* DISCRETO: va DEBAJO del botón (nunca dentro) y sin caja de color.
     Con fondo y borde competía con el propio botón y empujaba las insignias
     de confianza; aquí solo hace falta una línea que diga qué falta. */
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
  color: #92400e;
  background: none;
  border: 0;
  padding: 0;
}
.remivz-submit-hint[hidden] { display: none !important; }

/* Nota de la oficina orientativa (el beneficiario cobra en cualquiera). */
.cpp-provider-note {
    display: block;
    margin: -4px 0 8px;
    font-size: 12px;
    opacity: .75;
}
