.gmn-wrap,
.gmn-wrap *,
.gmn-shortcode-action,
.gmn-shortcode-action * {
    box-sizing: border-box;
}

.gmn-wrap {
    --gmn-bg-rgb: 255,255,255;
    --gmn-border-rgb: 255,255,255;
    --gmn-opacity: .66;
    --gmn-blur: 22px;
    --gmn-radius: 32px;
    --gmn-height: 76px;
    --gmn-bottom: 16px;
    --gmn-max-width: 520px;
    --gmn-accent: #83b735;
    --gmn-text: #83b735;
    --gmn-z: 9999;
    display: none;
    position: fixed;
    inset-inline: 0;
    z-index: var(--gmn-z);
    pointer-events: none;
    opacity: 1;
    transform: translateY(0);
    transition: transform .28s ease, opacity .28s ease;
}

.gmn-mode-floating {
    bottom: var(--gmn-bottom);
    width: min(calc(100% - 24px), var(--gmn-max-width));
    margin-inline: auto;
}

.gmn-mode-floating.gmn-safe-area {
    bottom: calc(var(--gmn-bottom) + env(safe-area-inset-bottom, 0px));
}

.gmn-mode-sticky {
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}

.gmn-wrap.is-scroll-hidden,
.gmn-wrap.is-overlay-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 42px));
}

.gmn-bar {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--gmn-items, 5), minmax(0, 1fr));
    align-items: stretch;
    height: var(--gmn-height);
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 1px solid rgba(var(--gmn-border-rgb), .58);
    border-radius: var(--gmn-radius);
    background: rgb(var(--gmn-bg-rgb));
    box-shadow: 0 18px 50px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255,255,255,.52);
    pointer-events: auto;
}

.gmn-bar::-webkit-scrollbar {
    display: none;
}

.gmn-is-glass .gmn-bar {
    background:
        linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,.06)),
        rgba(var(--gmn-bg-rgb), var(--gmn-opacity));
    -webkit-backdrop-filter: blur(var(--gmn-blur)) saturate(150%);
    backdrop-filter: blur(var(--gmn-blur)) saturate(150%);
}

.gmn-is-solid .gmn-bar {
    border-color: rgba(var(--gmn-border-rgb), 1);
    background: rgb(var(--gmn-bg-rgb));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
}

.gmn-mode-sticky .gmn-bar {
    min-height: var(--gmn-height);
    height: calc(var(--gmn-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    border-inline: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255,255,255,.5);
}

.gmn-many-items .gmn-bar {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, 1fr);
}

.gmn-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 12% 10%, rgba(255,255,255,.46), transparent 28%),
        radial-gradient(circle at 86% 92%, rgba(255,255,255,.16), transparent 30%);
    pointer-events: none;
}

.gmn-is-solid .gmn-bar::before {
    display: none;
}

.gmn-item {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-width: 0;
    height: calc(var(--gmn-height) - 12px);
    padding: 3px 4px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    border: 0;
    border-radius: max(10px, calc(var(--gmn-radius) - 10px));
    background: transparent;
    color: var(--gmn-text);
    font: inherit;
    line-height: 1.15;
    text-decoration: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: transform .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

/* جلوگیری از تداخل استایل عمومی دکمه‌ها و لینک‌های قالب با آیتم‌های نوار */
.gmn-wrap .gmn-item,
.gmn-wrap a.gmn-item,
.gmn-wrap button.gmn-item {
    margin: 0 !important;
    border: 0 !important;
    outline: 0;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.gmn-wrap .gmn-item::before,
.gmn-wrap .gmn-item::after {
    content: none !important;
    display: none !important;
}

.gmn-wrap .gmn-item.is-active,
.gmn-wrap .gmn-item[aria-current="page"] {
    background: rgba(255,255,255,.44) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 28px rgba(15, 23, 42, .10) !important;
}

.gmn-wrap.gmn-is-solid .gmn-item.is-active,
.gmn-wrap.gmn-is-solid .gmn-item[aria-current="page"] {
    background: color-mix(in srgb, var(--gmn-accent) 10%, transparent) !important;
    box-shadow: none !important;
}

.gmn-wrap.gmn-template-dark .gmn-item.is-active,
.gmn-wrap.gmn-template-dark .gmn-item[aria-current="page"] {
    background: rgba(255,255,255,.10) !important;
}

.gmn-wrap.gmn-template-gradient .gmn-item.is-active,
.gmn-wrap.gmn-template-gradient .gmn-item[aria-current="page"] {
    background: linear-gradient(135deg, color-mix(in srgb, var(--gmn-accent) 22%, white), rgba(255,255,255,.32)) !important;
}

.gmn-many-items .gmn-item {
    min-width: 72px;
}

.gmn-item:hover,
.gmn-item:focus-visible {
    color: var(--gmn-accent);
    transform: translateY(-1px);
}

.gmn-item:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gmn-accent) 24%, transparent);
}

