.tmc-mobile-bottom-menu {
    --tmc-mobile-primary: #f08018;
    --tmc-mobile-dark: #1d242c;
    --tmc-mobile-text: #394656;
    --tmc-mobile-muted: #6c8096;
    --tmc-mobile-line: #d5dee8;
    --tmc-mobile-white: #ffffff;
    position: relative;
    z-index: 950;
    font-family: "Montserrat", sans-serif;
}

.tmc-mobile-bottom-menu *,
.tmc-mobile-bottom-menu *::before,
.tmc-mobile-bottom-menu *::after {
    box-sizing: border-box;
}

.tmc-mobile-bottom-menu a,
.tmc-mobile-bottom-menu button {
    font: inherit;
}

.tmc-mobile-bottom-menu a {
    text-decoration: none;
}

.tmc-mobile-bottom-menu a:focus-visible,
.tmc-mobile-bottom-menu button:focus-visible {
    outline: 2px solid var(--tmc-mobile-primary);
    outline-offset: 3px;
}

.tmc-mobile-bottom-menu__overlay[hidden],
.tmc-mobile-bottom-menu__panel[hidden] {
    display: none !important;
}

.tmc-mobile-bottom-menu__overlay {
    position: fixed;
    inset: 0;
    z-index: 951;
    background: rgba(29, 36, 44, .6);
}

.tmc-mobile-bottom-menu__panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    z-index: 952;
    max-height: calc(100dvh - 108px - env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid var(--tmc-mobile-line);
    border-radius: 8px;
    background: var(--tmc-mobile-white);
    box-shadow: 0 24px 48px rgba(29, 36, 44, .22);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .24s ease, transform .24s ease;
}

.tmc-mobile-bottom-menu__panel.is-open {
    opacity: 1;
    transform: translateY(0);
}

.tmc-mobile-bottom-menu__panel-head {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--tmc-mobile-line);
}

.tmc-mobile-bottom-menu__panel-head strong {
    color: var(--tmc-mobile-dark);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.tmc-mobile-bottom-menu__close {
    width: 38px;
    height: 38px;
    position: relative;
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    background: #f3f5f8;
    color: var(--tmc-mobile-dark);
    cursor: pointer;
}

.tmc-mobile-bottom-menu__close::before,
.tmc-mobile-bottom-menu__close::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 11px;
    width: 16px;
    height: 2px;
    background: currentColor;
}

.tmc-mobile-bottom-menu__close::before {
    transform: rotate(45deg);
}

.tmc-mobile-bottom-menu__close::after {
    transform: rotate(-45deg);
}

.tmc-mobile-bottom-menu__panel-body {
    min-height: 0;
    display: grid;
    gap: 16px;
    overflow-y: auto;
    padding: 16px 18px 18px;
}

.tmc-mobile-bottom-menu__stack,
.tmc-mobile-bottom-menu__cards {
    display: grid;
    gap: 12px;
}

.tmc-mobile-bottom-menu__group,
.tmc-mobile-bottom-menu__card,
.tmc-mobile-bottom-menu__meta {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--tmc-mobile-line);
    border-radius: 8px;
    background: var(--tmc-mobile-white);
}

.tmc-mobile-bottom-menu__group-link,
.tmc-mobile-bottom-menu__card strong {
    color: var(--tmc-mobile-dark);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}

.tmc-mobile-bottom-menu__group-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tmc-mobile-bottom-menu__group-list a,
.tmc-mobile-bottom-menu__card span {
    color: var(--tmc-mobile-text);
    font-size: 15px;
    line-height: 1.5;
}

.tmc-mobile-bottom-menu__group-list a:hover,
.tmc-mobile-bottom-menu__group-link:hover,
.tmc-mobile-bottom-menu__card:hover strong {
    color: var(--tmc-mobile-primary);
}

.tmc-mobile-bottom-menu__eyebrow {
    margin: 0;
    color: var(--tmc-mobile-primary);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tmc-mobile-bottom-menu__chips {
    display: grid;
    gap: 10px;
}

.tmc-mobile-bottom-menu__chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid var(--tmc-mobile-line);
    border-radius: 8px;
    color: var(--tmc-mobile-text);
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
}

.tmc-mobile-bottom-menu__chip:hover {
    color: var(--tmc-mobile-primary);
    border-color: var(--tmc-mobile-primary);
}

