
/* =========================================================
   TOUCHMEDICAL — HEADER
========================================================= */

.tm-header {
    width: 100%;
    position: relative;
    z-index: 100;
    background: #fff;
    font-family: 'Manrope', sans-serif;
    color: #111;
}

.tm-header *,
.tm-header *::before,
.tm-header *::after {
    box-sizing: border-box;
}

.tm-header-container {
    width: 100%;
    max-width: var(--tm-container-width);
    margin: 0 auto;
    padding-left: var(--tm-container-padding);
    padding-right: var(--tm-container-padding);
}

/* TOP BAR */

.tm-header-top {
    min-height: 48px;
    border-bottom: 1px solid #EEEEEE;
    margin-bottom: 16px;
}

.tm-header-top-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tm-header-info,
.tm-header-top-right,
.tm-header-info-item,
.tm-header-phone,
.tm-header-secondary-nav {
    display: flex;
    align-items: center;
}

.tm-header-info {
    gap: 22px;
    min-width: 0;
}

.tm-header-info-item {
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.tm-header-divider {
    width: 1px;
    height: 20px;
    background: #EEEEEE;
    flex-shrink: 0;
}

.tm-header-top-right {
    gap: 30px;
    flex-shrink: 0;
}

.tm-header-phone {
    gap: 10px;
    text-decoration: none !important;
    color: #111 !important;
}

.tm-header-phone-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tm-header-phone strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.tm-header-phone small {
    color: #66706A;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.tm-header-secondary-nav {
    gap: 30px;
}

.tm-header-secondary-nav a,
.tm-header-primary-nav a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tm-header-secondary-nav a {
    font-size: 14px;
    white-space: nowrap;
}

.tm-header-secondary-nav a:hover,
.tm-header-primary-nav a:hover {
    color: #89C43B;
}

/* ICON PLACEHOLDERS */

.tm-icon-placeholder {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #89C43B;
}



.tm-header-logo {
    display: flex;
    align-items: center;
    flex: 0 0 245px;
    width: 245px;
    margin-right: 40px;
}

.tm-header-logo img {
    display: block;
    width: 245px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* CATALOG BUTTON */

.tm-catalog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;

    min-height: 42px;
    padding: 0 14px;

    color: #fff !important;
    background: #79B777 !important;
    border: 0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;

    font-family: 'Manrope', sans-serif !important;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;

    cursor: pointer;
    transition: background 0.2s ease;
}

.tm-catalog-button:hover {
    background: #6AA568 !important;
    box-shadow: none !important;
    transform: none !important;
}

.tm-catalog-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.tm-catalog-button[aria-expanded="true"] .tm-catalog-chevron {
    transform: rotate(180deg);
}


/* PRIMARY NAVIGATION */

.tm-header-primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-left: auto;
    padding: 0 20px;
    min-width: 0;
    flex-shrink: 1;
}

.tm-header-primary-nav a {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}


/* HEADER ACTIONS */

.tm-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    flex-shrink: 0;
}

.tm-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0;
    margin: 0;

    color: #111 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    text-decoration: none !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;

    cursor: pointer;
}

.tm-header-action:hover {
    color: #89C43B !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.tm-cart-icon-wrap {
    position: relative;
    display: inline-flex;
}

.tm-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 13px;
    height: 13px;
    padding: 0 3px;

    color: #fff;
    background: #89C43B;
    border-radius: 50%;

    font-size: 8px;
    line-height: 1;
}

.tm-mega-menu[hidden] {
    display: none !important;
}

/* TABLET */