.gmn-item.is-active,
.gmn-item[aria-current="page"] {
    color: var(--gmn-accent);
    background: rgba(255,255,255,.44);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 28px rgba(15, 23, 42, .10);
}

.gmn-is-solid .gmn-item.is-active,
.gmn-is-solid .gmn-item[aria-current="page"] {
    background: color-mix(in srgb, var(--gmn-accent) 10%, transparent);
    box-shadow: none;
}

.gmn-icon {
    display: inline-flex;
    width: clamp(20px, calc(var(--gmn-height) * .31), 29px);
    height: clamp(20px, calc(var(--gmn-height) * .31), 29px);
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.gmn-icon svg,
.gmn-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.gmn-icon img {
    object-fit: contain;
    border-radius: 7px;
}

.gmn-label {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 2.2em;
    max-height: 2.2em;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    direction: rtl;
    color: inherit;
    font-size: clamp(8px, calc(var(--gmn-height) * .13), 11px);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    unicode-bidi: plaintext;
}

.gmn-no-labels .gmn-item,
.gmn-item-without-label {
    gap: 0;
}

.gmn-no-labels .gmn-icon,
.gmn-item-without-label .gmn-icon {
    width: clamp(25px, calc(var(--gmn-height) * .4), 36px);
    height: clamp(25px, calc(var(--gmn-height) * .4), 36px);
}

.gmn-template-dark .gmn-bar {
    box-shadow: 0 18px 54px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.18);
}

.gmn-template-dark .gmn-item.is-active,
.gmn-template-dark .gmn-item[aria-current="page"] {
    background: rgba(255,255,255,.10);
}

.gmn-template-gradient .gmn-item.is-active,
.gmn-template-gradient .gmn-item[aria-current="page"] {
    background: linear-gradient(135deg, color-mix(in srgb, var(--gmn-accent) 22%, white), rgba(255,255,255,.32));
}

.gmn-template-luxury .gmn-bar {
    box-shadow: 0 20px 55px rgba(92, 64, 51, .18), inset 0 1px 0 rgba(255,255,255,.62);
}

.gmn-shortcode-action {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

@media (max-width: 390px) {
    .gmn-bar {
        padding-inline: 4px;
    }
    .gmn-item {
        padding-inline: 2px;
    }
    .gmn-label {
        font-size: clamp(7.5px, calc(var(--gmn-height) * .125), 10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gmn-wrap,
    .gmn-item {
        transition: none;
    }
}

/* WordPress Dashicons used by the extended icon library */
.gmn-icon > .dashicons {
    display: block;
    width: 100%;
    height: 100%;
    font-size: inherit;
    line-height: 1;
}

.gmn-icon > .dashicons::before {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, calc(var(--gmn-height) * .31), 29px);
    line-height: 1;
}

.gmn-no-labels .gmn-icon > .dashicons::before,
.gmn-item-without-label .gmn-icon > .dashicons::before {
    font-size: clamp(25px, calc(var(--gmn-height) * .4), 36px);
}
