/* Smart Hybrid Translator v1.0.0 */
.sht-switcher,
.sht-switcher * {
    box-sizing: border-box;
}
.sht-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    line-height: 1;
    isolation: isolate;
}
.sht-current-language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 36px;
    height: 32px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
    cursor: pointer;
    font-weight: 900;
}
.sht-language-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    height: 21px;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .02em;
    overflow: hidden;
}
.sht-uploaded-icon img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
}
.sht-language-name {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: none;
}
.sht-current-code,
.sht-language-code {
    text-transform: uppercase;
}
.sht-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    z-index: 99999;
    min-width: 50px;
    padding: 6px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    display: none;
}
.sht-style-dropdown_names .sht-dropdown {
    min-width: 150px;
}
.sht-style-dropdown_flags:hover .sht-dropdown,
.sht-style-dropdown_flags:focus-within .sht-dropdown,
.sht-style-dropdown_names:hover .sht-dropdown,
.sht-style-dropdown_names:focus-within .sht-dropdown {
    display: grid;
    gap: 6px;
}
.sht-style-dropdown_flags::before,
.sht-style-dropdown_names::before {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    top: 100%;
    height: 8px;
    z-index: 99998;
    background: transparent;
}
.sht-language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 34px;
    height: 31px;
    padding: 0 6px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid transparent;
    color: #0f172a;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.sht-language-link:hover,
