/**
 * Copyright (c) Storetown Media. All rights reserved.
 * See LICENSE for license details.
 *
 * STM Layered Navigation: quiet, typographic filter styling on top of the theme's own block styles.
 */
.stm-ln {
    --stm-ln-accent: #1f1f1f;
    --stm-ln-line: #d9d9d9;
    --stm-ln-muted: #6f6f6f;
}

.stm-ln .stm-ln-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stm-ln .stm-ln-items.stm-ln-scroll {
    overflow-y: auto;
    padding-right: 4px;
}

.stm-ln .stm-ln-item {
    margin: 0;
    padding: 0;
}

.stm-ln .stm-ln-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: inherit;
    text-decoration: none;
    line-height: 1.4;
}

.stm-ln .stm-ln-link:hover .stm-ln-label,
.stm-ln .stm-ln-link:focus-visible .stm-ln-label {
    text-decoration: underline;
}

.stm-ln .stm-ln-link:focus-visible {
    outline: 2px solid var(--stm-ln-accent);
    outline-offset: 2px;
}

.stm-ln .stm-ln-check {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border: 1px solid var(--stm-ln-line);
    background: #fff;
    position: relative;
}

.stm-ln .stm-ln-selected .stm-ln-check {
    border-color: var(--stm-ln-accent);
    background: var(--stm-ln-accent);
}

.stm-ln .stm-ln-selected .stm-ln-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.stm-ln .stm-ln-selected .stm-ln-label {
    font-weight: 600;
}

.stm-ln .stm-ln-pending .stm-ln-check {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--stm-ln-accent);
}

.stm-ln .stm-ln-disabled .stm-ln-link {
    color: var(--stm-ln-muted);
    cursor: default;
}

.stm-ln .stm-ln-disabled .stm-ln-check {
    border-style: dashed;
}

.stm-ln .stm-ln-count {
    margin-left: auto;
    color: var(--stm-ln-muted);
    font-size: 0.9em;
    white-space: nowrap;
}

.stm-ln .stm-ln-count .filter-count-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.stm-ln .stm-ln-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Swatches */
.stm-ln .stm-ln-mode-images .stm-ln-items,
.stm-ln .stm-ln-mode-text_swatch .stm-ln-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stm-ln .stm-ln-mode-images .stm-ln-link,
.stm-ln .stm-ln-mode-text_swatch .stm-ln-link {
    padding: 0;
}

.stm-ln .stm-ln-mode-images .stm-ln-count,
.stm-ln .stm-ln-mode-text_swatch .stm-ln-count {
    display: none;
}

.stm-ln .stm-ln-swatch {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid var(--stm-ln-line);
    background-size: cover;
    background-position: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--stm-ln-muted);
    box-sizing: border-box;
}

.stm-ln .stm-ln-selected .stm-ln-swatch {
    outline: 2px solid var(--stm-ln-accent);
    outline-offset: 1px;
}

.stm-ln .stm-ln-disabled .stm-ln-swatch {
    opacity: 0.35;
}

.stm-ln .stm-ln-text-swatch {
    display: inline-block;
    min-width: 32px;
    padding: 4px 8px;
    border: 1px solid var(--stm-ln-line);
    text-align: center;
    line-height: 1.2;
}

.stm-ln .stm-ln-selected .stm-ln-text-swatch {
    border-color: var(--stm-ln-accent);
    background: var(--stm-ln-accent);
    color: #fff;
}

/* Search box, show more */
.stm-ln .stm-ln-search {
    margin: 0 0 8px;
}

.stm-ln .stm-ln-search-input {
    width: 100%;
    height: 32px;
    border: 1px solid var(--stm-ln-line);
    padding: 0 8px;
}

.stm-ln .stm-ln-more {
    background: none;
    border: 0;
    padding: 6px 0 0;
    margin: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.stm-ln .stm-ln-empty {
    margin: 4px 0 0;
    color: var(--stm-ln-muted);
}

.stm-ln .stm-ln-applied-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    vertical-align: middle;
    background: var(--stm-ln-accent);
}

/* Chips of applied filters. Luma switches .filter-current .items to display:block once the mobile filter block
   is opened (.filter.active); the longer selectors keep the chips in a row there as well. */
.stm-ln .stm-ln-chips,
.stm-ln.active .filter-current .stm-ln-chips,
.stm-ln .filter-current .stm-ln-chips {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stm-ln .stm-ln-chip,
.stm-ln .filter-current .stm-ln-chip {
    margin: 0;
    padding: 0;
    display: block;
}

.stm-ln .stm-ln-chip-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid var(--stm-ln-line);
    color: inherit;
    text-decoration: none;
    line-height: 1.2;
}