@media (max-width: 1100px) {
    .tm-header-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tm-header-logo {
        flex-basis: 200px;
        width: 200px;
        margin-right: 20px;
    }

    .tm-header-logo img {
        width: 200px;
    }

    .tm-header-primary-nav {
        gap: 16px;
        padding: 0 16px;
    }

    .tm-header-primary-nav a {
        font-size: 12px;
    }

    .tm-header-actions {
        gap: 14px;
    }

    .tm-header-info {
        gap: 12px;
    }

    .tm-header-top-right {
        gap: 18px;
    }

    .tm-header-secondary-nav {
        gap: 16px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .tm-header-top {
        display: none;
    }

    .tm-header-main-inner {
        min-height: 66px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .tm-header-logo {
        flex: 0 1 175px;
        width: 175px;
        margin-right: 0;
    }

    .tm-header-logo img {
        width: 175px;
    }

    .tm-catalog-button {
        order: 3;
        min-height: 40px;
        font-size: 13px;
    }

    .tm-header-primary-nav {
        display: none;
    }

    .tm-header-actions {
        gap: 16px;
        margin-left: auto;
    }

    .tm-action-label {
        display: none;
    }

    .tm-header-action .tm-icon-placeholder {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .tm-icon-search::before {
        width: 16px;
        height: 16px;
    }

    .tm-icon-account::before {
        width: 8px;
        height: 8px;
    }

    .tm-icon-account::after {
        width: 16px;
        height: 8px;
    }

    .tm-header-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 380px) {
    .tm-header-logo {
        flex-basis: 145px;
        width: 145px;
    }

    .tm-header-logo img {
        width: 145px;
    }

    .tm-header-actions {
        gap: 12px;
    }
}





/* =========================================================
   HEADER LAYOUT FIX
========================================================= */

.tm-header-main-inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.tm-header-logo {
    flex: 0 0 245px;
    width: 245px;
    margin-right: 0;
}

.tm-header-catalog {
    flex: 0 0 auto;
}

.tm-header-primary-nav {
    margin-left: 12px;
    padding: 0;
    gap: 24px;
}

.tm-header-actions {
    margin-left: auto;
    gap: 20px;
    flex-shrink: 0;
}

/* Планшеты */
@media (max-width: 1100px) and (min-width: 768px) {
    .tm-header-main-inner {
        gap: 14px;
    }

    .tm-header-logo {
        flex-basis: 190px;
        width: 190px;
    }

    .tm-header-logo img {
        width: 190px;
    }

    .tm-header-primary-nav {
        gap: 12px;
        margin-left: 0;
    }

    .tm-header-primary-nav a {
        font-size: 12px;
    }

    .tm-header-actions {
        gap: 12px;
    }
}





/* Линия и отступ после нижней части шапки */

.tm-header-main {
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 16px;
    margin-bottom: 16px;
}





/* FIX: мегаменю не влияет на ширину шапки */

.tm-header-main-inner {
    position: relative;
}

.tm-header-catalog {
    flex: 0 0 auto;
}

.tm-header-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Мегаменю располагается поверх страницы,
   не участвуя в расчёте ширины шапки */
.tm-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
}















/* =========================================================
   TOUCHMEDICAL — MOBILE ACTIONS
========================================================= */

.tm-mobile-actions {
    display: none;
}

@media (max-width: 767px) {

    .tm-header-main-inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 64px;
        padding-top: 10px;
    }

    .tm-header-logo {
        flex: 0 1 auto;
        width: auto;
        max-width: 180px;
        min-width: 0;
        margin: 0;
    }

    .tm-header-logo img {
        display: block;
        width: 100%;
        max-width: 180px;
        height: auto;
    }

    .tm-header-catalog,
    .tm-header-primary-nav,
    .tm-header-actions {
        display: none !important;
    }

    .tm-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 16px;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .tm-mobile-phone,
    .tm-mobile-cart,
    .tm-mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 24px;
        height: 28px;
        padding: 0;
        margin: 0;
        flex: 0 0 24px;
        color: #111;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        text-decoration: none;
        cursor: pointer;
    }

    .tm-mobile-phone img,
    .tm-mobile-cart img {
        display: block;
        width: 24px;
        height: 24px;
    }

    .tm-mobile-phone img {
        filter: none;
    }

    .tm-mobile-menu-toggle {
        flex-direction: column;
        gap: 5px;
    }

    .tm-mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #111;
        border-radius: 1px;
    }

    .tm-mobile-cart .tm-cart-icon-wrap {
        display: inline-flex;
        position: relative;
    }

    .tm-mobile-cart .tm-cart-count {
        top: -5px;
        right: -5px;
    }

    .tm-mobile-menu[hidden] {
        display: none !important;
    }
}

@media (max-width: 380px) {
    .tm-header-main-inner {
        gap: 8px;
    }

    .tm-header-logo,
    .tm-header-logo img {
        max-width: 155px;
    }

    .tm-mobile-actions {
        gap: 12px;
    }
}



/* =========================================================
   TOUCHMEDICAL — MOBILE HEADER FIX
========================================================= */

@media (max-width: 767px) {

    /* Уменьшаем отступ после верхней разделительной линии */
    .tm-header-main-inner {
        padding-top: 6px !important;
        padding-bottom: 0px !important;
        min-height: 58px !important;
    }

    /* Убираем фон, рамку и тень у кнопки мобильного меню */
    .tm-mobile-menu-toggle,
    .tm-header-burger,
    .tm-burger-button {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none;
        padding: 0 !important;
    }

    /* Если бургер использует отдельные линии */
    .tm-mobile-menu-toggle span,
    .tm-header-burger span,
    .tm-burger-button span {
        background-color: #111 !important;
    }

}







/* =========================================================
   TOUCHMEDICAL — DESKTOP MEGA MENU
========================================================= */

.tm-header-main {
    position: relative;
}

.tm-header-main-inner {
    position: static;
}

.tm-mega-menu[hidden] {
    display: none !important;
}