.sht-language-link.is-current {
    background: #fff7ed;
    border-color: #fed7aa;
}
.sht-style-dropdown_flags .sht-language-link {
    width: 34px;
    min-width: 34px;
    padding: 0 4px;
}
.sht-style-dropdown_flags .sht-language-link .sht-language-name {
    display: none;
}
.sht-style-dropdown_flags .sht-current-language .sht-language-name {
    display: none;
}
.sht-style-inline_flags .sht-language-link,
.sht-style-inline_codes .sht-language-link {
    border-color: #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}
.sht-style-inline_flags .sht-language-link {
    width: 34px;
    min-width: 34px;
    padding: 0 4px;
}
.sht-gtranslate-runtime-loader {
    position: absolute !important;
    left: -99999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: .001 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
.sht-gtranslate-runtime-loader a {
    display: block !important;
}
.sht-missing-notice {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}
html[dir="rtl"] .sht-dropdown {
    right: auto;
    left: 0;
}
html[dir="rtl"] .sht-style-dropdown_names .sht-language-link {
    justify-content: flex-end;
}


/* Smart Hybrid Translator v1.1.0 - Frontend Translation Correction Mode */
.sht-translation-mode-active *::selection {
    background: rgba(249, 115, 22, .32);
}
.sht-correction-toast,
.sht-correction-panel {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sht-correction-toast {
    right: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
}
.sht-correction-panel {
    width: min(420px, calc(100vw - 30px));
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    color: #0f172a;
    overflow: hidden;
}
.sht-correction-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}
.sht-correction-panel-title {
    font-size: 14px;
    font-weight: 900;
}
.sht-correction-close {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: #e5e7eb;
    color: #0f172a;
    font-weight: 900;
    cursor: pointer;
}
.sht-correction-panel-body {
    display: grid;
    gap: 12px;
    padding: 16px;
}
.sht-correction-field {
    display: grid;
    gap: 6px;
}
.sht-correction-field label {
    font-size: 12px;
    font-weight: 900;
    color: #334155;
}
.sht-correction-field textarea,
.sht-correction-field select {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
    min-height: 76px;
}
.sht-correction-field select {
    min-height: 38px;
}
.sht-correction-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}
.sht-correction-btn {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}
.sht-correction-btn-primary {
    border-color: #f97316;
    background: #f97316;
    color: #fff;
}
.sht-correction-highlight {
    outline: 2px dashed rgba(249, 115, 22, .75);
    outline-offset: 2px;
}



/* Smart Hybrid Translator 1.3.0: isolated language-switcher UI */
.sht-switcher {
    --sht-flag-width: 26px;
    --sht-flag-height: 18px;
    --sht-item-gap: 4px;
    direction: ltr;
    flex-shrink: 0;
    vertical-align: middle;
}
.sht-elementor-switcher {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    direction: ltr;
}
.sht-switcher .sht-current-language,
.sht-switcher .sht-language-link {
    font-family: inherit;
    line-height: 1;
    transition: background-color .15s ease, border-color .15s ease;
}
.sht-switcher.sht-style-dropdown_flags .sht-current-language {
    display: inline-flex;
    width: calc(var(--sht-flag-width) + 10px);
    min-width: calc(var(--sht-flag-width) + 10px);
    height: calc(var(--sht-flag-height) + 10px);
    min-height: calc(var(--sht-flag-height) + 10px);
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15,23,42,.07);
    -webkit-appearance: none;
    appearance: none;
}
.sht-switcher .sht-language-visual {
    width: var(--sht-flag-width);
    min-width: var(--sht-flag-width);
    height: var(--sht-flag-height);
    min-height: var(--sht-flag-height);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    box-shadow: none;
    overflow: hidden;
}
.sht-switcher .sht-language-visual img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    box-shadow: none;
}
.sht-switcher .sht-dropdown {
    top: calc(100% + 1px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    min-width: calc(var(--sht-flag-width) + 15px);
    padding: 4px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,.16);
    border: 1px solid #e9ecf1;
    z-index: 99999;
}
.sht-switcher.sht-style-dropdown_flags:hover .sht-dropdown,
.sht-switcher.sht-style-dropdown_flags:focus-within .sht-dropdown,
.sht-switcher.sht-style-dropdown_flags.is-open .sht-dropdown,
.sht-switcher.sht-style-dropdown_names:hover .sht-dropdown,
.sht-switcher.sht-style-dropdown_names:focus-within .sht-dropdown,
.sht-switcher.sht-style-dropdown_names.is-open .sht-dropdown {
    display: grid;
    gap: var(--sht-item-gap);
}
.sht-switcher.sht-style-dropdown_flags .sht-language-link {
    display: inline-flex;
    width: calc(var(--sht-flag-width) + 5px);
    min-width: calc(var(--sht-flag-width) + 5px);
    height: calc(var(--sht-flag-height) + 7px);
    min-height: calc(var(--sht-flag-height) + 7px);
    padding: 0;
    margin: 0;
    border-radius: 4px;
    border: 1px solid transparent;
    justify-content: center;
    text-align: center;
    color: #0f172a;
    background: #fff;
}
.sht-switcher .sht-current-language .sht-language-visual,
.sht-switcher .sht-language-link .sht-language-visual {
    flex: 0 0 auto;
}
.sht-switcher.sht-style-dropdown_flags .sht-language-name,
.sht-switcher.sht-style-dropdown_flags .sht-current-code {
    display: none !important;
}
.sht-switcher .sht-language-link.is-current,
.sht-switcher .sht-language-link:hover,
.sht-switcher .sht-language-link:focus-visible {
    background: #fff7ed;
    border-color: #fdba74;
}
.sht-switcher.sht-hide-current-option .sht-language-link.is-current {
    display: none;
}
.sht-switcher.sht-style-inline_flags .sht-language-link {
    min-width: calc(var(--sht-flag-width) + 8px);
    width: calc(var(--sht-flag-width) + 8px);
    height: calc(var(--sht-flag-height) + 10px);
}
.sht-switcher.sht-style-dropdown_names .sht-dropdown {
    width: max-content;
    min-width: 130px;
    padding: 5px;
}
.sht-switcher.sht-style-dropdown_names .sht-language-link {
    justify-content: flex-start;
    min-height: 32px;
    width: 100%;
}
.sht-switcher button:focus-visible,
.sht-switcher a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.sht-switcher.sht-style-dropdown_flags::before,
.sht-switcher.sht-style-dropdown_names::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -4px;
    right: -4px;
    height: 8px;
    pointer-events: auto;
}
/* Arabic paragraphs can align RTL, but this plugin never rearranges a site's header. */
html.sht-lang-ar p,
html.sht-lang-ar .entry-content,
html.sht-lang-ar .post-content,
html.sht-lang-ar .page-content {
    text-align: right;
}
html.sht-lang-ar .sht-switcher,
html.sht-lang-ar .sht-switcher * {
    direction: ltr;
}
.sht-correction-panel.notranslate,
.sht-correction-toast.notranslate {
    direction: rtl;
    text-align: right;
}
.sht-correction-field select {
    direction: auto;
}
.sht-protected-notranslate {
    unicode-bidi: isolate;
}
@media (max-width: 767px) {
    .sht-switcher .sht-dropdown { z-index: 999999; }
}

