/* Attach the compare button to the cart without changing the header positions. */
#top-handler #vmCartModule .ff-cart-buttons {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

#top-handler #vmCartModule .ff-cart-buttons > #cartpanel {
    position: relative;
    inset: auto;
    margin: 0;
}

#top-handler #vmCartModule .ff-cart-buttons > .ff-header-compare {
    position: absolute;
    top: 50%;
    right: calc(100% + 4px);
    width: 40px;
    transform: translateY(-50%);
}

#top-handler #vmCartModule .ff-header-compare .ff-compare-trigger {
    width: 40px;
    min-height: 40px;
}

@media (min-width: 980px) {
    #mega-menu .sub-items-handler {
        border-radius: 0 0 8px 8px;
        box-shadow: 0 8px 20px rgb(38 54 74 / 12%);
    }

    #mega-menu .sub-items-handler .nadpis3 {
        font-weight: 600;
        margin-bottom: 6px !important;
        padding-bottom: 6px;
    }

    #mega-menu .sub-items-handler .module-content li > a {
        line-height: 1.4;
    }
}

.ff-header-compare .ff-compare-trigger {
    position: relative;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 42px;
    min-height: 42px;
    padding: 0;
    color: #3265b1;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.ff-compare-trigger > .fa {
    font-size: 28px;
}

.ff-compare-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.ff-compare-count {
    position: absolute;
    top: 1px;
    right: 0;
    box-sizing: border-box;
    min-width: 14px;
    padding: 0 3px;
    border-radius: 10px;
    color: #fff;
    background: #3265b1;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

.ff-compare-count[data-empty] {
    display: none;
}

.ff-compare-panel .vme-product-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
}

.ff-compare-panel .vme-product-row::before,
.ff-compare-panel .vme-product-row::after {
    content: none;
}

.ff-compare-panel .vme-product-row > .vme-column {
    float: none;
    width: auto;
    padding: 0;
}

.ff-compare-panel .product-thumbnail img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.ff-compare-panel .vme-remove-btn {
    min-width: 28px;
    min-height: 32px;
}

/* Use one border per card, with a soft hover instead of a raised overlay. */
:is(.browse-view, #tabs-1) :is(.product, .product-container) > .spacer {
    border: 1px solid #d8dde5;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color .18s, box-shadow .18s;
}

:is(.browse-view, #tabs-1) :is(.product, .product-container) > .spacer:is(:hover, :focus-within) {
    border-color: #b7c8de;
    box-shadow: 0 5px 16px rgb(38 54 74 / 9%);
}

:is(.browse-view, #tabs-1) .spacer > .spacer-content {
    border: 0;
    border-radius: inherit;
    box-shadow: none;
}

:is(.browse-view, #tabs-1) .h-pr-title {
    line-height: 1.35;
}

.browse-view .product .h-pr-details,
#tabs-1 .vmproduct .action-handler-inner {
    position: relative;
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
}

:is(.browse-view .h-pr-details, #tabs-1 .vmproduct .action-handler-inner) > :is(.product-stock, .product-price, .product-price-1, .vm3pr, .productdetails) {
    position: static !important;
    float: none !important;
    inset: auto;
    width: auto;
    margin: 0;
    transform: none;
}

:is(.browse-view .h-pr-details, #tabs-1 .vmproduct .action-handler-inner) > :is(.product-price, .product-price-1) {
    order: 1;
}

:is(.browse-view .h-pr-details, #tabs-1 .vmproduct .action-handler-inner) > .product-stock {
    order: 2;
}

:is(.browse-view .h-pr-details > .vm3pr, #tabs-1 .vmproduct .action-handler-inner > .productdetails) {
    order: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 6px;
    row-gap: 3px;
}

:is(.browse-view .h-pr-details > .vm3pr, #tabs-1 .vmproduct .action-handler-inner > .productdetails)
:is(.addtocart-area, .addtocart-bar-handler, .addtocart-bar, span.addtocart-button) {
    position: relative;
    inset: auto;
    float: none;
    width: auto;
    margin: 0;
}

:is(.browse-view, #tabs-1) .vme-allbuttons-container.vme-is-list {
    position: static;
    float: none;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

:is(.browse-view, #tabs-1) .vme-is-list > .vme-list-inline,
.productdetails-view #b-area .vme-list-inline {
    display: flex !important;
    float: none !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    width: auto !important;
    margin: 0;
    padding: 0;
}

:is(.browse-view, #tabs-1) .vme-is-list > .vme-list-inline > li,
.productdetails-view #b-area .vme-list-inline > li {
    margin: 0;
    padding: 0;
}

:is(.browse-view, #tabs-1, .productdetails-view) .ff-product-compare:not(.vme-hide) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
    box-sizing: border-box;
    vertical-align: middle;
    color: #3265b1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

:is(.browse-view, #tabs-1, .productdetails-view) .ff-product-compare > i {
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    color: inherit;
    background: transparent;
    font-size: 15px;
    line-height: 1;
}

:is(.browse-view, #tabs-1, .productdetails-view) .vme-compare-link.ff-product-compare,
:is(.browse-view, #tabs-1, .productdetails-view) .ff-product-compare:hover,
.ff-compare-trigger:hover {
    background: rgba(50, 101, 177, .08);
}

.ff-compare-trigger:focus-visible,
.ff-product-compare:focus-visible {
    outline: 2px solid #3265b1;
    outline-offset: 2px;
}

.ff-product-compare > .vme-tooltip {
    top: 100%;
}

:is(.browse-view, #tabs-1, .productdetails-view) input.addtocart-button {
    border-radius: 5px;
}

/* Catalog controls use the same sizing as the product cards. */
.browse-view :is(.orderby-displaynumber, .vm-pagination) .pagination :is(a, span) {
    border-radius: 4px;
}

.browse-view .orderby-displaynumber {
    padding-bottom: 12px;
}

/* Product detail and gallery. */
.productdetails-view .spacer-buy-area {
    box-sizing: border-box;
    padding: clamp(14px, 1.5vw, 26px);
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: 10px;
}

.productdetails-view .spacer-buy-area > :is(.product-short-description, .availability) {
    border-color: #d8dde5;
}

#main-content-handler .productdetails-view .main-image a img {
    max-width: min(100%, 500px);
    max-height: 400px;
    object-fit: contain;
}

.productdetails-view .additional-images {
    position: relative;
    clear: both;
    margin-top: 10px;
}

.productdetails-view .additional-images.slick-initialized {
    visibility: visible;
    opacity: 1;
}

.productdetails-view .additional-images .slick-slide img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Tabs and long product descriptions. */
.productdetails-view .tabs_row {
    margin-top: clamp(20px, 3vw, 38px);
}

.productdetails-view #vmj_product_details_tab {
    float: none;
    margin: 0 0 12px;
}

.productdetails-view #vmj_product_details_tab > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #d8dde5;
    list-style: none;
}

.productdetails-view #vmj_product_details_tab > ul > li {
    float: none;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
}

.productdetails-view #vmj_product_details_tab li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 10px;
    color: #344559;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    cursor: pointer;
}

