/* ── Google Translate — static styles (dynamic primary color stays inline per page) ── */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame, .goog-te-gadget,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-aZ2wEe-OiiCO { display: none !important; }
body { top: 0 !important; }

/* ── Smooth translation: hide content until GT finishes, then reveal ── */
html.gt-translating:not(.gt-ready):not(.translated-rtl):not(.translated-ltr) body { visibility: hidden; }
html.gt-translating:not(.gt-ready):not(.translated-rtl):not(.translated-ltr)::before {
    content: '';
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #555;
    border-radius: 50%;
    animation: cw-gt-spin 0.7s linear infinite;
    z-index: 9999;
}
@keyframes cw-gt-spin { to { transform: rotate(360deg); } }
html.gt-ready body, html.translated-ltr body, html.translated-rtl body { visibility: visible !important; }
.cw-gt-wrap { position: absolute; top: 12px; right: 12px; z-index: 100; min-width: 130px; }
.cw-gt-wrap .select2-container { min-width: 130px; }
.cw-gt-wrap .select2-container--default .select2-selection--single { border: none; border-radius: 20px; height: 32px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.cw-gt-wrap .select2-container--default .select2-selection--single .select2-selection__rendered { color: #fff; padding-left: 14px; padding-right: 28px; line-height: 32px; font-size: 13px; }
.cw-gt-wrap .select2-container--default .select2-selection--single .select2-selection__arrow { height: 32px; right: 8px; }
.cw-gt-wrap .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: rgba(255,255,255,0.8) transparent transparent transparent; }
.cw-gt-wrap .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent rgba(255,255,255,0.8) transparent; }
.cw-gt-dropdown { border-radius: 8px !important; box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important; border: 1px solid #eee !important; overflow: hidden; min-width: 130px !important; }
.cw-gt-dropdown .select2-results__option { font-size: 13px; padding: 8px 14px; }

/* ── RTL layout — reviewed static-Arabic accounts only ──
   Dropdown moves to the opposite (start) corner, and the terms checkbox
   uses logical properties so it lands on the correct side under dir="rtl"
   instead of the bidi algorithm running the checkbox/label together. */
[dir="rtl"] .cw-gt-wrap { right: auto; left: 12px; }
[dir="rtl"] .cw-gt-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 28px;
    padding-right: 14px;
}
[dir="rtl"] .cw-gt-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto;
    left: 8px;
}
[dir="rtl"] .t_and_c_privacy_policy .form-check {
    padding-right: 1.5em;
    padding-left: 0;
}
[dir="rtl"] .t_and_c_privacy_policy .form-check .form-check-input {
    float: right;
    margin-right: -1.5em;
    margin-left: 0;
}
[dir="rtl"] .t_and_c_privacy_policy .form-check-label {
    text-align: right;
}


/* DOB wheel-picker trigger — floating label + caret are positioned with
   hardcoded left/margin-left in dob-wheel-picker.css, so they stay on the
   physical left even under dir="rtl". Flip them to the visual start side. */
[dir="rtl"] .dob-trigger .dob-float-label {
    left: auto;
    right: 10px;
}
[dir="rtl"] .dob-trigger .dob-text {
    text-align: right;
}
[dir="rtl"] .dob-trigger .dob-caret {
    margin-left: 0;
    margin-right: 8px;
}

/* The wheel-picker sheet (Cancel/Done, Month/Day/Year wheels) inherits
   dir="rtl" from the page, which makes flexbox mirror the button order and
   reverse the wheel columns. Force that part back to LTR — it's a numeric
   picker, not text — while keeping the Arabic sheet title readable. */
[dir="rtl"] .dob-sheet-header,
[dir="rtl"] .dob-col-labels,
[dir="rtl"] .dob-wheels-wrap {
    direction: ltr;
}
[dir="rtl"] .dob-sheet-header .dob-sheet-title {
    direction: rtl;
}