.tmc-mobile-bottom-menu__cta {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid var(--tmc-mobile-primary);
    border-radius: 8px;
    background: var(--tmc-mobile-primary);
    color: var(--tmc-mobile-dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.tmc-mobile-bottom-menu__cta:hover {
    background: var(--tmc-mobile-dark);
    border-color: var(--tmc-mobile-dark);
    color: var(--tmc-mobile-white);
}

.tmc-mobile-bottom-menu__empty {
    margin: 0;
    color: var(--tmc-mobile-text);
    font-size: 15px;
    line-height: 1.55;
}

.tmc-mobile-bottom-menu__bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 953;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: var(--tmc-mobile-dark);
    box-shadow: 0 -12px 28px rgba(29, 36, 44, .14);
    transform: translateY(0);
    transition: transform .24s ease;
}

.tmc-mobile-bottom-menu__bar.is-hidden {
    transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px)));
}

body.tmc-mobile-menu-open .tmc-mobile-bottom-menu__bar {
    transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px)));
}

.tmc-mobile-bottom-menu__action {
    min-height: 52px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    padding: 6px 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--tmc-mobile-white);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
}

.tmc-mobile-bottom-menu__action.is-active,
.tmc-mobile-bottom-menu__action:hover,
.tmc-mobile-bottom-menu__action:focus-visible {
    background: rgba(240, 128, 24, .14);
    color: var(--tmc-mobile-primary);
}

.tmc-mobile-bottom-menu__icon {
    width: 18px;
    height: 18px;
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

.tmc-mobile-bottom-menu__label {
    max-width: 100%;
    min-height: 2.3em;
    display: grid;
    font-weight: 400;
    font-size: 12px;
    align-items: start;
    color: inherit;
    line-height: 1.12;
    text-wrap: balance;
}

.tmc-mobile-bottom-menu__icon--catalog::before,
.tmc-mobile-bottom-menu__icon--catalog::after,
.tmc-mobile-bottom-menu__icon--solutions::before,
.tmc-mobile-bottom-menu__icon--solutions::after,
.tmc-mobile-bottom-menu__icon--about::before,
.tmc-mobile-bottom-menu__icon--about::after,
.tmc-mobile-bottom-menu__icon--contacts::before,
.tmc-mobile-bottom-menu__icon--contacts::after {
    content: "";
    position: absolute;
    border-color: currentColor;
}

.tmc-mobile-bottom-menu__icon--catalog::before {
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.tmc-mobile-bottom-menu__icon--catalog::after {
    top: 8px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -4px 0 currentColor;
}

.tmc-mobile-bottom-menu__icon--solutions::before {
    left: 2px;
    right: 2px;
    bottom: 3px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -4px 0 currentColor;
}

.tmc-mobile-bottom-menu__icon--solutions::after {
    top: 2px;
    left: 4px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.tmc-mobile-bottom-menu__icon--about::before {
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.tmc-mobile-bottom-menu__icon--about::after {
    top: 4px;
    left: 8px;
    width: 2px;
    height: 7px;
    background: currentColor;
    box-shadow: 0 9px 0 currentColor;
}

.tmc-mobile-bottom-menu__icon--contacts::before {
    top: 2px;
    left: 4px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.tmc-mobile-bottom-menu__icon--contacts::after {
    left: 7px;
    bottom: 1px;
    width: 4px;
    height: 7px;
    background: currentColor;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

body.tmc-mobile-bottom-menu-open {
    overflow: hidden;
}

body.admin-bar .tmc-mobile-bottom-menu__panel {
    max-height: calc(100dvh - 154px - env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1025px) {
    .tmc-mobile-bottom-menu {
        display: none;
    }
}

@media (max-width: 420px) {
    .tmc-mobile-bottom-menu__bar {
        gap: 4px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .tmc-mobile-bottom-menu__action {
        min-height: 50px;
        font-size: 9.5px;
        padding-left: 3px;
        padding-right: 3px;
    }

    .tmc-mobile-bottom-menu__panel {
        left: 10px;
        right: 10px;
    }

    .tmc-mobile-bottom-menu__panel-head,
    .tmc-mobile-bottom-menu__panel-body {
        padding-left: 14px;
        padding-right: 14px;
    }
}