.productdetails-view #vmj_product_details_tab li > a .title {
    margin: 0;
    padding: 0;
    color: inherit !important;
    font: inherit;
}

.productdetails-view #vmj_product_details_tab :is(li.active > a, li > a.selected) {
    color: #3265b1 !important;
    border-bottom-color: #3265b1 !important;
}

.productdetails-view .tabs_row > .vmj_popis {
    box-sizing: border-box;
    padding: clamp(16px, 3vw, 38px);
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: 10px;
}

.productdetails-view #b-area .spacer-buy-area > h1 {
    margin-bottom: 10px;
    line-height: 1.3;
}

.productdetails-view #b-area .product-price {
    margin-top: 12px;
    margin-bottom: 10px;
}

.productdetails-view #b-area .spacer-buy-area > .vme-allbuttons-container {
    margin: 8px 0 10px;
}

.productdetails-view #b-area .ff-product-compare:not(.vme-hide) {
    padding: 0 10px;
    border-color: rgba(50, 101, 177, .26);
}

.productdetails-view #b-area .ff-product-compare > .vme-tooltip {
    display: none;
}

.productdetails-view .main-image img,
.productdetails-view .additional-images img {
    border-radius: 4px;
}

/* The old product skin adds a second frame to each tab panel. */
.productdetails-view .vmj_popis > .vmj_tabcontent {
    border: 0 !important;
    box-shadow: none !important;
}

.productdetails-view .vmj_popis > .vmj_tabcontent > .vmj_ritz_description {
    padding: 0;
    border: 0 !important;
    box-shadow: none !important;
}

.productdetails-view .vmj_popis > .vmj_tabcontent {
    padding: 0;
}

.productdetails-view .vmj_popis > #description > .vmj_ritz_description {
    width: 100%;
    max-width: 84ch;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    overflow-x: auto;
    color: #344559;
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.productdetails-view #description .vmj_ritz_description :where(p, ul, ol, blockquote) {
    margin: 0 0 1em;
}

.productdetails-view #description .vmj_ritz_description :where(ul, ol) {
    padding-inline-start: 1.35em;
}

.productdetails-view #description .vmj_ritz_description :where(li + li) {
    margin-top: .25em;
}

.productdetails-view #description .vmj_ritz_description :is(h1, h2, h3, h4, h5, h6) {
    margin: 1.35em 0 .5em;
    color: #243b59;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.3;
}

.productdetails-view #description .vmj_ritz_description > :first-child {
    margin-top: 0;
}

.productdetails-view #description .vmj_ritz_description :is(img, video, iframe) {
    max-width: 100%;
}

.productdetails-view #description .vmj_ritz_description img {
    height: auto;
}

.productdetails-view #description .vmj_ritz_description table {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    margin: 1.25em 0;
    border: 1px solid #d8dde5;
    border-collapse: collapse;
    color: #344559;
    background: #fff;
    font-size: .92em;
    line-height: 1.45;
}

.productdetails-view #description .vmj_ritz_description table :is(th, td) {
    height: auto !important;
    padding: 9px 12px;
    border: 1px solid #d8dde5;
    white-space: normal;
}

.productdetails-view #description .vmj_ritz_description table tr:nth-child(even) > td {
    background: #f4f7fb;
}

.productdetails-view #description .vmj_ritz_description table :is(thead td, th),
.productdetails-view #description .vmj_ritz_description table:not(:has(thead, th)) tr:first-child > td {
    color: #fff;
    background: #3265b1;
    font-weight: 600;
}