/* GTranslate-synced lists can contain dozens of languages; keep the dropdown usable. */
.sht-switcher.sht-style-dropdown_flags .sht-dropdown,
.sht-switcher.sht-style-dropdown_names .sht-dropdown {
    max-height: min(420px, 65vh);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.sht-switcher .sht-flag-emoji {
    border: none;
    background: transparent;
    font-size: 22px;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.sht-switcher .sht-flag-visual .sht-flag-fallback { display: none; }
.sht-switcher .sht-flag-visual.sht-flag-image-failed img { display: none; }
.sht-switcher .sht-flag-visual.sht-flag-image-failed .sht-flag-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 20px;
    line-height: 1;
}


/* Smart Hybrid Translator v1.3.4 - Rectangular Arabic flags + enhanced RTL */
html.sht-lang-ar body,
html.sht-lang-ar .site,
html.sht-lang-ar .site-main,
html.sht-lang-ar main,
html.sht-lang-ar article,
html.sht-lang-ar section,
html.sht-lang-ar .elementor,
html.sht-lang-ar .elementor-widget-container {
    direction: rtl;
}
html.sht-lang-ar h1,
html.sht-lang-ar h2,
html.sht-lang-ar h3,
html.sht-lang-ar h4,
html.sht-lang-ar h5,
html.sht-lang-ar h6,
html.sht-lang-ar p,
html.sht-lang-ar li,
html.sht-lang-ar dt,
html.sht-lang-ar dd,
html.sht-lang-ar blockquote,
html.sht-lang-ar figcaption,
html.sht-lang-ar .elementor-heading-title,
html.sht-lang-ar .elementor-widget-text-editor,
html.sht-lang-ar .elementor-text-editor,
html.sht-lang-ar .elementor-icon-list-text,
html.sht-lang-ar .elementor-image-box-content,
html.sht-lang-ar .elementor-icon-box-content,
html.sht-lang-ar .elementor-post__title,
html.sht-lang-ar .elementor-post__excerpt,
html.sht-lang-ar .widget-title,
html.sht-lang-ar .entry-title,
html.sht-lang-ar .entry-content,
html.sht-lang-ar label {
    direction: rtl;
    text-align: right;
}
html.sht-lang-ar ul,
html.sht-lang-ar ol {
    padding-right: 1.2em;
    padding-left: 0;
}
html.sht-lang-ar .elementor-icon-list-items,
html.sht-lang-ar .elementor-icon-list-item {
    direction: rtl;
    text-align: right;
}
html.sht-lang-ar .elementor-icon-list-item,
html.sht-lang-ar .elementor-icon-box-wrapper,
html.sht-lang-ar .elementor-image-box-wrapper {
    flex-direction: row-reverse;
}
html.sht-lang-ar .elementor-icon-list-icon,
html.sht-lang-ar .elementor-icon-box-icon,
html.sht-lang-ar .elementor-image-box-img {
    margin-left: 10px;
    margin-right: 0;
}
html.sht-lang-ar input:not([type="email"]):not([type="url"]):not([type="tel"]),
html.sht-lang-ar textarea,
html.sht-lang-ar select {
    direction: rtl;
    text-align: right;
}
html.sht-lang-ar .sht-switcher,
html.sht-lang-ar .sht-switcher *,
html.sht-lang-ar .gtranslate_wrapper,
html.sht-lang-ar .gtranslate_wrapper * {
    direction: ltr !important;
    text-align: initial;
}
html.sht-lang-ar .sht-switcher .sht-dropdown,
html.sht-lang-ar .sht-switcher .sht-language-link {
    direction: ltr !important;
}
