.e20-live-category-filter,
.e20-live-empty-cart-action,
.e20-mobile-detail-toggle,
.e20-mobile-purchase-bar,
.e20-mobile-gallery-pagination,
.e20-mobile-product-title,
.e20-mobile-quantity > button {
    display: none;
}

.wp-theme-hydroflask-local:not(.elementor-editor-active) #codex-site-footer .e20-footer-link-list .elementor-icon-list-item:not(:has(a[href])),
.wp-theme-hydroflask-local:not(.elementor-editor-active) #codex-site-footer .e20-footer-optional-link:not(:has(a[href])),
.wp-theme-hydroflask-local:not(.elementor-editor-active) #codex-site-footer :is(.e-con, .elementor-widget-wrap):has(> .hf-footer-group-title):has(> .e20-footer-link-list):not(:has(> .e20-footer-link-list a[href])) {
    display: none;
}

@media (max-width: 767px) {
    body:is(.wp-theme-olay-study, .wp-theme-beats-store, .wp-theme-yeti-local, .wp-theme-hydroflask-local)
        > #codex-top-announcement.codex-top-announcement:has(.e20-live-announcement) {
        display: none !important;
    }

    .wp-theme-hydroflask-local .hf-native-chrome:has(#codex-top-announcement.e20-mobile-placed)
        :is(.hf-native-promo, .hf-promo-bar) {
        display: none !important;
    }

    .wp-theme-hydroflask-local #codex-top-announcement.e20-mobile-placed {
        order: 2;
        position: relative;
        z-index: auto;
        min-height: 42px;
    }

    .e20-mobile-placed .elementor-heading-title {
        color: #fff;
    }

    .wp-theme-olay-study .section--announcement {
        border-block-end: 4px solid #bb1730;
    }

    .wp-theme-yeti-local.single-product .ysx-quicklinks {
        display: none;
    }

    .wp-theme-yeti-local:not(.elementor-editor-active) .ysx-footer-groups:has(> details a[href]) > details:not(:has(a[href])),
    .wp-theme-yeti-local:not(.elementor-editor-active) .ysx-footer-groups:has(> details a[href]) > details > ul > li:has(> [data-ysx-held]) {
        display: none;
    }

    .e20-live-interface {
        --e20-mobile-gutter: 16px;
        width: calc(100% - 2 * var(--e20-mobile-gutter));
        padding-block: 10px 32px;
    }

    .e20-live-interface .e20-live-layout,
    .e20-live-interface .e20-live-catalog-tools,
    .e20-live-interface .e20-live-product-hero,
    .e20-live-interface .e20-live-product-images,
    .e20-live-interface .e20-live-product-summary,
    .e20-live-card .e20-live-card-layout {
        --padding-top: 0px;
        --padding-right: 0px;
        --padding-bottom: 0px;
        --padding-left: 0px;
        min-width: 0;
    }

    .e20-live-interface .e20-live-layout,
    .e20-live-interface .e20-live-catalog-tools {
        --gap: 10px;
    }

    .e20-live-interface .e20-live-part:empty,
    .e20-live-interface .e20-live-layout .elementor-widget-e20-store-component:not(:has(.e20-live-part)),
    .e20-live-interface .e20-live-layout .elementor-widget:has(.woocommerce-notices-wrapper:empty) {
        display: none;
    }

    .e20-live-interface .e20-live-part-breadcrumb .woocommerce-breadcrumb {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
        font-size: 12px;
        line-height: 1.5;
    }

    .elementor-editor-active .e20-live-layout .elementor-widget-e20-store-component {
        display: block;
    }

    .e20-live-part ul.products:has(> li.e20-live-card) > li.e20-live-card {
        width: auto !important;
        max-width: none;
        min-width: 0;
        margin: 0;
    }

    .e20-live-card .e20-live-card-layout {
        --gap: 7px;
    }

    .e20-live-card .e20-live-part-card-title h2 {
        font-size: clamp(14px, 3.8vw, 16px);
        line-height: 1.25;
        overflow-wrap: break-word;
    }

    .e20-live-card .e20-live-part-card-buy .button {
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
        min-height: 40px;
        padding: 8px;
        line-height: 1.2;
        text-align: center;
    }

    .e20-live-part-archive-title h1 {
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.12;
    }

    .e20-live-interface .e20-live-part-result-count .woocommerce-result-count {
        margin: 0;
        font-size: 13px;
    }

    .e20-live-interface .e20-live-part-sort form {
        margin: 0;
    }

    .e20-live-interface .e20-live-part-sort select,
    .e20-live-filter-trigger {
        box-sizing: border-box;
        display: block;
        width: 100%;
        min-height: 38px;
        border: 1px solid #b9b9b9;
        border-radius: 2px;
        background: #fff;
        color: inherit;
        padding: 8px 10px;
        font: inherit;
        font-size: 13px;
    }

    .e20-live-category-inline {
        display: flex;
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        padding-bottom: 5px;
    }

    .e20-live-category-inline a {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        min-height: 44px;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .wp-theme-beats-store .e20-live-category-inline a {
        border: 0;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        padding: 7px 5px;
        font-weight: 600;
    }

    .wp-theme-beats-store .e20-live-category-inline a[aria-current="page"] {
        border-bottom-color: currentColor;
    }

    .e20-live-part-category-nav:has(.e20-live-category-filter:not([hidden])) > .e20-live-category-inline {
        display: none;
    }

    .e20-live-category-filter:not([hidden]) {
        display: block;
        min-width: 0;
    }

    .e20-live-filter-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .e20-live-filter-trigger::after {
        content: "";
        width: 7px;
        height: 7px;
        margin-inline-start: 8px;
        border: solid currentColor;
        border-width: 0 1px 1px 0;
        transform: rotate(45deg);
    }

    .e20-live-filter-dialog[open] {
        position: fixed;
        inset: 0 0 0 auto;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        width: min(100%, 440px);
        height: 100dvh;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        background: #fff;
        color: #171717;
    }

    .wp-theme-olay-study .e20-live-filter-dialog[open] {
        inset: auto 0 0;
        width: 100%;
        height: calc(100dvh - 72px);
    }

    .e20-live-filter-dialog::backdrop {
        background: rgb(0 0 0 / .45);
    }

    html:has(.e20-live-filter-dialog[open]) {
        overflow: hidden;
    }

    .e20-live-filter-header,
    .e20-live-filter-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
    }

    .e20-live-filter-header {
        border-bottom: 1px solid #dedede;
    }

    .e20-live-filter-header h2 {
        margin: 0;
        font-size: 19px;
    }

    .e20-live-filter-header button {
        width: 44px;
        min-height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        font-size: 24px;
    }

    .e20-live-filter-content {
        padding: 16px;
        overflow: auto;
        overscroll-behavior: contain;
    }

    .e20-live-filter-content .e20-live-category-links a {
        font-size: 14px;
        padding: 6px 8px;
    }

    .e20-live-price-filter {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 12px 0 0;
    }

    .e20-live-price-filter label {
        display: grid;
        gap: 3px;
        font-size: 13px;
    }

    .e20-live-price-filter input {
        width: 100%;
        min-width: 0;
        min-height: 36px;
    }

    .e20-live-filter-actions {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        border-top: 1px solid #dedede;
    }

    .e20-live-filter-actions a,
    .e20-live-filter-actions button,
    .e20-live-return-to-shop,
    .e20-live-empty-cart-action a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }

    .e20-live-empty-cart-action {
        display: block;
        margin: 12px 0 20px;
        text-align: center;
    }

    .e20-live-filter-actions button {
        padding: 8px 18px;
        border: 1px solid #171717;
        background: #171717;
        color: #fff;
    }

    .e20-live-interface .e20-live-layout:has(> .elementor-widget .e20-live-category-filter:not([hidden])):has(.e20-live-part-sort select) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .e20-live-interface .e20-live-layout:has(> .elementor-widget .e20-live-category-filter:not([hidden])):has(.e20-live-part-sort select) > * {
        grid-column: 1 / -1;
    }

    .e20-live-interface .e20-live-layout:has(.e20-live-part-sort select)
        > .elementor-widget:has(.e20-live-category-filter:not([hidden])) {
        grid-column: 1;
    }

    .e20-live-interface .e20-live-layout:has(> .elementor-widget .e20-live-category-filter:not([hidden])):has(.e20-live-part-sort select)
        > .e20-live-catalog-tools {
        grid-column: 2;
        flex-direction: column-reverse;
    }

    .wp-theme-hydroflask-local .e20-live-interface:has(.hf-native-collection) .e20-live-part-archive-title {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .wp-theme-hydroflask-local .e20-live-interface .hf-native-collection {
        padding-block: 6px 12px;
    }

    .wp-theme-hydroflask-local .e20-live-interface .hf-native-collection .hf-collection-title {
        font-size: 25px;
        line-height: 1.12;
    }

    .e20-mobile-product-title {
        display: block;
    }

    .e20-desktop-product-title {
        display: none;
    }

    .e20-live-interface .e20-live-pdp .e20-live-part-product-title h1 {
        font-size: clamp(22px, 6.4vw, 28px);
        line-height: 1.13;
        overflow-wrap: break-word;
    }

    .wp-theme-olay-study .e20-live-interface .e20-live-pdp .e20-live-part-product-title h1 {
        font-size: 20px;
    }

    .wp-theme-beats-store .e20-live-interface .e20-live-part-product-title {
        padding-inline: 14px;
    }

    .wp-theme-beats-store .e20-live-interface .e20-live-pdp .e20-live-part-product-title h1 {
        font-size: clamp(25px, 7.5vw, 32px);
    }

    .e20-live-interface .e20-live-pdp .e20-live-part-product-price .price {
        font-size: clamp(18px, 5.6vw, 23px);
        line-height: 1.2;
    }

    .e20-live-interface .e20-live-part-product-buy form.cart:not(.variations_form):has(> .single_add_to_cart_button) {
        display: flex;
        align-items: stretch;
        gap: 10px;
    }

    .e20-live-interface .e20-live-part-product-buy form.cart .quantity {
        flex: 0 0 auto;
        float: none;
        margin: 0;
    }

    .e20-live-interface .e20-live-part-product-buy .single_add_to_cart_button {
        flex: 1 1 auto;
        min-height: 44px;
        white-space: normal;
    }

    .wp-theme-olay-study .e20-live-part-product-buy form.cart .e20-mobile-quantity {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        width: 120px;
        min-height: 44px;
        overflow: hidden;
        border: 1px solid currentColor;
        border-radius: 7px;
    }

    .wp-theme-olay-study .e20-mobile-quantity > button,
    .wp-theme-olay-study .e20-mobile-quantity > input {
        display: block;
        width: 100%;
        min-width: 0;
        height: 100%;
        padding: 0;
        border: 0;
        text-align: center;
    }

    .wp-theme-olay-study .e20-mobile-quantity > button {
        background: #f4f4f4;
        color: inherit;
        font-size: 18px;
    }

    .wp-theme-olay-study .e20-mobile-quantity > button:disabled {
        opacity: .45;
    }

    .wp-theme-olay-study .e20-mobile-quantity > input {
        appearance: textfield;
    }

    .wp-theme-olay-study .e20-mobile-quantity > input::-webkit-inner-spin-button {
        appearance: none;
    }

    .e20-mobile-product-details > .wc-tabs,
    .e20-mobile-product-details .e20-mobile-detail-heading {
        display: none !important;
    }

    .e20-mobile-product-details .e20-mobile-detail-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 44px;
        padding: 8px 0;
        border: 0;
        border-block-end: 1px solid #dedede;
        background: transparent;
        color: inherit;
        font: inherit;
        font-weight: 600;
        text-align: start;
    }

    .e20-mobile-detail-toggle::after {
        content: '+';
        flex: none;
        font-size: 19px;
    }

    .e20-mobile-detail-toggle[aria-expanded='true']::after {
        content: '−';
    }

    .e20-mobile-product-details .e20-mobile-detail-panel {
        display: none !important;
    }

    .e20-mobile-product-details .e20-mobile-detail-open {
        display: block !important;
        padding-block: 14px;
        margin: 0;
    }

    .e20-mobile-detail-open :is(#reviews, #review_form_wrapper) {
        scroll-margin-top: 90px;
    }

    .e20-mobile-purchase-visible {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .e20-mobile-purchase-bar:not([hidden]) {
        position: fixed;
        inset: auto 0 0;
        z-index: 150;
        display: flex;
        align-items: center;
        gap: 10px;
        box-sizing: border-box;
        padding: 10px 16px max(10px, env(safe-area-inset-bottom));
        border-top: 1px solid #dedede;
        background: #fff;
        color: #171717;
    }

    .e20-mobile-purchase-bar img {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    .e20-mobile-purchase-name {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        font-size: 13px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .e20-mobile-purchase-bar .e20-mobile-purchase-action {
        flex: 0 0 auto;
        min-height: 44px;
        margin: 0;
        padding: 8px 12px;
        background: #171717;
        color: #fff;
        font-size: 13px;
        white-space: normal;
    }

    .e20-live-interface .e20-live-part-product-gallery {
        --e20-gallery-slide: 100%;
        --e20-gallery-ratio: 1;
        min-width: 0;
    }

    :is(.wp-theme-olay-study, .wp-theme-beats-store) .e20-live-interface .e20-live-part-product-gallery {
        width: calc(100% + 2 * var(--e20-mobile-gutter));
        margin-inline: calc(-1 * var(--e20-mobile-gutter));
    }

    .wp-theme-olay-study .e20-live-interface .e20-live-part-product-gallery {
        --e20-gallery-slide: 60vw;
    }

    .wp-theme-beats-store .e20-live-interface .e20-live-part-product-gallery {
        --e20-gallery-ratio: 4 / 5;
    }

    .e20-live-interface .e20-live-part-product-gallery .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
        position: relative;
        display: flex;
        gap: 0;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding-inline: 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .wp-theme-olay-study .e20-live-interface .e20-live-part-product-gallery
        .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
        padding-inline: 20vw !important;
    }

    .e20-live-interface .e20-live-part-product-gallery .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper
        > .woocommerce-product-gallery__image {
        display: block;
        flex: 0 0 var(--e20-gallery-slide);
        width: var(--e20-gallery-slide);
        margin: 0;
        scroll-snap-align: center;
    }

    .e20-live-interface .e20-live-part-product-gallery .woocommerce-product-gallery__image img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: var(--e20-gallery-ratio);
        object-fit: contain;
    }

    .e20-mobile-gallery-pagination {
        display: flex;
        justify-content: center;
        gap: 4px;
        max-width: 100%;
        overflow-x: auto;
        padding: 3px 8px;
    }

    .e20-mobile-gallery-pagination button {
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        width: 25px;
        min-height: 26px;
        padding: 0;
        border: 0;
        background: transparent;
        color: currentColor;
    }

    .e20-mobile-gallery-pagination button::after {
        content: "";
        display: block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
        opacity: .32;
    }

    .wp-theme-olay-study .e20-mobile-gallery-pagination button::after {
        width: 100%;
        height: 2px;
        border-radius: 0;
    }

    .e20-mobile-gallery-pagination button[aria-current="true"]::after {
        opacity: 1;
    }
}