@media (max-width: 979px) {
    #main-content-handler > .row-fluid:has(> .rs-cc .productdetails-view) > .rs-cl {
        display: none;
    }

    #main-content-handler > .row-fluid > .rs-cc:has(.productdetails-view) {
        float: none;
        width: 100%;
        margin: 0;
    }

    #main-content-handler .productdetails-view {
        box-sizing: border-box;
        padding-inline: clamp(10px, 2vw, 18px);
    }

    #main-content-handler .productdetails-view > .row-fluid:has(> #b-area) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    #main-content-handler .productdetails-view > .row-fluid:has(> #b-area) > .span6 {
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    #main-content-handler .productdetails-view > .row-fluid:has(> #b-area) > .clear,
    #main-content-handler .productdetails-view > .row-fluid:has(> #b-area)::before,
    #main-content-handler .productdetails-view > .row-fluid:has(> #b-area)::after {
        display: none;
    }

    #main-content-handler .productdetails-view .main-image {
        height: auto !important;
        min-height: 0;
        line-height: normal !important;
    }

    #main-content-handler .productdetails-view .main-image :is(.product-details-image-handler, a.vm-image-popup) {
        display: block;
        position: relative;
        inset: auto;
        height: auto;
        transform: none;
    }

    #main-content-handler .productdetails-view.productdetails .main-image a img {
        display: block;
        position: static !important;
        inset: auto !important;
        width: auto;
        max-width: 100% !important;
        height: auto !important;
        max-height: min(360px, 75vw);
        margin: 0 auto !important;
    }

    #main-content-handler .productdetails-view .additional-images {
        position: relative;
        inset: auto;
        transform: none;
    }

    .productdetails-view #b-area .spacer-buy-area {
        padding: clamp(14px, 3vw, 24px);
    }

    .productdetails-view #b-area .spacer-buy-area > h1 {
        font-size: clamp(21px, 4vw, 30px);
        overflow-wrap: anywhere;
    }

    .productdetails-view #b-area .addtocart-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 4px;
        height: auto !important;
        margin: 0 !important;
    }

    .productdetails-view #b-area .addtocart-bar > :is(.quantity-box, .quantity-controls, .addtocart-button) {
        position: static !important;
        float: none;
        margin: 0;
    }

    .productdetails-view #b-area .quantity-input {
        box-sizing: border-box;
        min-height: 44px;
    }

    .productdetails-view #b-area .addtocart-bar > .quantity-controls {
        display: grid !important;
        grid-template-rows: repeat(2, 1fr);
        flex: 0 0 38px;
        width: 38px;
        height: 44px;
    }

    .productdetails-view #b-area .addtocart-bar .quantity-controls > :is(.quantity-plus, .quantity-minus) {
        position: relative !important;
        inset: auto !important;
        display: grid !important;
        place-items: center;
        float: none;
        width: 100% !important;
        height: 22px !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #e9eff7;
        cursor: pointer;
    }

    .productdetails-view #b-area .addtocart-bar .quantity-controls > :is(.quantity-plus, .quantity-minus)::after {
        content: none;
    }

    .productdetails-view #b-area .addtocart-bar .quantity-controls > :is(.quantity-plus, .quantity-minus)::before {
        content: "";
        position: static;
        width: 7px;
        height: 7px;
        margin: 0;
        border: solid #3265b1;
        border-width: 0 2px 2px 0;
        transform: rotate(225deg);
    }

    .productdetails-view #b-area .addtocart-bar .quantity-controls > .quantity-minus::before {
        transform: rotate(45deg);
    }

    .productdetails-view #b-area .addtocart-bar > span.addtocart-button {
        flex: 1 1 145px;
        max-width: 100%;
    }

    .productdetails-view #b-area input.addtocart-button {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
        margin: 0 !important;
        white-space: normal;
    }

    .productdetails-view #b-area :is(.ff-product-compare:not(.vme-hide), a.ask-a-question) {
        min-height: 42px;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {
    .productdetails-view #vmj_product_details_tab > ul {
        gap: 4px;
    }

    .productdetails-view #vmj_product_details_tab > ul > li {
        flex: 1 1 auto;
        min-width: 0;
    }

    .productdetails-view #vmj_product_details_tab li > a {
        padding-inline: 7px;
        font-size: 13px;
    }

    .productdetails-view #description .vmj_ritz_description table {
        table-layout: fixed;
        font-size: 12px;
        line-height: 1.35;
    }

    .productdetails-view #description .vmj_ritz_description table :is(th, td) {
        width: auto !important;
        padding: 5px 4px;
        overflow-wrap: anywhere;
    }

    .productdetails-view #description .vmj_ritz_description table :is(th, td) :where(p, span, strong, em) {
        font-size: inherit !important;
    }

    .productdetails-view #description .vmj_ritz_description table :is(th, td) p {
        margin: 0;
    }
}

/* Homepage: keep the promoted products and categories on a common grid. */
.ff-home #tabs-1 {
    --home-gap: clamp(10px, 1.6vw, 22px);
    margin-block: clamp(24px, 4vw, 54px);
}

.ff-home #tabs-1 #Tab1 {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0 0 var(--home-gap);
    padding: 0;
}

.ff-home #tabs-1 #Tab1 > li {
    float: none;
    margin: 0;
}

.ff-home #tabs-1 #Tab1 > li > a {
    margin: 0;
    padding: 9px 16px;
    border-radius: 6px;
}

.ff-home #tabs-1 #Tab1 > li.active > a {
    background: #fff;
}

.ff-home #tabs-1 :is(.vmgroup_products.centered:has(> .vmproduct:not(.owl-carousel)), .flex-container:has(> .flex-item > .flex-spacer)) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--home-gap);
}

.ff-home #tabs-1 .vmgroup_products.centered > .vmproduct:not(.owl-carousel),
.ff-home #tabs-1 .vmgroup_products.centered > .vmproduct:not(.owl-carousel) > .tf-module {
    display: contents;
}

.ff-home #tabs-1 .vmgroup_products.centered > .vmproduct:not(.owl-carousel)::before,
.ff-home #tabs-1 .vmgroup_products.centered > .vmproduct:not(.owl-carousel)::after {
    content: none;
}

.ff-home #tabs-1 .vmgroup_products.centered > :is(.vmheader, .vmfooter) {
    grid-column: 1 / -1;
}

/* Category and related products share the homepage card styles. */
:is(.ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.6vw, 22px);
    padding: 0;
}

.ff-category #main-content-handler .browse-view > .even-odd > .row-fluid.tft-modules,
.ff-category #main-content-handler .browse-view > .even-odd > .row-fluid.tft-modules > .tf-module {
    display: contents;
}

.productdetails-view :where(#related .browse-view) > #relatedProduct::before,
.productdetails-view :where(#related .browse-view) > #relatedProduct::after,
.ff-category #main-content-handler .browse-view > .even-odd::before,
.ff-category #main-content-handler .browse-view > .even-odd::after,
.ff-category #main-content-handler .browse-view > .even-odd > .row-fluid.tft-modules::before,
.ff-category #main-content-handler .browse-view > .even-odd > .row-fluid.tft-modules::after,
.ff-category #main-content-handler .browse-view > .even-odd > .row-fluid.tft-modules > .tf-module::before,
.ff-category #main-content-handler .browse-view > .even-odd > .row-fluid.tft-modules > .tf-module::after {
    content: none;
    display: none;
}

.ff-category #main-content-handler .browse-view > .even-odd > .row-fluid.tft-modules > .clear,
.ff-category #main-content-handler .browse-view > .even-odd > .horizontal-separator {
    display: none;
}

