/* =========================================================
   Recargo de Equivalencia – Frontend Styles
   ========================================================= */

/* ---- Bloque checkout ---- */
.re-checkout-block {
    margin: 24px 0;
    padding: 20px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.re-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.re-icon {
    font-size: 20px;
}

/* ---- Toggle switch ---- */
.re-toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
}

.re-toggle-switch {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 26px;
    margin-top: 2px;
}

.re-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.re-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 26px;
    transition: background 0.25s;
    cursor: pointer;
}

.re-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.re-toggle-input:checked + .re-toggle-slider {
    background: #16a34a;
}

.re-toggle-input:checked + .re-toggle-slider::before {
    transform: translateX(22px);
}

/* ---- Text ---- */
.re-toggle-text strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.re-toggle-sub {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* ---- Info rates ---- */
.re-rates-info {
    margin-top: 14px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
    color: #14532d;
    transition: all 0.3s;
}

.re-rates-info p {
    margin: 0 0 6px;
    font-weight: 600;
}

.re-rates-info ul {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
}

.re-rates-info li {
    margin: 2px 0;
}

/* ---- Mi Cuenta ---- */
.re-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}

.re-fieldset legend {
    font-weight: 700;
    font-size: 15px;
    padding: 0 8px;
    color: #1e293b;
}

.re-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
}

.re-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #16a34a;
}

.re-info {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

/* ---- Aviso en detalle de pedido ---- */
.re-order-notice {
    padding: 10px 14px;
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 4px;
    font-size: 14px;
    color: #14532d;
}
