/* Shared navigational type and controls for the WARMM storefront. */
:root {
    --ts-nav-ink: #152b49;
    --ts-nav-blue: #1453a5;
    --ts-nav-line: #d8e2ee;
    --ts-nav-text: robotoRegular, Roboto, Arial, sans-serif;
    --ts-nav-heading: robotoBold, Roboto, Arial, sans-serif;
    --ts-nav-expand-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23244971' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6m0-6-7 7M10 20H4v-6m0 6 7-7'/%3E%3C/svg%3E");
    --ts-nav-grid-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
}
html body .ts-home-categories__heading #ts-categories-title {
    font: 400 clamp(26px, 2.5vw, 40px)/1.12 var(--ts-nav-heading);
    letter-spacing: -.025em; color: var(--ts-nav-ink);
}
html body .ts-home-categories__heading > a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    color: var(--ts-nav-blue); font: 600 15px/1.3 var(--ts-nav-text);
}
.ts-home-categories__heading > a > span { display: none; }
.ts-home-categories__heading > a::after,
.ts-mc-row::after, .ts-mc-all::after, .ts-mc-back::before,
html.ts-mc-ready body #catalogSlideButton::after,
.ts-product-sections-button::after, #breadcrumbs .ts-mobile-parent a::before {
    content: ''; display: inline-block; box-sizing: border-box; width: 8px; height: 8px;
    border: solid currentColor; border-width: 1.7px 1.7px 0 0; transform: rotate(45deg);
}
html.ts-product-detail #pictureContainer a.zoom::after {
    content: 'Увеличить'; color: #233f60; border-color: #c5d4e5; padding: 7px 31px 7px 10px;
    font: 500 13px/1.35 var(--ts-nav-text);
    background: #fff var(--ts-nav-expand-icon) no-repeat right 8px center / 16px 16px;
}
html.ts-stable-ui #upButton a::before {
    content: ''; width: 21px; height: 21px; display: inline-block;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V4m-7 7 7-7 7 7'/%3E%3C/svg%3E");
}
.ts-mc-bottom, .ts-product-sections-button { display: none; }
dialog.ts-mobile-catalog:not([open]) { display: none; }
.ts-mobile-catalog, .ts-mobile-catalog *, .ts-product-sections-button { box-sizing: border-box; }
html.ts-mc-open, html.ts-mc-open body { overflow: hidden; }
dialog.ts-mobile-catalog[open] {
    position: fixed; inset: 0; margin: auto auto 0; width: min(100%, 540px);
    height: min(680px, 87vh); height: min(680px, 87dvh); max-width: 100%; max-height: 100%;
    display: flex; flex-direction: column; padding: 0; overflow: hidden;
    border: 0; border-radius: 20px 20px 0 0; color: var(--ts-nav-ink); background: white;
    font: 400 16px/1.45 var(--ts-nav-text); text-align: left;
}
.ts-mobile-catalog::backdrop { background: rgb(5 22 48 / 54%); }
.ts-mc-head {
    display: flex; align-items: center; flex: none; min-height: 54px;
    padding: 5px 12px 0; background: white;
}
.ts-mobile-catalog button, .ts-mobile-catalog a {
    font: inherit; color: inherit; text-decoration: none; text-transform: none;
    -webkit-tap-highlight-color: transparent;
}
.ts-mc-head button {
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; padding: 0 9px; border: 0;
    border-radius: 8px; background: none; color: #38546e; font-size: 14px;
}
.ts-mc-head .ts-mc-close { position: relative; margin-left: auto; }
.ts-mc-close::before, .ts-mc-close::after {
    content: ''; position: absolute; width: 18px; height: 2px; border-radius: 1px;
    background: currentColor; transform: rotate(45deg);
}
.ts-mc-close::after { transform: rotate(-45deg); }
.ts-mc-back { gap: 8px; }
.ts-mc-back::before, #breadcrumbs .ts-mobile-parent a::before { transform: rotate(-135deg); }
.ts-mc-head [hidden] { display: none; }
.ts-mc-content {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 1px 22px max(24px, env(safe-area-inset-bottom));
}
dialog.ts-mobile-catalog .ts-mc-title {
    margin: 0 0 20px; color: var(--ts-nav-ink); font: 400 clamp(25px, 5.8vw, 33px)/1.15 var(--ts-nav-heading);
    letter-spacing: -.025em; overflow-wrap: break-word; outline: none;
}
.ts-mc-list { display: block; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ts-nav-line); }
.ts-mc-list > li { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ts-nav-line); }
.ts-mobile-catalog .ts-mc-row {
    display: flex; align-items: center; width: 100%; min-height: 58px; padding: 10px 7px 10px 0;
    gap: 13px; background: white; border: 0; border-radius: 0; cursor: pointer;
    color: var(--ts-nav-ink); text-align: left; font: 500 16px/1.4 var(--ts-nav-text);
}
.ts-mc-icon { display: block; width: 38px; height: 38px; flex: 0 0 38px; object-fit: contain; }
.ts-mc-label { flex: 1; min-width: 0; overflow-wrap: break-word; }
.ts-mc-row::after { flex: none; color: #5e7795; }
.ts-mobile-catalog .ts-mc-all {
    display: flex; justify-content: space-between; align-items: center; min-height: 48px;
    margin-top: 20px; padding: 10px 17px; background: #eaf2fc; border-radius: 10px;
    color: var(--ts-nav-blue); font: 600 15px/1.35 var(--ts-nav-text);
}
.ts-mobile-catalog :is(button, a):focus-visible, #catalogSlideButton:focus-visible,
.ts-mc-bottom:focus-visible, .ts-product-sections-button:focus-visible {
    outline: 2px solid #2770cd; outline-offset: -2px;
}
.ts-mobile-catalog .ts-mc-row:active, .ts-mc-head button:active { background: #f0f5fc; }
@media (hover: hover) {
    .ts-mc-row:hover, .ts-mc-head button:hover { background: #f0f5fc; }
    .ts-mobile-catalog .ts-mc-all:hover { background: #dceafd; }
}
@media (min-width: 601px) {
    dialog.ts-mobile-catalog[open] { inset: 0 auto 0 0; margin: 0; width: min(440px, 85vw); height: 100%; border-radius: 0 16px 16px 0; }
}
@media (max-width: 1024px) {
    html.ts-mc-ready body #mainMenu, html.ts-mc-ready body .ts-primary-categories { display: none !important; }
    html.ts-mc-ready body #catalogSlideButton {
        box-sizing: border-box; display: flex; align-items: center; width: 100%; min-height: 48px; height: auto;
        padding: 10px max(16px, env(safe-area-inset-left)); gap: 12px; line-height: 1.35; text-decoration: none;
        font-family: var(--ts-nav-heading); font-weight: 400; font-size: 16px;
        background: #f1f5fb !important; color: var(--ts-nav-ink) !important;
    }
    html.ts-mc-ready body #catalogSlideButton img { width: 20px; height: 20px; object-fit: contain; }
    html.ts-mc-ready body #catalogSlideButton::after { margin-left: auto; color: var(--ts-nav-blue); }
}
@media (max-width: 700px) {
    html body #breadcrumbs:has(.ts-mobile-parent) {
        height: auto; min-height: 44px; overflow: visible; margin: 4px 0; padding-block: 0;
    }
    html body #breadcrumbs:has(.ts-mobile-parent) ul { display: block; overflow: visible; white-space: normal; height: auto; padding: 0; }
    html body #breadcrumbs:has(.ts-mobile-parent) li:not(.ts-mobile-parent) { display: none; }
    html body #breadcrumbs li.ts-mobile-parent { display: block; margin: 0; padding: 0; }
    html body #breadcrumbs li.ts-mobile-parent a {
        display: inline-flex; align-items: center; gap: 9px; max-width: 100%; min-height: 44px;
        font: 500 14px/1.35 var(--ts-nav-text); text-decoration: none; white-space: normal; color: #325778;
    }
    #breadcrumbs .ts-mobile-parent a::before { flex: none; width: 7px; height: 7px; margin-left: 2px; }
    html body .ts-detail-eyebrow { display: none; }
    html.ts-product-detail #elementSmallNavigation.ts-product-sections-ready { overflow: visible; margin: 0 0 12px; }
    .ts-product-sections-button {
        width: 100%; min-height: 44px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between;
        cursor: pointer; border-radius: 9px; border: 1px solid #c9d7e6; background: white;
        color: var(--ts-nav-ink); font: 500 15px/1.35 var(--ts-nav-text);
    }
    .ts-product-sections-button::after { transform: rotate(135deg); margin: -4px 2px 0; }
    .ts-product-sections-button[aria-expanded=true]::after { transform: rotate(-45deg); margin-top: 4px; }
    html.ts-product-detail #elementSmallNavigation.ts-product-sections-ready .tabs { display: none; }
    html.ts-product-detail #elementSmallNavigation.ts-sections-open .tabs {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-top: 6px; gap: 5px;
    }
    html.ts-product-detail #elementSmallNavigation.ts-sections-open .tab:not(.disabled) a {
        display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px; font-size: 13px; white-space: normal;
    }
    html body #catalogLine :is(.dropDownSelected, .filterButton, .filter), html body #nextSection .title {
        min-height: 44px; box-sizing: border-box; font-family: var(--ts-nav-text);
    }
    html body #footerLine:has(.ts-mc-bottom) {
        height: auto !important; line-height: normal; background: #0b2443;
        padding-bottom: env(safe-area-inset-bottom); border: 0;
    }
    html body #footerLine:has(.ts-mc-bottom) .limiter { height: auto; width: 100%; padding: 0; display: block; }
    html body #footerLine:has(.ts-mc-bottom) .limiter > .col:first-child { display: none; }
    html body #footerLine .limiter > .col:has(.ts-mc-bottom) {
        float: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; padding: 0;
    }
    html body #footerLine:has(.ts-mc-bottom) #flushFooterCart { display: contents; }
    html body #footerLine:has(.ts-mc-bottom) #flushFooterCart > .item { display: block !important; width: auto; height: auto; margin: 0; padding: 0; float: none; }
    html body #footerLine:has(.ts-mc-bottom) :is(.ts-mc-bottom, #flushFooterCart a) {
        display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        position: relative; box-sizing: border-box; width: 100%; height: 54px; padding: 3px 0;
        background: transparent; border: 0; color: #edf4ff; text-decoration: none; text-transform: none;
        font: 500 11px/1.2 var(--ts-nav-text); cursor: pointer;
    }
    html body #footerLine .ts-mc-bottom::before {
        content: ''; display: block; width: 21px; height: 21px; background: center / contain no-repeat var(--ts-nav-grid-icon);
    }
    html body #footerLine:has(.ts-mc-bottom) #flushFooterCart .textLabel { display: inline; font: inherit; }
    html body #footerLine:has(.ts-mc-bottom) #flushFooterCart .icon {
        position: static; flex: none; display: block; width: 21px; height: 21px; margin: 0;
        opacity: 1; background-size: contain; background-position: center; background-repeat: no-repeat;
    }
    html body #footerLine:has(.ts-mc-bottom) #flushFooterCart .mark { display: none; }
    html body #footerLine:has(.ts-mc-bottom) #flushFooterCart .ts-mc-has-items .mark {
        display: block; position: absolute; top: 1px; left: 55%; padding: 1px 4px;
        min-width: 13px; width: auto; height: auto; border-radius: 8px; background: #e7f0ff; color: #103a6b;
        font: 600 10px/1.2 var(--ts-nav-text);
    }
}
.ts-section-toggle { display: none; }
html body .ts-home-categories .ts-category-card h3 {
    font-family: var(--ts-nav-heading); font-weight: 400; letter-spacing: -.02em;
}
@media (max-width: 600px) {
    dialog.ts-mobile-catalog[open] {
        inset: auto 0 0; height: auto; max-height: 87vh; max-height: min(87dvh, calc(100% - env(safe-area-inset-top)));
    }
    .ts-mc-content { flex: 0 1 auto; }
}
@media (max-width: 700px) {
    html body #subHeader8, html body #subHeader8 > .limiter { height: 146px !important; }
    html body #subHeader8 .subContainer,
    html body #subHeader8 > .limiter > .subContainer > .subContainerColumn:first-child { height: 94px !important; }
    html body #subHeader8 #logo { height: 78px; line-height: 78px; }
    html body #subHeader8 .telephoneContainer { margin-top: -12px; }
    html body #subHeader8 .ts-header-social { top: 65px; bottom: auto; }
    html body #subHeader8 .subContainerColumn.menuContainer,
    html body #subHeader8 .subContainerColumn:last-child { top: 94px !important; height: 52px !important; }
    html body #subHeader8 :is(.topToolsContainer, #subMenu),
    html body #subHeader8 #subMenu > .removedItemsContainer > .removedItemsLink { height: 52px; line-height: 52px; }
    html body #subMenu .removedItemsList { top: 52px; }
    html body #subHeader8 .ts-account-guest .status { display: none; }
    html body #subHeader8 :is(#openSearch, .topAuthIcon, .countLink) { min-height: 44px; }
    html body #nextSection.ts-section-picker > .title,
    html body #nextSection.ts-section-picker:not(.ts-section-picker-open) > ul { display: none !important; }
    html body #nextSection.ts-section-picker-open > ul { display: block !important; }
    .ts-section-toggle {
        display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px;
        padding: 10px 16px; border: 0; background: #edf3fb; color: var(--ts-nav-ink);
        text-align: left; font: 600 15px/1.4 var(--ts-nav-text); cursor: pointer;
    }
    .ts-section-toggle::after {
        content: ''; width: 7px; height: 7px; margin-right: 4px; border: solid var(--ts-nav-blue);
        border-width: 0 1.7px 1.7px 0; transform: rotate(45deg);
    }
    .ts-section-toggle[aria-expanded=true]::after { transform: rotate(225deg); }
    .ts-section-toggle:focus-visible { outline: 2px solid #2468bb; outline-offset: -3px; }
    html body #catalogLine a.oSmartFilter {
        display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
        min-height: 44px; padding-block: 4px; font-family: var(--ts-nav-text);
    }
    html body #footerLine:has(.ts-mc-bottom) #flushFooterCart .compare .icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edf4ff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 20h16M6 16v-5m6 5V4m6 12V8'/%3E%3C/svg%3E");
    }
    html body #footerLine:has(.ts-mc-bottom) #flushFooterCart .wishlist .icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edf4ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-8.5-5.9-8.5-11.1a4.5 4.5 0 0 1 8.5-2.1 4.5 4.5 0 0 1 8.5 2.1C20.5 14.1 12 20 12 20Z'/%3E%3C/svg%3E");
    }
    html body #footerLine:has(.ts-mc-bottom) #flushFooterCart .cart .icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edf4ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5h16l-1 13H5L4 7.5ZM8 8V6a4 4 0 1 1 8 0v2'/%3E%3C/svg%3E");
    }
}
@media (max-width: 1024px) {
    html.ts-mc-ready body #catalogSlideButton img { display: none; }
    html.ts-mc-ready body #catalogSlideButton::before {
        content: ''; flex: 0 0 19px; height: 19px; background: var(--ts-nav-blue);
        -webkit-mask: var(--ts-nav-grid-icon) center / contain no-repeat;
        mask: var(--ts-nav-grid-icon) center / contain no-repeat;
    }
}
@media (max-width: 700px) {
    html body #breadcrumbs:has(.ts-mobile-parent)::after,
    html body #breadcrumbs:has(.ts-mobile-parent) ul::after { display: none; }
    html body .sectionTopDescription > a:only-child {
        display: inline-flex; align-items: center; min-height: 44px; color: var(--ts-nav-blue);
        font: 500 14px/1.4 var(--ts-nav-text); text-underline-offset: 3px;
    }
}
/* DressCode nests the search panel inside the narrow tools column. Give the opened panel its own viewport width. */
@media (max-width: 700px) {
    html body #subHeader8 #topSearch3 {
        position: fixed; inset: 0 0 auto; width: auto; max-width: 100%; z-index: 1100;
        box-sizing: border-box; padding-top: env(safe-area-inset-top);
        background: white; color: var(--ts-nav-ink);
    }
    html body #topSearch3 > .limiter, html body #topSearch3 #topSearchForm,
    html body #topSearch3 .searchContainerInner {
        box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; height: auto;
        line-height: normal; margin: 0; padding: 0;
    }
    html body #topSearch3 > .limiter { padding: 10px max(12px, env(safe-area-inset-left)); }
    html body #topSearch3 #topSearchForm { display: block; }
    html body #topSearch3 .searchContainer {
        display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: center; gap: 8px;
        width: 100%; min-width: 0; height: auto;
    }
    html body #topSearch3 .searchColumn { display: block; width: auto; min-width: 0; margin: 0; padding: 0; }
    html body #topSearch3 #searchQuery {
        box-sizing: border-box; width: 100%; min-width: 0; height: 46px;
        padding: 0 42px 0 12px; border: 1px solid #bdcee2; border-radius: 9px;
        font: 400 16px/1.4 var(--ts-nav-text); color: var(--ts-nav-ink); background: #f6f8fc;
    }
    html body #topSearch3 #topSeachCloseForm {
        position: absolute; inset: 0 0 0 auto; width: 44px; height: 46px; padding: 0; margin: 0;
        overflow: hidden; white-space: nowrap; text-indent: -9999px;
        background: center / 19px 19px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338506c' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12m0-12L6 18'/%3E%3C/svg%3E");
    }
    html body #topSearch3 #goSearch {
        width: 46px; height: 46px; padding: 0; margin: 0; border: 0; border-radius: 9px; font-size: 0;
        background: #1453a5 center / 21px 21px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
    }
    html body #topSearch3 #searchResult {
        box-sizing: border-box; max-width: 100%; max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px); overflow-y: auto;
    }
    html.ts-mc-ready :is(#catalogSlideButton, .ts-mobile-catalog button, .ts-mobile-catalog a, #flushFooterCart a, .ts-mc-bottom, #subMenu a, #topSearch3 input, #topSeachCloseForm) { touch-action: manipulation; }
}
@media (max-width: 700px) {
    html body #subHeader8 #topSearch3 { height: auto !important; min-height: 0; line-height: normal; }
    html body #subHeader8 #topSearch3 #topSearchForm .searchContainerInner {
        box-sizing: border-box; width: 100%; margin: 0; padding: 0;
    }
    html body #subHeader8 #topSearch3 #topSearchForm .searchColumn {
        position: relative; box-sizing: border-box; width: 100%; height: 46px;
        margin: 0; padding: 0; float: none; line-height: normal;
    }
    html body #subHeader8 #topSearch3 #topSearchForm :is(#searchQuery, #goSearch) {
        display: block; position: static; float: none; margin: 0; transform: none;
    }
    html body #subHeader8 #topSearch3 #topSeachCloseForm {
        font-size: 0; line-height: 0; text-indent: 0; color: transparent; text-shadow: none;
    }
}