.tm-mega-menu:not([hidden]) {
    display: block;
}

.tm-mega-menu {
    position: absolute;
    z-index: 999;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);

    width: 94vw;
    max-width: 1600px;

    max-height: calc(100vh - 180px);
    overflow-y: auto;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    color: #111;
}

.tm-mega-menu-inner {
    padding: 30px 44px 42px;
}

.tm-mega-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.tm-mega-menu-heading h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.tm-mega-menu-close {
    flex: 0 0 auto;
    padding: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111 !important;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.tm-mega-menu-close:hover,
.tm-mega-menu-close:focus,
.tm-mega-menu-close:active {
    background: transparent !important;
    color: #000 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none;
}

.tm-mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tm-mega-menu-column {
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid #eee;
}

.tm-mega-menu-column:first-child {
    padding-left: 0;
}

.tm-mega-menu-column:last-child {
    padding-right: 0;
    border-right: 0;
}

.tm-mega-category {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.tm-mega-category:last-child {
    margin-bottom: 0;
}

.tm-mega-category-heading {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.tm-mega-category-number {
    color: #79b777;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.tm-mega-category-title {
    color: #111 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none !important;
}

.tm-mega-category-title:hover {
    color: #79b777 !important;
}

.tm-mega-category-list {
    margin: 10px 0 0 36px;
    padding: 0;
    list-style: none;
}

.tm-mega-category-list li {
    position: relative;
    margin: 0;
    padding: 0 0 3px 12px;
    font-size: 13px;
    line-height: 1.5;
}

.tm-mega-category-list li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #66706a;
}

.tm-mega-category-list a {
    color: #66706a !important;
    text-decoration: none !important;
}

.tm-mega-category-list a:hover,
.tm-mega-category-more:hover {
    color: #79b777 !important;
}

.tm-mega-category-more {
    display: inline-block;
    margin: 8px 0 0 36px;
    color: #79b777 !important;
    font-size: 13px;
    text-decoration: none !important;
}

.tm-mega-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 44px;
    background: #edf4ee;
}

.tm-mega-menu-footer-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tm-mega-menu-footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #79b777;
    font-size: 22px;
}

.tm-mega-menu-footer-info strong {
    font-size: 15px;
    font-weight: 700;
}

.tm-mega-menu-footer-info p {
    margin: 4px 0 0;
    color: #66706a;
    font-size: 13px;
}

.tm-mega-menu-consultation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid #79b777;
    border-radius: 4px;
    background: #fff;
    color: #79b777 !important;
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
}

.tm-mega-menu-consultation:hover {
    background: #79b777;
    color: #fff !important;
}

/* Desktop menu only. Mobile menu will be developed separately. */
@media (max-width: 767px) {
    .tm-mega-menu {
        display: none !important;
    }
}





/* =========================================================
   TOUCHMEDICAL — MOBILE MENU
========================================================= */

/* На компьютере мобильное меню не отображается */
.tm-mobile-menu {
    display: none !important;
}

.tm-mobile-menu[hidden] {
    display: none !important;
}

