/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 1.6.2
*/


/* کادر اصلی: شفاف و بدون حاشیه */
.zh-language {
    position: relative;
    display: inline-block;
    width: max-content;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    vertical-align: middle;
    z-index: 100;
}

/* زبان فعال و گزینه‌های زبان */
.zh-language > summary,
.zh-language .zh-language-options > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin: 0;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font: inherit;
    line-height: 1.5;
    text-decoration: none !important;
    white-space: nowrap;
}

/* حذف فلش پیش‌فرض مرورگر و قالب */
.zh-language > summary {
    list-style: none;
    cursor: pointer;
}

.zh-language > summary::-webkit-details-marker {
    display: none;
}

.zh-language > summary::marker {
    content: "";
}

.zh-language > summary::before,
.zh-language > summary::after {
    display: none !important;
}

/* پرچم‌ها */
.zh-language img {
    display: block;
    flex: 0 0 22px;
    width: 22px !important;
    height: 15px !important;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    object-fit: contain;
}

/* فلش سفارشی */
.zh-language .zh-language-arrow {
    display: block;
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin-inline-start: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.zh-language[open] .zh-language-arrow {
    transform: translateY(2px) rotate(225deg);
}

/* گزینه‌ها دقیقاً زیر زبان فعال */
.zh-language .zh-language-options {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    inset-inline-end: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 4px 0 0;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 101;
}

/* بسته‌بودن منو */
.zh-language:not([open]) .zh-language-options {
    display: none;
}

/* رنگ هنگام رفتن موس روی گزینه */
.zh-language .zh-language-options > a:hover {
    color: #e30046 !important;
}

/* دسترسی با کیبورد */
.zh-language > summary:focus-visible,
.zh-language .zh-language-options > a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.zh-language img {
    display: none !important;
}