.stm-ln .stm-ln-chip-remove:hover {
    border-color: var(--stm-ln-accent);
    text-decoration: none;
}

.stm-ln .stm-ln-chip .filter-label {
    color: var(--stm-ln-muted);
    font-size: 0.9em;
}

.stm-ln .stm-ln-chip .filter-label::after {
    content: ":";
}

.stm-ln .stm-ln-chip-x {
    font-size: 1.1em;
    line-height: 1;
}

/* Apply bar for the button mode */
.stm-ln .stm-ln-apply {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.stm-ln .stm-ln-apply[hidden] {
    display: none;
}

/* Horizontal block above the product list */
.stm-ln-top {
    margin: 0 0 16px;
}

.stm-ln-top .stm-ln-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    border-bottom: 1px solid var(--stm-ln-line);
    padding-bottom: 8px;
}

.stm-ln-top .filter-options-item {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
}

.stm-ln-top .filter-options-title {
    cursor: pointer;
    padding: 6px 20px 6px 0;
    margin: 0;
    font-weight: 600;
}

.stm-ln-top .filter-options-title::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 12px;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

.stm-ln-top .filter-options-item.active .filter-options-title::after {
    transform: rotate(-135deg);
    top: 15px;
}

.stm-ln-top .filter-options-content {
    position: absolute;
    z-index: 20;
    left: 0;
    top: 100%;
    min-width: 240px;
    max-height: 320px;
    overflow: auto;
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--stm-ln-line);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
    .stm-ln-top .filter-options-content {
        position: static;
        box-shadow: none;
        min-width: 0;
    }
}

/* Price and decimal ranges: histogram, two-handle slider, from-to fields */
.stm-ln .stm-ln-range {
    padding: 4px 0 0;
}

.stm-ln .stm-ln-histogram {
    position: relative;
    height: 36px;
    margin: 0 9px 2px;
}

.stm-ln .stm-ln-bar {
    position: absolute;
    bottom: 0;
    background: var(--stm-ln-line);
    min-height: 1px;
}

.stm-ln .stm-ln-slider {
    position: relative;
    height: 18px;
    margin: 0 0 4px;
}

.stm-ln .stm-ln-slider::before {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    top: 8px;
    height: 2px;
    background: var(--stm-ln-line);
}

.stm-ln .stm-ln-slider-fill {
    position: absolute;
    top: 8px;
    height: 2px;
    margin: 0 9px;
    background: var(--stm-ln-accent);
    right: auto;
    max-width: calc(100% - 18px);
}

.stm-ln .stm-ln-slider input[type="range"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 18px;
    margin: 0;
    padding: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.stm-ln .stm-ln-slider input[type="range"]:focus {
    outline: none;
}

.stm-ln .stm-ln-slider input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    height: 18px;
}

.stm-ln .stm-ln-slider input[type="range"]::-moz-range-track {
    background: transparent;
    height: 18px;
}

.stm-ln .stm-ln-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border: 2px solid var(--stm-ln-accent);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.stm-ln .stm-ln-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border: 2px solid var(--stm-ln-accent);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.stm-ln .stm-ln-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.stm-ln .stm-ln-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
    margin: 0 0 6px;
}

.stm-ln .stm-ln-from-to {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stm-ln .stm-ln-from-to .input-text {
    width: 0;
    flex: 1 1 0;
    min-width: 56px;
    height: 32px;
    border: 1px solid var(--stm-ln-line);
    padding: 0 6px;
}

.stm-ln .stm-ln-range-dash {
    color: var(--stm-ln-muted);
}

.stm-ln .stm-ln-range-go {
    height: 32px;
    padding: 0 10px;
}

/* Category tree */
.stm-ln .stm-ln-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stm-ln .stm-ln-tree .stm-ln-tree {
    padding-left: 18px;
}

.stm-ln .stm-ln-tree-node {
    margin: 0;
    padding: 0;
}

.stm-ln .stm-ln-tree-row {
    display: flex;
    align-items: center;
}

.stm-ln .stm-ln-tree-row .stm-ln-link {
    flex: 1 1 auto;
}

.stm-ln .stm-ln-tree-toggle,
.stm-ln .stm-ln-tree-spacer {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-right: 2px;
    border: 0;
    padding: 0;
    background: none;
    position: relative;
    cursor: pointer;
}

.stm-ln .stm-ln-tree-toggle::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(-45deg);
    transition: transform 0.15s;
}

.stm-ln .stm-ln-tree-toggle[aria-expanded="true"]::before {
    transform: rotate(45deg);
    top: 2px;
}