:is(.ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .action-handler {
    padding: 8px clamp(7px, 1.2vw, 16px) 14px;
    text-align: center;
}

:is(.ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .action-handler > .h-pr-details {
    flex: 0 0 auto;
    margin-top: auto;
}

:is(.ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .product > .spacer .product_s_desc {
    display: none;
}

:is(.ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .h-pr-details .PricesalesPrice {
    color: #f00;
}

@media (max-width: 979px) {
    :is(.ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    :is(.ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) {
        grid-template-columns: minmax(0, 1fr);
    }

    :is(.ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .pr-img-handler {
        aspect-ratio: auto;
        height: clamp(165px, 52vw, 235px);
    }
}

:is(.ff-home #tabs-1 .vmproduct .product-container, .ff-category #main-content-handler .browse-view > .even-odd .tf-module > .product, .productdetails-view :where(#related .browse-view) > #relatedProduct > .product),
.ff-home #tabs-1 .flex-container > .flex-item {
    display: flex;
    box-sizing: border-box;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

:is(.ff-home #tabs-1 .vmproduct .product-container, .ff-category #main-content-handler .browse-view > .even-odd .tf-module > .product, .productdetails-view :where(#related .browse-view) > #relatedProduct > .product) > .spacer,
.ff-home #tabs-1 .flex-item > .flex-spacer {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: 8px;
}

:is(.ff-home #tabs-1 .vmproduct .product-container, .ff-category #main-content-handler .browse-view > .even-odd .tf-module > .product, .productdetails-view :where(#related .browse-view) > #relatedProduct > .product) > .spacer,
:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .spacer > .spacer-content,
:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .spacer .action-handler {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body :is(.ff-home #tabs-1 .vmproduct .product-container, .ff-category #main-content-handler .browse-view > .even-odd .tf-module > .product, .productdetails-view :where(#related .browse-view) > #relatedProduct > .product) > .spacer {
    flex: 1 1 auto;
    height: auto !important;
    max-height: none !important;
}

:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .spacer > .spacer-content,
:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .spacer .action-handler {
    flex: 1 1 auto;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    box-sizing: border-box;
    margin: 0;
    transform: none !important;
    box-shadow: none !important;
}

:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .pr-img-handler {
    position: relative;
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
}

:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .pr-img-handler > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .pr-img-handler > a > img {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: clamp(8px, 1.3vw, 18px);
    object-fit: contain;
}

:is(.ff-home #tabs-1 .vmproduct .action-handler-inner, .ff-category #main-content-handler .browse-view > .even-odd .h-pr-details, .productdetails-view :where(#related .browse-view) > #relatedProduct .h-pr-details) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    box-sizing: border-box;
    width: 100%;
    height: auto !important;
    min-height: 0;
    max-height: none !important;
    padding: 8px clamp(7px, 1.2vw, 16px) 14px;
}

:is(.ff-home #tabs-1 .vmproduct .action-handler-inner, .ff-category #main-content-handler .browse-view > .even-odd .action-handler, .productdetails-view :where(#related .browse-view) > #relatedProduct .action-handler) > .h-pr-title {
    height: auto !important;
    min-height: 0;
    order: 0;
    margin: 0 auto auto !important;
    padding: 0;
    font-size: clamp(14px, 1.3vw, 18px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

:is(.ff-home #tabs-1 .vmproduct .action-handler-inner, .ff-category #main-content-handler .browse-view > .even-odd .h-pr-details, .productdetails-view :where(#related .browse-view) > #relatedProduct .h-pr-details) :is(.product-price, .product-price-1, .vm-price-value, .PricesalesPrice, .product-stock, .product-stock-handler) {
    position: static !important;
    inset: auto;
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0;
    transform: none !important;
}

body :is(.ff-home #tabs-1 .vmproduct .action-handler-inner, .ff-category #main-content-handler .browse-view > .even-odd .h-pr-details, .productdetails-view :where(#related .browse-view) > #relatedProduct .h-pr-details) > :is(.product-price, .product-price-1) {
    order: 1 !important;
}

body :is(.ff-home #tabs-1 .vmproduct .action-handler-inner, .ff-category #main-content-handler .browse-view > .even-odd .h-pr-details, .productdetails-view :where(#related .browse-view) > #relatedProduct .h-pr-details) > .product-stock {
    order: 2 !important;
    min-height: 1.35em !important;
    line-height: 1.35;
}

body :is(.ff-home #tabs-1 .vmproduct .action-handler-inner, .ff-category #main-content-handler .browse-view > .even-odd .h-pr-details, .productdetails-view :where(#related .browse-view) > #relatedProduct .h-pr-details) :is(.product-stock, .product-stock-handler, .product-stock .datum) {
    display: block !important;
    position: static !important;
    float: none !important;
    margin: 0 !important;
    padding: 0;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

body :is(.ff-home #tabs-1 .vmproduct .action-handler-inner > .productdetails, .ff-category #main-content-handler .browse-view > .even-odd .h-pr-details > .vm3pr, .productdetails-view :where(#related .browse-view) > #relatedProduct .h-pr-details > .vm3pr) {
    order: 3 !important;
    flex: 0 0 auto;
    box-sizing: border-box;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
}

:is(.ff-home #tabs-1 .vmproduct .action-handler-inner, .ff-category #main-content-handler .browse-view > .even-odd .h-pr-details, .productdetails-view :where(#related .browse-view) > #relatedProduct .h-pr-details) .vm-price-value {
    white-space: nowrap;
}

:is(.ff-home #tabs-1 .vmproduct .action-handler-inner > .productdetails, .ff-category #main-content-handler .browse-view > .even-odd .h-pr-details > .vm3pr, .productdetails-view :where(#related .browse-view) > #relatedProduct .h-pr-details > .vm3pr) {
    position: relative !important;
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    padding-inline: 0 30px;
    flex-wrap: wrap;
    gap: 3px;
    min-width: 0;
    min-height: 0;
}

body :is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .spacer .addtocart-bar-handler,
body :is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .spacer .addtocart-bar-handler .addtocart-bar {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    min-height: 0 !important;
}

:is(.ff-home #tabs-1 .vmproduct .action-handler-inner > .productdetails, .ff-category #main-content-handler .browse-view > .even-odd .h-pr-details > .vm3pr, .productdetails-view :where(#related .browse-view) > #relatedProduct .h-pr-details > .vm3pr) > .vme-is-list {
    position: absolute;
    right: 0;
    bottom: 0;
}

:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .addtocart-bar {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 3px 0;
}

:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .addtocart-bar > :is(.quantity-box, .quantity-controls):not([hidden]) {
    display: block !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    :is(.ff-home #tabs-1 .vmproduct .action-handler-inner > .productdetails, .ff-category #main-content-handler .browse-view > .even-odd .h-pr-details > .vm3pr, .productdetails-view :where(#related .browse-view) > #relatedProduct .h-pr-details > .vm3pr) {
        padding-top: 32px;
    }

    body :is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .spacer .addtocart-bar > :is(.quantity-box, .quantity-controls):not([hidden]) {
        position: absolute !important;
        inset: auto auto calc(100% + 2px) 50% !important;
        visibility: hidden !important;
        opacity: 0;
    }

    body :is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .spacer .addtocart-bar > .quantity-box:not([hidden]) {
        transform: translateX(-100%);
    }

    body :is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .spacer:is(:hover, :focus-within) .addtocart-bar > :is(.quantity-box, .quantity-controls):not([hidden]) {
        visibility: visible !important;
        opacity: 1;
    }
}

:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .addtocart-bar > .quantity-box .quantity-input {
    box-sizing: border-box;
    width: 38px;
    height: 30px;
    margin: 0;
}

:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .addtocart-bar > .quantity-controls:not([hidden]) {
    min-width: 24px;
}

:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .addtocart-bar > .quantity-controls > .quantity-controls {
    position: static;
    display: block;
    width: 100%;
    height: 15px;
    line-height: 15px;
}

:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .addtocart-bar > span.addtocart-button {
    grid-column: 1 / -1;
}

:is(.ff-home #tabs-1 .vmproduct, .ff-category #main-content-handler .browse-view > .even-odd, .productdetails-view :where(#related .browse-view) > #relatedProduct) .addtocart-bar input.addtocart-button {
    min-height: 34px;
    max-width: 100%;
    padding-inline: clamp(6px, 1vw, 14px);
}

:is(.ff-home #tabs-1 .vmproduct .action-handler-inner, .ff-category #main-content-handler .browse-view > .even-odd .h-pr-details, .productdetails-view :where(#related .browse-view) > #relatedProduct .h-pr-details) > :is(.clear, .gr-cover),
.ff-home #tabs-1 .flex-container > .clear {
    display: none;
}

/* Remove the legacy inner hover frame in the related-products tab. */
.productdetails-view :where(#related .browse-view) > #relatedProduct > .product > .spacer > .spacer-content {
    border: 0 !important;
    box-shadow: none !important;
}

.ff-home #tabs-1 .flex-spacer > a {
    display: flex;
    height: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, 2vw, 22px);
    text-decoration: none;
}

.ff-home #tabs-1 .flex-spacer > a:is(:hover, :focus-visible) {
    box-shadow: inset 0 0 0 1px #b7c8de;
    border-radius: inherit;
}

.ff-home #tabs-1 .flex-spacer .flex-img {
    width: min(100%, 180px);
    height: clamp(76px, 12vw, 150px);
    padding: 0;
    object-fit: contain;
}

.ff-home #tabs-1 .flex-spacer .flex-catname {
    line-height: 1.35;
    font-weight: 600;
}

.ff-home #slideshow-handler .sppb-carousel-pro:has(> .sppb-carousel-indicators) {
    display: flex;
    flex-direction: column;
}

.ff-home #slideshow-handler .sppb-carousel-pro > .sppb-carousel-indicators {
    position: static;
    display: flex;
    order: 1;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transform: none;
    overflow-x: auto;
    scrollbar-width: thin;
}

.ff-home #slideshow-handler .sppb-carousel-indicators > li {
    display: grid;
    flex: 1 0 128px;
    place-items: center;
    width: auto;
    height: auto;
    min-height: 36px;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 8px;
    text-align: center;
    text-indent: 0;
    white-space: normal;
}

.ff-home #footer-line-bottom .sppb-addon-content li {
    margin-block: 3px;
}

@media (max-width: 1050px) {
    .ff-home #tabs-1 :is(.vmgroup_products.centered:has(> .vmproduct:not(.owl-carousel)), .flex-container:has(> .flex-item > .flex-spacer)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ff-home #tabs-1 :is(.vmgroup_products.centered:has(> .vmproduct:not(.owl-carousel)), .flex-container:has(> .flex-item > .flex-spacer)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ff-home #tabs-1 .vmgroup_products.centered:has(> .vmproduct:not(.owl-carousel)) {
        grid-template-columns: minmax(0, 1fr);
    }

    .ff-home #tabs-1 .vmproduct .pr-img-handler {
        aspect-ratio: auto;
        height: clamp(165px, 52vw, 235px);
    }
}

.ff-mobile-toolbar,
#top-handler .ff-mobile-search,
#top-handler .ff-top-menu {
    display: none;
}

