/* ---------------------------------------------------------------
   Business report / call-result modal + trigger buttons
   Matches site palette (main.css :root vars) — RTL, clean, rounded.
----------------------------------------------------------------*/

/* Always use the site's Persian fonts (inputs/buttons don't inherit by default) */
.br-popup,
.br-popup *,
.report-business-btn,
.call-result-btn {
    font-family: 'iranyekan', 'iransans', Tahoma, 'Segoe UI', sans-serif !important;
}

/* ---- trigger buttons ---- */
.report-business-box {
    margin-top: 12px;
    text-align: right;
}
.report-business-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--separate, #e9ecef);
    color: var(--gray, #64748b);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .18s ease;
}
.report-business-btn svg { flex-shrink: 0; }
.report-business-btn:hover {
    color: var(--red, #ec1533);
    border-color: var(--red, #ec1533);
    background: #fff5f6;
}

.call-result-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 6px 8px 0 0;
    background: var(--light, #f4f8ff);
    border: 1px solid var(--primary, #679BF1);
    color: var(--primary3, #387DED);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all .18s ease;
}
.call-result-btn:hover {
    background: var(--primary3, #387DED);
    color: #fff;
}

/* ---- SweetAlert2 popup shell ---- */
.br-popup {
    border-radius: 20px !important;
    padding: 22px 22px 18px !important;
    font-family: inherit !important;
    box-shadow: 0 24px 60px rgba(21, 31, 48, .18) !important;
}
.br-popup .swal2-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--black, #151f30) !important;
    padding: 0 !important;
    margin-bottom: 4px !important;
}
.br-popup .swal2-html-container {
    margin: 14px 2px 4px !important;
    text-align: right !important;
    overflow: visible !important;
}

/* title icon */
.br-title {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.br-title .br-title-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light, #f4f8ff);
    color: var(--primary3, #387DED);
    flex-shrink: 0;
}
.br-title.is-danger .br-title-icon {
    background: #fff5f6;
    color: var(--red, #ec1533);
}

/* subtitle / helper text */
.br-sub {
    font-size: 13px;
    color: var(--gray, #64748b);
    line-height: 1.9;
    margin: 2px 0 14px;
    text-align: center;
}

/* ---- reason list ---- */
.br-reasons {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 48vh;
    overflow-y: auto;
    padding: 2px;
}
.br-reason {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--separate, #e9ecef);
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    transition: all .16s ease;
    user-select: none;
}
.br-reason:hover {
    border-color: var(--primary, #679BF1);
    background: var(--light, #f4f8ff);
}
.br-reason .br-reason-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--graylight, #f8f8f9);
    color: var(--gray, #64748b);
    transition: all .16s ease;
}
.br-reason .br-reason-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--black, #151f30);
    text-align: right;
}
.br-reason .br-reason-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--separate, #dfe3e8);
    flex-shrink: 0;
    position: relative;
    transition: all .16s ease;
}
.br-reason.selected {
    border-color: var(--primary3, #387DED);
    background: var(--light, #f4f8ff);
    box-shadow: 0 4px 14px rgba(56, 125, 237, .12);
}
.br-reason.selected .br-reason-icon {
    background: var(--primary3, #387DED);
    color: #fff;
}
.br-reason.selected .br-reason-check {
    border-color: var(--primary3, #387DED);
    background: var(--primary3, #387DED);
}
.br-reason.selected .br-reason-check::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

/* the delete-request reason gets a danger accent */
.br-reason.danger .br-reason-icon { color: var(--red, #ec1533); background: #fff0f2; }
.br-reason.danger:hover { border-color: var(--red, #ec1533); background: #fff5f6; }
.br-reason.danger.selected {
    border-color: var(--red, #ec1533);
    background: #fff5f6;
    box-shadow: 0 4px 14px rgba(236, 21, 51, .12);
}
.br-reason.danger.selected .br-reason-icon { background: var(--red, #ec1533); color: #fff; }
.br-reason.danger.selected .br-reason-check { border-color: var(--red, #ec1533); background: var(--red, #ec1533); }

/* ---- description textarea ---- */
.br-desc-wrap { margin-top: 14px; text-align: right; }
.br-desc-label {
    display: block;
    font-size: 12.5px;
    color: var(--gray, #64748b);
    margin-bottom: 6px;
}
.br-desc {
    width: 100%;
    min-height: 78px;
    resize: vertical;
    border: 1.5px solid var(--separate, #e9ecef);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--black, #151f30);
    outline: none;
    transition: border-color .16s ease;
    box-sizing: border-box;
}
.br-desc:focus { border-color: var(--primary, #679BF1); }

/* ---- code entry ---- */
.br-code-input {
    width: 190px;
    max-width: 100%;
    margin: 6px auto 0;
    display: block;
    text-align: center;
    letter-spacing: 8px;
    font-size: 22px;
    font-weight: 700;
    direction: ltr;
    border: 1.5px solid var(--separate, #e9ecef);
    border-radius: 14px;
    padding: 12px 10px;
    color: var(--black, #151f30);
    outline: none;
    transition: border-color .16s ease;
}
.br-code-input:focus { border-color: var(--primary3, #387DED); }

/* ---- action buttons ---- */
.br-popup .swal2-actions { gap: 10px !important; margin-top: 18px !important; }
.br-popup .swal2-confirm,
.br-popup .swal2-confirm:hover,
.br-popup .swal2-confirm:focus {
    background: var(--primary3, #387DED) !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    padding: 10px 26px !important;
    box-shadow: 0 8px 20px rgba(56, 125, 237, .25) !important;
    transition: transform .12s ease !important;
}
.br-popup .swal2-confirm:hover { transform: translateY(-1px); }
.br-popup .swal2-confirm.br-danger,
.br-popup .swal2-confirm.br-danger:hover,
.br-popup .swal2-confirm.br-danger:focus {
    background: var(--red, #ec1533) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(236, 21, 51, .25) !important;
}
.br-popup .swal2-cancel {
    background: #fff !important;
    color: var(--gray, #64748b) !important;
    border: 1.5px solid var(--separate, #e9ecef) !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
}
.br-popup .swal2-cancel:hover { background: var(--graylight, #f8f8f9) !important; }

/* method note (sms/call) shown inside the code step */
.br-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--light, #f4f8ff);
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--acolor, #273c5c);
    text-align: right;
    margin-bottom: 6px;
}
.br-note.is-call { background: #fff8ec; color: #8a5a00; }
.br-note svg { flex-shrink: 0; margin-top: 2px; }

/* ---- delete flow: phone display + support line ---- */
.br-phone-box {
    margin: 6px auto 2px;
    padding: 14px 16px;
    background: var(--light, #f4f8ff);
    border: 1.5px dashed var(--primary, #679BF1);
    border-radius: 14px;
    text-align: center;
}
.br-phone {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary4, #226FEA);
    text-decoration: none;
    direction: ltr;
}
.br-phone:hover { text-decoration: underline; }
.br-phone-note {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--gray, #64748b);
}

/* SweetAlert2 footer (support help line) */
.br-popup .swal2-footer {
    border-top: 1px solid var(--separate, #e9ecef) !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
}
.br-support {
    font-size: 12.5px;
    line-height: 2;
    color: var(--gray, #64748b);
    text-align: center;
    width: 100%;
}
.br-support-num {
    font-weight: 700;
    color: var(--primary3, #387DED);
    text-decoration: none;
    direction: ltr;
    display: inline-block;
    margin: 0 3px;
}
.br-support-num:hover { text-decoration: underline; }

/* delete flow: night-blocked call state */
.br-phone-note.is-blocked {
    color: #b5730a;
    font-weight: 600;
}
.br-popup .swal2-confirm.br-disabled,
.br-popup .swal2-confirm:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    filter: grayscale(0.3);
}
.br-popup .swal2-confirm.br-disabled:hover { transform: none !important; }
