/**
 * RR VAT and VIES Validation – CSS v2.1.0
 * Nota: stilurile de layout checkout sunt gestionate separat.
 */

/* ── Câmpuri ascunse implicit ───────────────────────────────── */
#billing_vat_number_field,
#billing_company_field {
    display: none;
}

/* ── Badge validare VIES ────────────────────────────────────── */
.radox-vat-badge {
    display: none;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    border-left: 4px solid;
}

.radox-badge-loading {
    background: #eef4ff;
    border-left-color: #4299e1;
    color: #2b6cb0;
}

.radox-badge-valid {
    background: #f0fff4;
    border-left-color: #48bb78;
    color: #276749;
}

.radox-badge-invalid {
    background: #fff5f5;
    border-left-color: #fc8181;
    color: #9b2c2c;
}

.radox-badge-error {
    background: #fffbeb;
    border-left-color: #f6ad55;
    color: #744210;
}

.radox-badge-valid small,
.radox-badge-invalid small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.85;
}

/* ── Spinner animat ─────────────────────────────────────────── */
.radox-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #4299e1;
    border-top-color: transparent;
    border-radius: 50%;
    animation: rr-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

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


/* ── Toggle B2B ─────────────────────────────────────────────── */
.rr-b2b-toggle-wrap {
    margin-bottom: 16px !important;
}

.rr-b2b-toggle-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.rr-b2b-toggle-block:hover {
    border-color: #800020;
}

.rr-b2b-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rr-b2b-toggle-title {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
}

.rr-b2b-toggle-subtitle {
    font-size: 12px;
    color: #888;
    font-family: 'Inter', sans-serif;
}

/* Switch */
.rr-b2b-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.rr-b2b-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.rr-b2b-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: background 0.25s;
}

.rr-b2b-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,0.2);
}

.rr-b2b-switch input:checked + .rr-b2b-slider {
    background: #800020;
}

.rr-b2b-switch input:checked + .rr-b2b-slider::before {
    transform: translateX(22px);
}

/* Clic pe întregul bloc activează toggle-ul */
.rr-b2b-toggle-block:has(input:checked) {
    border-color: #800020;
    background: #fdf8f9;
}


/*.rr-cv-note-rate {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    padding: 6px 12px;
    border-radius: 5px;
    border-left: 3px solid #f6ad55;
    background: #fffbeb;
    color: #744210;
    box-sizing: border-box;
}*/


@media (max-width: 600px) {
    .radox-vat-badge { font-size: 12px; }
}