@media (max-width: 979px) {
    div#top .container > .row-fluid:nth-of-type(1) {
        display: none;
    }

    body.ff-toolbar-active {
        --ff-toolbar-height: 54px;
        --ff-toolbar-offset: 0px;
        --ff-toolbar-above: calc(var(--ff-toolbar-height) + var(--ff-toolbar-offset) + 12px);
        padding-bottom: calc(var(--ff-toolbar-height) + 4px);
    }

    body.ff-toolbar-active :is(.cc-trigger.cc-trigger-bottom, .jump-to-top) {
        bottom: var(--ff-toolbar-above) !important;
    }

    body.ff-toolbar-active #top-handler #tpr-nav .log-panel {
        display: none !important;
    }

    body.ff-toolbar-active #top-handler .ff-logo-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 12px;
        width: 100%;
        box-sizing: border-box;
        padding: 8px clamp(10px, 2vw, 18px) 10px;
    }

    body.ff-toolbar-active #top-handler .ff-logo-row::before,
    body.ff-toolbar-active #top-handler .ff-logo-row::after {
        content: none;
    }

    body.ff-toolbar-active #top-handler .ff-logo-row #site-name-handler {
        grid-column: 1;
        grid-row: 1;
        position: static !important;
        width: auto !important;
        min-width: 0;
        max-width: none;
        margin: 0 !important;
        text-align: left;
    }

    body.ff-toolbar-active #top-handler .ff-logo-row :is(#sn-position, .snc-handler, .h1) {
        position: static !important;
        float: none;
        margin: 0;
        padding: 0;
        line-height: normal;
        text-align: left;
        transform: none;
    }

    body.ff-toolbar-active #top-handler #site-name-handler .h1 img {
        display: block;
        width: clamp(126px, 20vw, 150px);
        max-width: 100%;
        height: auto;
        max-height: none;
    }

    #top-handler .ff-top-menu {
        position: absolute;
        top: 8px;
        right: 10px;
        z-index: 2;
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        min-height: 40px;
        margin: 0;
        padding: 0 10px;
        color: #3265b1;
        background: #fff;
        border: 1px solid #d8dde5;
        border-radius: 6px;
        font: inherit;
        font-weight: 600;
        cursor: pointer;
    }

    body.ff-toolbar-active #top-handler .ff-top-menu {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        position: static !important;
        inset: auto !important;
        float: none !important;
        margin: 0 !important;
        transform: none !important;
    }

    body.ff-toolbar-active #top-handler .ff-mobile-search:not(:empty) {
        display: block;
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
    }

    #top-handler .ff-mobile-search :is(#search-position-handler, #search-position, #searchpanel, form, .mijosearch) {
        position: relative !important;
        inset: auto !important;
        float: none !important;
        width: 100% !important;
        min-width: 0;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0;
        box-sizing: border-box;
        transform: none !important;
    }

    #top-handler .ff-mobile-search .mijosearch input[type="text"] {
        display: block;
        width: 100% !important;
        max-width: none !important;
        min-height: 40px;
        margin: 0 !important;
        box-sizing: border-box;
        border: 1px solid #d8dde5;
        border-radius: 8px;
        background-color: #fff;
        font-size: 16px;
    }

    #top-handler:has(.ff-top-menu) .ms-handler .open-off-canvas,
    body.ff-toolbar-active #top-handler .ff-logo-row > .cl-handler:not(:has(#search-position-handler, #vmCartModule)),
    body.ff-toolbar-active #top-handler:has(.ff-top-menu) :is(#menu, .ms-handler, .myMegaMenu) {
        display: none !important;
    }

    body.ff-toolbar-active .ff-mobile-toolbar {
        position: fixed;
        z-index: 1000;
        inset: auto 0 var(--ff-toolbar-offset);
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        min-height: var(--ff-toolbar-height);
        box-sizing: border-box;
        padding: 3px 8px;
        background: #fff;
        border-top: 1px solid #d8dde5;
        box-shadow: 0 -3px 16px rgb(38 54 74 / 8%);
    }

    body.body-offcanvas .ff-mobile-toolbar {
        visibility: hidden;
    }

    .ff-mobile-toolbar > :is(.ff-toolbar-home, .ff-toolbar-account, .ff-toolbar-register),
    .ff-mobile-toolbar #cartpanel {
        position: relative !important;
        inset: auto !important;
        display: grid !important;
        place-items: center;
        float: none !important;
        width: 44px;
        height: 44px;
        margin: 0 !important;
        padding: 0 !important;
        color: #3265b1;
        font-size: 24px;
        text-decoration: none;
    }

    .ff-mobile-toolbar .ff-toolbar-cart:empty {
        display: none;
    }

    .ff-mobile-toolbar :is(#vmCartModule, .show-cart, .ff-cart-buttons) {
        position: relative !important;
        inset: auto !important;
        float: none !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    .ff-mobile-toolbar .ff-cart-buttons {
        display: flex;
        align-items: center;
        gap: clamp(12px, 8vw, 70px);
    }

    .ff-mobile-toolbar .cart-info {
        display: none;
    }

    .ff-mobile-toolbar #cartpanel > i {
        position: static;
        float: none;
        margin: 0;
        font-size: 26px;
    }

}

