:root {
    --anf-lang-primary: #0c6b47;
    --anf-lang-primary-dark: #084e35;
    --anf-lang-surface: #ffffff;
    --anf-lang-text: #17211c;
    --anf-lang-muted: #68756e;
    --anf-lang-border: rgba(9, 72, 49, .12);
    --anf-lang-shadow: 0 18px 48px rgba(20, 39, 31, .18), 0 4px 14px rgba(20, 39, 31, .10);
}

.anf-translate-engine {
    position: fixed !important;
    left: -99999px !important;
    top: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.anf-language-switcher {
    position: fixed;
    z-index: 999998;
    bottom: var(--anf-bottom-offset, 92px);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.3;
    color: var(--anf-lang-text);
    isolation: isolate;
}

.anf-language-switcher.anf-position-right { right: 18px; }
.anf-language-switcher.anf-position-left { left: 18px; }

.anf-lang-bn body,
.anf-lang-bn button,
.anf-lang-bn input,
.anf-lang-bn textarea,
.anf-lang-bn select,
.anf-lang-bn .elementor-widget-text-editor,
.anf-lang-bn .elementor-heading-title,
.anf-lang-bn .woocommerce,
.anf-lang-bn .woocommerce-page {
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", sans-serif !important;
    letter-spacing: 0 !important;
}

.anf-lang-bn .notranslate,
.anf-lang-bn [translate="no"] {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.anf-lang-trigger {
    box-sizing: border-box;
    width: 158px;
    min-width: 158px;
    max-width: 158px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--anf-lang-primary), var(--anf-lang-primary-dark));
    color: #fff;
    box-shadow: 0 10px 26px rgba(8, 78, 53, .28);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.anf-lang-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(8, 78, 53, .34);
    filter: brightness(1.03);
}

.anf-lang-trigger:focus-visible,
.anf-lang-option:focus-visible {
    outline: 3px solid rgba(27, 145, 94, .30);
    outline-offset: 3px;
}

.anf-lang-globe { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.anf-lang-current { min-width: 0; text-align: center; white-space: nowrap; }
.anf-lang-chevron { width: 16px; text-align: center; font-size: 13px; opacity: .78; transition: transform .18s ease; }
.anf-language-switcher.is-open .anf-lang-chevron { transform: rotate(180deg); }

.anf-lang-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    width: 248px;
    padding: 10px;
    border: 1px solid var(--anf-lang-border);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--anf-lang-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform-origin: bottom right;
    animation: anfLangIn .16s ease-out;
}

.anf-position-right .anf-lang-menu { right: 0; }
.anf-position-left .anf-lang-menu { left: 0; transform-origin: bottom left; }

.anf-lang-heading {
    padding: 7px 9px 9px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    color: var(--anf-lang-muted);
    text-transform: uppercase;
}

.anf-lang-option {
    width: 100%;
    border: 0;
    border-radius: 13px;
    padding: 10px;
    margin: 2px 0;
    background: transparent;
    color: var(--anf-lang-text);
    cursor: pointer;
    display: grid;
    grid-template-columns: 38px 1fr 22px;
    align-items: center;
    gap: 10px;
    text-align: left;
    font: inherit;
    transition: background .15s ease, transform .15s ease;
}

.anf-lang-option:hover { background: #f2f8f5; }
.anf-lang-option:active { transform: scale(.99); }
.anf-lang-option.is-active { background: #edf7f2; }

.anf-lang-flag {
    width: 36px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef1f0;
    color: #344039;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #e1e6e3;
}

.anf-lang-flag-bn {
    background: #e7f5ed;
    color: #0a6b47;
    font-family: "Hind Siliguri", "Noto Sans Bengali", sans-serif;
}

.anf-lang-text { display: flex; flex-direction: column; gap: 2px; }
.anf-lang-text strong { font-size: 14px; font-weight: 750; }
.anf-lang-text small { font-size: 11px; color: var(--anf-lang-muted); font-weight: 500; }

.anf-lang-check {
    opacity: 0;
    color: var(--anf-lang-primary);
    font-size: 16px;
    font-weight: 900;
}
.anf-lang-option.is-active .anf-lang-check { opacity: 1; }

.anf-lang-note {
    margin: 8px 5px 2px;
    padding-top: 8px;
    border-top: 1px solid #edf0ee;
    text-align: center;
    color: #86918c;
    font-size: 9px;
    line-height: 1.4;
}

.anf-language-switcher.is-loading .anf-lang-trigger {
    pointer-events: none;
    opacity: .88;
}
.anf-language-switcher.is-loading .anf-lang-globe { animation: anfSpin 1s linear infinite; }

/* Keep the translated page from being pushed down by Google's legacy banner UI. */
body { top: 0 !important; }
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos { display: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }

@keyframes anfLangIn {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes anfSpin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
    .anf-language-switcher { bottom: var(--anf-bottom-offset, 92px); }
    .anf-language-switcher.anf-position-right { right: 12px; }
    .anf-language-switcher.anf-position-left { left: 12px; }
    .anf-lang-trigger {
        width: 92px;
        min-width: 92px;
        max-width: 92px;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        padding: 0 10px;
        grid-template-columns: 20px minmax(0, 1fr) 12px;
        gap: 5px;
    }
    .anf-lang-globe { width: 20px; height: 20px; }
    .anf-lang-globe svg { width: 20px; height: 20px; }
    .anf-lang-chevron { width: 12px; font-size: 11px; }
    .anf-lang-menu { width: min(248px, calc(100vw - 24px)); }
}

@media (prefers-reduced-motion: reduce) {
    .anf-lang-trigger,
    .anf-lang-chevron,
    .anf-lang-option,
    .anf-lang-menu { animation: none !important; transition: none !important; }
}


/* v1.2.0: compact globe-only control; it sits below the WhatsApp icon. */
.anf-language-switcher {
    bottom: var(--anf-bottom-offset, 18px) !important;
    z-index: 999998;
}

.anf-lang-trigger {
    box-sizing: border-box;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.anf-lang-globe {
    width: 28px !important;
    height: 28px !important;
}

.anf-lang-globe svg {
    width: 28px !important;
    height: 28px !important;
}

.anf-lang-current,
.anf-lang-chevron {
    display: none !important;
}

@media (max-width: 767px) {
    .anf-language-switcher {
        bottom: var(--anf-bottom-offset, 18px) !important;
        right: 12px;
    }

    .anf-lang-trigger {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }

    .anf-lang-globe,
    .anf-lang-globe svg {
        width: 26px !important;
        height: 26px !important;
    }
}
