/* =============================================
   Full Website EN ↔ AR Translator – style.css
   ============================================= */

/* ── Hide Google's own UI completely ── */
.goog-te-banner-frame,
.skiptranslate > iframe,
.goog-te-spinner-pos,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}
body { top: 0 !important; }
.goog-te-highlight { background: none !important; }

/* ── Floating widget ── */
#wlst-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 2147483647;
    font-family: -apple-system, 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
}
body.wlst-rtl #wlst-widget {
    right: auto;
    left: 28px;
}

/* ── Toggle button ── */
#wlst-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0057e7 0%, #1a85ff 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 11px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 20px rgba(0,87,231,.40), 0 1px 4px rgba(0,0,0,.12);
    transition: box-shadow .2s, transform .15s;
    white-space: nowrap;
    user-select: none;
}
#wlst-toggle:hover {
    box-shadow: 0 6px 26px rgba(0,87,231,.55);
    transform: translateY(-2px);
}
#wlst-toggle:active { transform: translateY(0); }

#wlst-globe  { font-size: 17px; line-height: 1; }
#wlst-label  { min-width: 54px; text-align: center; }
#wlst-caret  {
    transition: transform .25s;
    flex-shrink: 0;
}
#wlst-widget.open #wlst-caret { transform: rotate(180deg); }

/* ── Dropdown ── */
#wlst-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
    min-width: 185px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(.97);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}
body.wlst-rtl #wlst-dropdown {
    right: auto;
    left: 0;
}
#wlst-widget.open #wlst-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* ── Options ── */
.wlst-option {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: background .14s;
}
.wlst-option:hover   { background: #f0f6ff; color: #0057e7; }
.wlst-option.wlst-active { background: #eef4ff; color: #0057e7; }
.wlst-option:not(:last-child) { border-bottom: 1px solid #f2f2f2; }

.wlst-flag  { font-size: 20px; line-height: 1; }
.wlst-name  { flex: 1; }
.wlst-check { color: #0057e7; font-size: 15px; font-weight: 800; margin-left: auto; }

/* Arabic label font */
#btn-ar .wlst-name {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Amiri', Arial, sans-serif;
    font-size: 15px;
}

/* ── RTL global overrides ── */
body.wlst-rtl,
body.rtl {
    direction: rtl !important;
    text-align: right !important;
}
body.wlst-rtl p,
body.wlst-rtl h1, body.wlst-rtl h2, body.wlst-rtl h3,
body.wlst-rtl h4, body.wlst-rtl h5, body.wlst-rtl h6,
body.wlst-rtl li,
body.wlst-rtl td, body.wlst-rtl th {
    text-align: right !important;
    direction: rtl !important;
}
body.wlst-rtl .wp-block-column,
body.wlst-rtl .wp-block-columns,
body.wlst-rtl .entry-content {
    direction: rtl !important;
}
/* Keep email/URL inputs LTR */
body.wlst-rtl input[type="email"],
body.wlst-rtl input[type="url"],
body.wlst-rtl input[type="number"] {
    direction: ltr;
    text-align: left;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    #wlst-widget { bottom: 16px; right: 16px; }
    body.wlst-rtl #wlst-widget { right: auto; left: 16px; }
    #wlst-toggle { padding: 10px 15px; font-size: 13px; }
}