/* Shared drawers for the shop controls. Native modal dialogs provide the focus trap. */
.ff-shop-drawer :where(*, *::before, *::after) {
    box-sizing: border-box;
}
html.ff-shop-drawer-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

body dialog.ff-shop-drawer:is(#LoginForm, #cart-panel2, #ff-compare-drawer) {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100%, 430px);
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #24354b;
    background: #fff;
    border: 0;
    border-left: 1px solid #d8dde5;
    box-shadow: -12px 0 42px rgb(20 39 62 / 16%);
    text-align: left;
}

body dialog.ff-shop-drawer:is(#LoginForm, #cart-panel2, #ff-compare-drawer):not([open]) {
    display: none !important;
}

body dialog.ff-shop-drawer:is(#LoginForm, #cart-panel2, #ff-compare-drawer)[open] {
    display: flex !important;
    flex-direction: column;
    animation: ff-drawer-enter .22s ease-out;
}

@keyframes ff-drawer-enter {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    body dialog.ff-shop-drawer:is(#LoginForm, #cart-panel2, #ff-compare-drawer)[open] {
        animation: none;
    }
}

.ff-shop-drawer::backdrop {
    background: rgb(19 37 58 / 46%);
}

.ff-shop-drawer .ff-drawer-header,
.ff-shop-drawer .ff-drawer-footer {
    flex: 0 0 auto;
    padding: 16px 20px;
    background: #f6f8fb;
}