@media (max-width: 767px) {

    /* Убираем лишний зазор под мобильной шапкой */
    .tm-header-main {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Открытое меню занимает область под шапкой */
    .tm-mobile-menu:not([hidden]) {
        display: flex !important;
        flex-direction: column;

        position: fixed;
        top: 59px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;

        width: 100%;
        max-height: calc(100vh - 59px);
        max-height: calc(100dvh - 59px);

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;

        padding: 0;
        margin: 0;

        background: #fff;
        color: #111;
        font-family: 'Manrope', sans-serif;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    /* Запрещаем прокрутку страницы под открытым меню */
    body.tm-mobile-menu-open {
        overflow: hidden !important;
    }

    .tm-mobile-menu-nav {
        flex: 0 0 auto;
        width: 100%;
        padding: 0 14px 22px;
    }

    /* Каталог */

    .tm-mobile-catalog {
        width: 100%;
    }

    .tm-mobile-catalog-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;

        width: 100%;
        min-height: 38px;
        padding: 0;

        color: #111 !important;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid #eee !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        font-family: 'Manrope', sans-serif;
        font-size: 16px;
        font-weight: 700;
        text-align: left;

        cursor: pointer;
    }

    .tm-mobile-catalog-toggle:hover,
    .tm-mobile-catalog-toggle:focus,
    .tm-mobile-catalog-toggle:active {
        color: #111 !important;
        background: transparent !important;
        border-color: #eee !important;
        box-shadow: none !important;
    }

    .tm-mobile-catalog-chevron {
        flex: 0 0 auto;
        color: #66706a;
        transition: transform 0.2s ease;
    }

    .tm-mobile-catalog-toggle[aria-expanded="true"]
    .tm-mobile-catalog-chevron {
        transform: rotate(180deg);
    }

    .tm-mobile-catalog-list[hidden] {
        display: none !important;
    }

    /* Категории */

    .tm-mobile-category {
        margin: 12px 0 15px;
        padding: 0;
    }

    .tm-mobile-category-heading {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

    /* Номер категории */
.tm-mobile-category-number {
    display: block;
    min-width: 24px;
    white-space: nowrap;

    color: #79b777;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

    .tm-mobile-category-title {
        color: #222 !important;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.5;
        text-decoration: none !important;
        overflow-wrap: anywhere;
    }

    .tm-mobile-category-title:hover {
        color: #79b777 !important;
    }

    /* Подкатегории */

    .tm-mobile-category-list {
        display: block;
        margin: 7px 0 0 5px;
        padding: 0;
        list-style: none;
    }

    .tm-mobile-category-list li {
        position: relative;
        margin: 0;
        padding: 0 0 2px 9px;

        font-size: 13px;
        font-weight: 400;
        line-height: 1.5;
    }

    .tm-mobile-category-list li::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 0;

        width: 3px;
        height: 3px;

        background: #66706a;
        border-radius: 50%;
    }

    .tm-mobile-category-list a {
        color: #66706a !important;
        text-decoration: none !important;
    }

    .tm-mobile-category-list a:hover {
        color: #79b777 !important;
    }

    /* Ссылка на весь каталог */

    .tm-mobile-catalog-all {
        display: inline-flex;
        align-items: center;
        gap: 5px;

        margin-top: 2px;

        color: #79b777 !important;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none !important;
    }

    /* Основные ссылки */

    .tm-mobile-main-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
        border-top: 1px solid #eee;
    }

    .tm-mobile-main-links a {
        display: block;
        padding: 11px 0;

        color: #111 !important;
        background: transparent !important;

        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
        text-decoration: none !important;
    }

    .tm-mobile-main-links a:hover {
        color: #79b777 !important;
    }

    /* Нижний блок консультации */

    .tm-mobile-menu-footer {
        display: flex;
        flex-direction: column;
        gap: 12px;

        width: 100%;
        margin-top: auto;
        padding: 14px;

        background: #edf4ee;
    }

    .tm-mobile-menu-footer-info {
        display: flex;
        align-items: flex-start;
        gap: 11px;
        min-width: 0;
    }

    .tm-mobile-menu-footer-icon {
        display: flex;
        align-items: center;
        justify-content: center;

        flex: 0 0 38px;
        width: 38px;
        height: 38px;

        border-radius: 50%;
        background: #fff;
    }

    .tm-mobile-menu-footer-icon img {
        display: block;
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .tm-mobile-menu-footer-info > div {
        min-width: 0;
    }

    .tm-mobile-menu-footer-info strong {
        display: block;
        color: #222;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.45;
    }

    .tm-mobile-menu-footer-info p {
        margin: 4px 0 0;
        color: #66706a;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.5;
    }

    .tm-mobile-menu-consultation {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;

        width: 100%;
        min-height: 36px;
        padding: 8px 10px;

        color: #79b777 !important;
        background: #fff !important;
        border: 1px solid #79b777;
        border-radius: 3px;

        font-size: 13px;
        font-weight: 500;
        text-align: center;
        text-decoration: none !important;
    }

    .tm-mobile-menu-consultation:hover {
        color: #fff !important;
        background: #79b777 !important;
    }
}


@media (max-width: 767px) {

    /* Убираем лишний разделитель между каталогом и ссылками */
    .tm-mobile-main-links {
        margin-top: 0 !important;
        border-top: none !important;
    }

}

.tm-client-category-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    padding-block: 12px;
}

.tm-client-category-nav a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.tm-client-category-nav a:hover,
.tm-client-category-nav a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .tm-client-category-nav { display: none; }
}

.tm-client-catalog-menu {
    position: relative;
}

.tm-client-catalog-menu summary {
    width: fit-content;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.tm-client-catalog-links {
    display: grid;
    gap: 4px;
    padding: 8px 12px;
}

.tm-client-catalog-links a {
    display: block;
    padding: 6px 0;
}

@media (min-width: 768px) {
    .tm-client-catalog-menu[open] {
        z-index: 20;
    }

    .tm-client-catalog-links {
        position: absolute;
        inset-inline-start: 0;
        width: min(360px, 75vw);
        max-height: 55vh;
        overflow-y: auto;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    }
}

@media (max-width: 767px) {
    .tm-client-catalog-menu {
        min-width: 0;
    }

    .tm-client-catalog-menu summary {
        min-height: 44px;
    }

    .tm-client-catalog-links {
        max-height: 45vh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .tm-client-catalog-links a {
        overflow-wrap: anywhere;
    }
}