.stm-ln .stm-ln-tree-node.stm-ln-current > .stm-ln-tree-row .stm-ln-label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* AJAX loading */
/* the filters are locked too while a request runs: a second click used to drop the first selection */
body.stm-ln-loading .stm-ln {
    pointer-events: none;
}
body.stm-ln-loading #stm-ln-products {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s;
}

/* Mobile filter sheet */
.stm-ln-sheet-open {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid #1f1f1f;
    background: #fff;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.stm-ln-sheet-open[hidden] {
    display: none;
}

.stm-ln-sheet {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.stm-ln-sheet[hidden] {
    display: none;
}

.stm-ln-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #d9d9d9;
    font-size: 1.1em;
}

.stm-ln-sheet-close {
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}

.stm-ln-sheet-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px 16px 24px;
    -webkit-overflow-scrolling: touch;
}

.stm-ln-sheet-foot {
    padding: 12px 16px;
    border-top: 1px solid #d9d9d9;
    background: #fff;
}

.stm-ln-sheet-foot .action {
    width: 100%;
}

body.stm-ln-sheet-active {
    overflow: hidden;
}

/* Inside the sheet Luma's own mobile overlay (fixed title, subtitle and option list) is switched off. */
.stm-ln-sheet .stm-ln-in-sheet .filter-title {
    display: none;
}

.stm-ln-sheet .stm-ln-in-sheet .filter-content,
.stm-ln-sheet .stm-ln-in-sheet .filter-options,
.stm-ln-sheet .stm-ln-in-sheet .filter-subtitle,
.stm-ln-sheet .stm-ln-in-sheet .filter-current,
.stm-ln-sheet .stm-ln-in-sheet .filter-current .items,
.stm-ln-sheet .stm-ln-in-sheet .filter-actions {
    display: block;
    position: static;
    height: auto;
    overflow: visible;
    padding: 0;
    margin: 0 0 8px;
    box-shadow: none;
    border: 0;
    z-index: auto;
}

.stm-ln-sheet .stm-ln-in-sheet .filter-subtitle {
    font-size: 0.95em;
    color: #6f6f6f;
    margin: 12px 0 4px;
}

.stm-ln-sheet .stm-ln-in-sheet .stm-ln-chips {
    display: flex;
}

/* Page header of brand and landing pages, option texts */
.stm-ln-page-header {
    margin: 0 0 20px;
}

.stm-ln-page-header-bottom {
    margin: 24px 0 0;
}

.stm-ln-page-logo img {
    max-height: 80px;
    width: auto;
    margin: 0 0 12px;
}

.stm-ln-page-image img {
    max-width: 100%;
    height: auto;
    margin: 0 0 12px;
}

.stm-ln-page-description {
    max-width: 72ch;
    line-height: 1.55;
}

.stm-ln-gpsr {
    margin: 20px 0 0;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    max-width: 72ch;
}

.stm-ln-gpsr-title {
    margin: 0 0 8px;
    font-size: 1em;
    font-weight: 600;
}

.stm-ln-gpsr dl {
    margin: 0;
}

.stm-ln-gpsr dt {
    font-weight: 600;
    margin: 6px 0 2px;
}

.stm-ln-gpsr dd {
    margin: 0;
}

/* Product page brand */
.stm-ln-product-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.stm-ln-product-brand-logo img {
    display: block;
    width: auto;
    height: auto;
}

.stm-ln-product-brand-title {
    font-weight: 600;
    color: inherit;
}

.stm-ln-product-brand-text {
    flex-basis: 100%;
    color: #555;
}

.stm-ln-listing-brand img {
    max-height: 28px;
    width: auto;
    margin: 0 0 4px;
}

/* More from this brand */
.stm-ln-more-from-brand .block-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.stm-ln-more-all {
    font-size: 0.95em;
}

/* All brands page */
.stm-ln-brands-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
}

.stm-ln-brands-letters {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.stm-ln-brands-letters li {
    margin: 0;
}

.stm-ln-letter {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.stm-ln-letter-active {
    border-color: #1f1f1f;
    background: #1f1f1f;
    color: #fff;
}

.stm-ln-brands-search {
    width: 240px;
    max-width: 100%;
    height: 32px;
    border: 1px solid #d9d9d9;
    padding: 0 8px;
}

.stm-ln-brands-group[hidden] {
    display: none;
}

.stm-ln-brands-letter-title {
    font-size: 1.1em;
    margin: 20px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #d9d9d9;
}

.stm-ln-brands-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--stm-ln-columns, 4), minmax(0, 1fr));
    gap: 12px 20px;
}