.ff-shop-drawer .ff-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #d8dde5;
}

.ff-shop-drawer .ff-drawer-header h2 {
    margin: 0;
    color: #3265b1;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.3;
}

.ff-shop-drawer .ff-drawer-header h2 i {
    margin-right: 5px;
}

.ff-shop-drawer .ff-drawer-close {
    position: static;
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    color: #3265b1;
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: 8px;
    font: 26px/1 sans-serif;
    cursor: pointer;
}

.ff-shop-drawer .ff-drawer-close:hover {
    background: #eaf1fb;
}

.ff-shop-drawer .ff-drawer-content {
    position: static;
    flex: 1 1 auto;
    width: auto;
    min-height: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    overflow: auto;
    overscroll-behavior: contain;
}

.ff-shop-drawer .ff-drawer-footer {
    border-top: 1px solid #d8dde5;
}

.ff-shop-drawer .ff-drawer-primary {
    display: block;
    padding: 12px;
    color: #fff;
    background: #3265b1;
    border-radius: 7px;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
}

.ff-shop-drawer .ff-drawer-primary:hover {
    background: #264f8d;
}

.ff-shop-drawer :focus-visible {
    outline: 2px solid #3265b1;
    outline-offset: 2px;
}

.ff-compare-panel .vme-product-row {
    padding: 10px;
    background: #f6f8fb;
    border-radius: 8px;
}

.ff-compare-panel .ff-drawer-count {
    margin: 0 0 12px;
    color: #546477;
}

.ff-cart-drawer .vm_cart_products,
.ff-cart-drawer .vm_cart_products > .vmcontainer {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.ff-cart-drawer .vm_cart_products .product_row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
    float: none;
    width: 100%;
    min-height: 0;
    margin: 0 0 10px;
    padding: 14px;
    background: #f6f8fb;
    border: 1px solid #e2e9f2;
    border-radius: 9px;
}

.ff-cart-drawer .vm_cart_products .product_row::before,
.ff-cart-drawer .vm_cart_products .product_row::after {
    content: none;
}

.ff-cart-drawer .vm_cart_products .product_row > :is(.quantity, .product_name, .subtotal_with_tax, .customProductData) {
    position: static;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.ff-cart-drawer .vm_cart_products .product_row > .quantity {
    min-width: 24px;
    padding: 2px 5px;
    border-radius: 5px;
    color: #254f8d;
    background: #e5edf8;
    font-size: .875em;
    text-align: center;
    white-space: nowrap;
}

.ff-cart-drawer .product_row > .quantity::after {
    content: " ×";
}

.ff-cart-drawer .product_row > .product_name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.ff-cart-drawer .product_row > .subtotal_with_tax {
    grid-column: 3;
    justify-self: end;
    font-weight: 650;
    white-space: nowrap;
}

.ff-cart-drawer .product_row > .customProductData {
    grid-column: 2 / -1;
    color: #546477;
    font-size: .875em;
}

.ff-cart-drawer .customProductData:empty {
    display: none;
}

.ff-cart-drawer .cartpanel .total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 0;
    padding: 12px 0;
    border-top: 1px solid #d8dde5;
    font-weight: 650;
}

.ff-cart-drawer .ff-cart-empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 30px 16px;
    border: 1px dashed #cbd8e9;
    border-radius: 10px;
    background: #f6f8fb;
    text-align: center;
}

.ff-cart-empty > .fa {
    color: #3265b1;
    font-size: 26px;
}

.ff-cart-empty p {
    margin: 0;
    font-weight: 600;
}

.ff-cart-drawer:not(:has(.vm_cart_products .product_name:not(:empty))) :is(.total, .ff-drawer-footer),
.ff-cart-drawer:has(.vm_cart_products .product_name:not(:empty)) .ff-cart-empty,
.ff-cart-drawer .vm_cart_products .product_row:not(:has(.product_name:not(:empty))),
.ff-cart-drawer .show-cart-link {
    display: none !important;
}

.ff-login-drawer .ff-drawer-content {
    padding: clamp(18px, 4vw, 28px);
}

#LoginForm #login-form,
#LoginForm #login-form .userdata {
    float: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
}

#LoginForm #login-form .userdata {
    display: grid;
    gap: 14px;
}

#LoginForm #login-form .lg-row,
#LoginForm #login-form .btn-group {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

#LoginForm #login-form :is(.lg-ico-user, .lg-ico-pass) {
    display: block;
    position: relative;
    width: 100%;
}

#LoginForm #login-form :is(input[type="text"], input[type="email"], input[type="password"]) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 46px;
    margin: 0;
    padding-block: 8px;
    border: 1px solid #d8dde5;
    border-radius: 7px;
    font-size: 16px;
}

#LoginForm #login-form label[for="modlgn-remember"] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

#LoginForm #login-form #modlgn-remember {
    flex: 0 0 auto;
    margin: 0;
}

#LoginForm #login-form :is(button[type="submit"], input[type="submit"]) {
    box-sizing: border-box;
    display: block;
    float: none;
    width: 100%;
    min-height: 44px;
    margin: 0;
    color: #fff;
    background: #3265b1;
    border: 0;
    border-radius: 7px;
}

#LoginForm #login-form .dropdown-toggle {
    display: none !important;
}

#LoginForm #login-form .dropdown-menu {
    display: grid !important;
    gap: 2px;
    position: static;
    float: none;
    width: 100%;
    margin: 14px 0 0;
    padding: 10px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid #d8dde5;
    border-radius: 0;
    box-shadow: none;
    list-style: none;
}

#LoginForm #login-form .dropdown-menu a {
    display: block;
    padding: 5px 0;
    color: #3265b1;
    white-space: normal;
}

/* The comparison stays a table on desktop and shows a selectable pair on phones. */
.ff-compare-page #main-content-handler .vme-share-container {
    margin-bottom: 12px;
}

.ff-compare-page #main-content-handler .vme-share-container .btn-vme {
    color: #3265b1;
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: 6px;
}

/* Keep the permalink field and copy action on the same baseline. */
.ff-compare-page #main-content-handler .vme-share-container .vme-popover {
    width: min(400px, calc(100vw - 28px));
    border-radius: 9px;
}

.ff-compare-page #main-content-handler .vme-share-container .vme-input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
}

.ff-compare-page #main-content-handler .vme-share-container :is([data-vmecopyfield], .vme-input-group-btn) {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.ff-compare-page #main-content-handler .vme-share-container [data-vmecopyfield] {
    min-height: 40px;
    box-sizing: border-box;
    padding: 6px 9px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
    font-size: 16px;
}

.ff-compare-page #main-content-handler .vme-share-container [data-vmecopy] {
    display: block;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 12px;
    color: #fff;
    background: #3265b1;
    border: 1px solid #3265b1;
    border-radius: 6px;
    font-weight: 600;
}

.ff-compare-page #main-content-handler .vme-share-container [data-vmecopy]:hover {
    background: #264f8d;
}

.ff-compare-page #main-content-handler .vme-share-container :is([data-vmecopy], [data-vmecopyfield]):focus-visible {
    outline: 2px solid #3265b1;
    outline-offset: 2px;
}

.ff-compare-page #main-content-handler .vme-table-container {
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 0;
    border: 1px solid #d8dde5;
    border-radius: 9px;
    background: #fff;
}

.ff-compare-page #main-content-handler .vme-table {
    min-width: var(--ff-compare-table-min, 440px);
    margin: 0;
}

.ff-compare-page #main-content-handler .vme-table :is(thead, tbody, tfoot) > tr > th,
.ff-compare-page #main-content-handler .vme-table :is(thead, tbody, tfoot) > tr > td {
    padding: 10px 12px;
    border-top: 1px solid #e3e8ee;
    overflow-wrap: anywhere;
}

.ff-compare-page #main-content-handler .vme-table > tbody > tr:first-child > * {
    border-top: 0;
}

.ff-compare-page #main-content-handler .vme-table :is(thead, tbody, tfoot) > tr > th {
    color: #344559;
    background: #f2f6fb;
    font-weight: 600;
}

.ff-compare-page #main-content-handler .vme-table tr[hidden] {
    display: none !important;
}

.ff-compare-page #main-content-handler .vme-table .vmevar_product_name > td {
    position: relative;
    padding: 12px 34px 12px 12px;
}

.ff-compare-page #main-content-handler .vme-table .vmevar_product_name h3 {
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.3;
}

.ff-compare-page #main-content-handler .vme-table .vme-compare-remove {
    top: 7px;
    right: 5px;
    margin: 0;
}

.ff-compare-page #main-content-handler .vme-table .vme-image {
    display: block;
    width: 100%;
    min-width: 0;
    height: clamp(130px, 15vw, 190px);
    margin: 0 auto;
    object-fit: contain;
}

.ff-compare-page #main-content-handler .ff-compare-selectors {
    display: none;
}

@media (max-width: 767px) {
    .ff-compare-page #main-content-handler .ff-compare-selectors {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .ff-compare-page .ff-compare-selectors label {
        min-width: 0;
        margin: 0;
        color: #344559;
        font-weight: 600;
    }

    .ff-compare-page .ff-compare-selectors select {
        display: block;
        width: 100%;
        min-height: 40px;
        box-sizing: border-box;
        margin: 4px 0 0;
        padding: 4px 6px;
        color: #24354b;
        background: #fff;
        border: 1px solid #d8dde5;
        border-radius: 6px;
        font-size: 14px;
    }

    .ff-compare-page #main-content-handler .vme-table.ff-compare-paired,
    .ff-compare-page #main-content-handler .ff-compare-paired > tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .ff-compare-page #main-content-handler .ff-compare-paired > tbody > tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-bottom: 1px solid #e3e8ee;
        background: #fff;
    }

    .ff-compare-page #main-content-handler .ff-compare-single > tbody > tr {
        grid-template-columns: minmax(0, 1fr);
    }

    .ff-compare-page #main-content-handler .ff-compare-paired > tbody > tr > :is(th, td) {
        display: block;
        width: auto;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
        padding: 7px 8px;
        border-top: 0;
        text-align: left;
    }

    .ff-compare-page #main-content-handler .ff-compare-paired > tbody > tr > th {
        grid-column: 1 / -1;
        font-size: 13px;
    }

    .ff-compare-page #main-content-handler .ff-compare-paired > tbody > tr > td {
        grid-column: var(--ff-compare-slot, 1);
        grid-row: 2;
        font-size: 13px;
        line-height: 1.45;
    }

    .ff-compare-page #main-content-handler .ff-compare-paired :is(.vmevar_product_name, .ff-compare-unlabelled) > th,
    .ff-compare-page #main-content-handler .ff-compare-paired .ff-compare-other {
        display: none !important;
    }

    .ff-compare-page #main-content-handler .ff-compare-paired :is(.vmevar_product_name, .ff-compare-unlabelled) > td {
        grid-row: 1;
    }

    .ff-compare-page #main-content-handler .ff-compare-paired .vmevar_product_name > td {
        padding: 34px 8px 8px;
    }

    .ff-compare-page #main-content-handler .ff-compare-paired .vme-image {
        height: 105px;
    }

    .ff-compare-page #main-content-handler .ff-compare-paired .vme-compare-remove > i {
        width: 28px;
        height: 28px;
        line-height: 28px;
    }
}