.stm-ln-brands-item {
    margin: 0;
}

.stm-ln-brands-item[hidden] {
    display: none;
}

.stm-ln-brands-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.stm-ln-brands-link:hover .stm-ln-brands-name {
    text-decoration: underline;
}

.stm-ln-brands-logo {
    flex: 0 0 auto;
    display: block;
}

.stm-ln-brands-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.stm-ln-brands-count {
    color: #6f6f6f;
    font-size: 0.9em;
}

@media (max-width: 767px) {
    .stm-ln-brands-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Brand slider widget */
.stm-ln-brand-slider {
    margin: 0 auto 24px;
}

.stm-ln-brand-slider-title {
    font-size: 1.2em;
    margin: 0 0 12px;
}

.stm-ln-brand-slider-viewport {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stm-ln-brand-slider-track {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex: 1 1 auto;
}

.stm-ln-brand-slider-track::-webkit-scrollbar {
    display: none;
}

.stm-ln-brand-slide {
    flex: 0 0 calc((100% - (var(--stm-ln-visible, 6) - 1) * 16px) / var(--stm-ln-visible, 6));
    scroll-snap-align: start;
    margin: 0;
    text-align: center;
}

.stm-ln-brand-slide-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.stm-ln-brand-slide img {
    max-width: 100%;
    width: var(--stm-ln-logo, 140px);
    height: auto;
    display: inline-block;
}

.stm-ln-brand-slide-label {
    display: block;
    margin-top: 6px;
    font-size: 0.9em;
}

.stm-ln-brand-slider-arrow {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid #d9d9d9;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.stm-ln-brand-slider-arrow::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 12px;
    width: 8px;
    height: 8px;
    border: solid #1f1f1f;
    border-width: 0 1px 1px 0;
    transform: rotate(-45deg);
}

.stm-ln-brand-slider-prev::before {
    transform: rotate(135deg);
    left: 13px;
}

.stm-ln-brand-slider-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 767px) {
    .stm-ln-brand-slide {
        flex-basis: calc((100% - 16px) / 2);
    }
}

/* Brands dropdown in the top menu */
.stm-ln-menu-brands {
    columns: 2;
    column-gap: 16px;
    min-width: 320px;
}

.stm-ln-menu-brand {
    break-inside: avoid;
}

.stm-ln-menu-brand a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stm-ln-menu-logo {
    width: 48px;
    height: auto;
}

/* Brand info widget */
.stm-ln-brand-info {
    margin: 0 0 16px;
}

.stm-ln-brand-info-logo img {
    max-height: 60px;
    width: auto;
    margin: 0 0 8px;
}

/* Load more / infinite scroll: the bottom pager stays in the markup for crawlers, shoppers get the button */
.stm-ln-load-more { margin: 24px 0 32px; text-align: center; }
.stm-ln-load-more-status { margin: 0 0 12px; color: #6b6b6b; font-size: 1.3rem; }
.stm-ln-load-more-button { min-width: 220px; }
body.stm-ln-has-load-more #stm-ln-products .toolbar-products:last-child .pages { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.stm-ln-has-load-more #stm-ln-products .toolbar-products:last-child .pages a:focus { position: static; width: auto; height: auto; clip: auto; }

/* Saved filters */
.stm-ln-save { margin-top: 12px; }
.stm-ln-save-open { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: 1.3rem; }
.stm-ln-save-form { display: flex; gap: 8px; margin-top: 8px; }
.stm-ln-save-form .input-text { flex: 1 1 auto; min-width: 0; }
.stm-ln-save-message { margin: 8px 0 0; font-size: 1.3rem; }
.stm-ln-saved-table .col.actions { white-space: nowrap; }
.stm-ln-saved-table .col.actions form { display: inline; }
.stm-ln-saved-table .col.actions .action { margin-right: 12px; }
.stm-ln-saved-table .col.actions button.action { background: none; border: 0; padding: 0; color: #1979c3; cursor: pointer; }
.stm-ln-saved-table .col.actions button.action:hover { text-decoration: underline; }
.stm-ln-saved-intro { max-width: 70ch; }

/* Zero results: which filter to release */
.stm-ln-zero {
    margin: 0 0 24px;
    padding: 16px 20px;
    border: 1px solid #d6d6d6;
    border-left: 3px solid #1a1a1a;
    background: #fafafa;
}

.stm-ln-zero-title {
    margin: 0 0 10px;
    font-weight: 600;
}

.stm-ln-zero-best {
    margin: 0 0 10px;
}

.stm-ln-zero-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stm-ln-zero-list li {
    margin: 0 0 4px;
}

.stm-ln-zero-count,
.stm-ln-zero-none {
    color: #6b6b6b;
}

.stm-ln-zero-count {
    margin-left: 8px;
}

.stm-ln-zero-link:not(.action) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Category tree: images */
.stm-ln .stm-ln-tree-image {
    width: var(--stm-ln-tree-image, 40px);
    height: auto;
    margin-right: 8px;
    border-radius: 2px;
    flex: 0 0 auto;
    vertical-align: middle;
}

.stm-ln .stm-ln-tree-display-images .stm-ln-tree-row .stm-ln-link,
.stm-ln .stm-ln-tree-display-both .stm-ln-tree-row .stm-ln-link {
    display: flex;
    align-items: center;
}

/* Category tree: fly-out (desktop) */
.stm-ln .stm-ln-tree-flyout .stm-ln-tree-children {
    display: none;
}

.stm-ln .stm-ln-tree-flyout .stm-ln-tree-node.stm-ln-open > .stm-ln-tree-children {
    display: block;
}

@media (min-width: 768px) {
    .stm-ln .stm-ln-tree-flyout .stm-ln-tree-node {
        position: relative;
    }

    .stm-ln .stm-ln-tree-flyout .stm-ln-tree-children,
    .stm-ln .stm-ln-tree-flyout .stm-ln-tree-node.stm-ln-open > .stm-ln-tree-children {
        display: none;
        position: absolute;
        left: 100%;
        top: -9px;
        z-index: 30;
        min-width: 220px;
        padding: 8px 12px;
        background: #fff;
        border: 1px solid #d6d6d6;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    .stm-ln .stm-ln-tree-flyout .stm-ln-tree-children .stm-ln-tree {
        padding-left: 0;
    }

    .stm-ln .stm-ln-tree-flyout .stm-ln-tree-node:hover > .stm-ln-tree-children,
    .stm-ln .stm-ln-tree-flyout .stm-ln-tree-node:focus-within > .stm-ln-tree-children,
    .stm-ln .stm-ln-tree-flyout .stm-ln-tree-node.stm-ln-open > .stm-ln-tree-children {
        display: block;
    }

    .stm-ln .stm-ln-tree-flyout .stm-ln-tree-toggle::before {
        transform: rotate(-45deg);
    }

    /* the horizontal block has room below, not beside */
    .stm-ln-top .stm-ln-tree-flyout .stm-ln-tree-children {
        left: 0;
        top: 100%;
    }
}

/* Children categories block */
.stm-ln-children {
    margin: 0 0 28px;
}

.stm-ln-children-title {
    margin: 0 0 12px;
    font-size: 1.8rem;
    font-weight: 600;
}

.stm-ln-children-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
}

.stm-ln-children-item {
    margin: 0;
    flex: 0 0 auto;
    max-width: var(--stm-ln-thumb, 160px);
}

.stm-ln-children-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.stm-ln-children-link:hover .stm-ln-children-label,
.stm-ln-children-link:focus-visible .stm-ln-children-label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stm-ln-children-image {
    display: block;
    width: var(--stm-ln-thumb, 160px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f3f3f3;
}

.stm-ln-children-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--stm-ln-thumb, 160px);
    aspect-ratio: 1 / 1;
    background: #f3f3f3;
    color: #1a1a1a;
    font-weight: 600;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
}

.stm-ln-children-label {
    display: block;
    margin-top: 6px;
    font-size: 1.4rem;
    line-height: 1.3;
}

.stm-ln-children-names .stm-ln-children-item {
    max-width: none;
}

.stm-ln-children-names .stm-ln-children-link {
    padding: 6px 12px;
    border: 1px solid #d6d6d6;
}

.stm-ln-children-names .stm-ln-children-label {
    margin: 0;
}

/* slider variant: same mechanics as the brand slider */
.stm-ln-children-slider .stm-ln-children-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 16px;
}

.stm-ln-children-slider .stm-ln-children-list::-webkit-scrollbar {
    display: none;
}

.stm-ln-children-slider .stm-ln-children-item {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - (var(--stm-ln-visible, 5) - 1) * 16px) / var(--stm-ln-visible, 5));
    max-width: none;
}

.stm-ln-children-slider .stm-ln-children-image,
.stm-ln-children-slider .stm-ln-children-placeholder {
    width: 100%;
}

.stm-ln-children-viewport {
    position: relative;
}

@media (max-width: 767px) {
    .stm-ln-children-slider .stm-ln-children-item {
        flex-basis: calc((100% - 16px) / 2.2);
    }
}
