/* Smartphone Italia — site-wide responsive + Apple design tokens (20260704-responsive-audit)
 * Loaded on ALL pages via head.tpl. Breakpoints:
 *   xs 320–430 | sm 431–575 | md 576–767 | lg 768–991 | xl 992+
 */

/* ── 0. Apple design system (global) ── */
:root {
    color-scheme: light;
    --si-bg: #ffffff;
    --si-bg-alt: #f5f5f7;
    --si-text: #1d1d1f;
    --si-text-secondary: #6e6e73;
    --si-accent: #39b54a;
    --si-accent-hover: #0d8224;
    --si-line: rgba(0, 0, 0, 0.08);
    --si-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    --si-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.08);
    --si-font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    --si-radius: 18px;
    --si-radius-pill: 980px;
    --si-transition: 0.3s ease;

    /* Scroll-to-top + bottom nav stacking (mobile) */
    --si-bottom-nav-height: 56px;
    --si-bottom-nav-offset: calc(var(--si-bottom-nav-height, 56px) + env(safe-area-inset-bottom, 0px));
    --si-chat-widget-height: 72px;
    --si-chat-gap: 16px;
    --si-chat-bottom-mobile: calc(var(--si-bottom-nav-offset) + var(--si-chat-gap));
    --si-chat-bottom-desktop: max(24px, calc(env(safe-area-inset-bottom, 0px) + 20px));
    --si-scroll-top-gap: 16px;
    --si-scroll-top-z: 99985;
    --si-scroll-top-bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + var(--si-scroll-top-gap)));
    --si-scroll-top-bottom-mobile: calc(var(--si-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + var(--si-scroll-top-gap));
    --si-scroll-top-bottom-with-chat: calc(var(--si-bottom-nav-height) + var(--si-chat-widget-height) + env(safe-area-inset-bottom, 0px) + var(--si-scroll-top-gap));
}

.si-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--si-font);
    color: var(--si-text);
    background: var(--si-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--si-accent);
    transition: color var(--si-transition);
}

a:hover {
    color: var(--si-accent-hover);
}

.btn-primary,
button.btn-primary,
input.btn-primary[type="submit"] {
    background: var(--si-accent) !important;
    border-color: var(--si-accent) !important;
    border-radius: var(--si-radius-pill) !important;
    font-weight: 500;
    transition: background var(--si-transition), border-color var(--si-transition), transform var(--si-transition);
}

.btn-primary:hover,
button.btn-primary:hover {
    background: var(--si-accent-hover) !important;
    border-color: var(--si-accent-hover) !important;
    transform: scale(1.02);
}

/* Hide ThemeVolty visual noise site-wide where possible */
.tvcmsslider-offerbanner-wrapper .tvheader-nav-offer-text i.material-icons,
.tvcmsnewsletterpopup,
.tvcmscookies-notice {
    /* keep functional — only soften if needed */
}

.tvcmsnewsletterpopup .tvnewsletterpopup-btn,
.tvcmscookies-notice .tvcookies-notice-btn {
    border-radius: var(--si-radius-pill) !important;
    background: var(--si-accent) !important;
    border-color: var(--si-accent) !important;
}

/* ── 1. Global foundation ── */
html {
    box-sizing: border-box;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

img,
video,
svg,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* Photo quality — never crisp-edges (pixelates photos); avoid wash-out filters */
img,
video {
    image-rendering: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-header h1,
.page-header .h1,
.tvpage-header-title {
    color: #1d1d1f;
}

a:not(.btn):not(.btn-primary) {
    color: #39b54a;
}

a:not(.btn):not(.btn-primary):hover {
    color: #0d8224;
}

.tv-img-responsive,
.thumbnail img,
.product-thumbnail img,
.cms-description img {
    max-width: 100%;
    height: auto;
}

.tv-main-div,
#wrapper,
#content-wrapper,
.container,
.container-fluid {
    max-width: 100%;
}

/* iOS: prevent zoom on input focus */
input,
select,
textarea,
.form-control {
    font-size: 16px;
}

@media (min-width: 992px) {
    input,
    select,
    textarea,
    .form-control {
        font-size: inherit;
    }
}

/* Touch targets — interactive controls only (not inline text links) */
button,
.btn,
.nav-link,
.page-link,
.tvproduct-view,
.tvleft-right-title-wrapper,
.tvmobile-sliderbar-btn a,
.tvbottom-to-top-icon,
input[type="submit"],
input[type="button"],
input[type="checkbox"],
input[type="radio"] {
    min-height: 44px;
}

/* Safe areas (notch / home indicator) */
body {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

#footer,
.tvfooter-copy-payment-icon-wrapper {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0));
}

/* ── 2. Header (all pages) ── */
@media (max-width: 991px) {
    .tvcmsdesktop-top-header-wrapper .container,
    .tvcmsdesktop-top-header-wrapper .container-fluid {
        padding-left: max(12px, env(safe-area-inset-left, 0));
        padding-right: max(12px, env(safe-area-inset-right, 0));
    }

    .tvheader-offer-wrapper {
        overflow: hidden;
        max-width: 100%;
    }

    .tvheader-nav-offer-text {
        display: flex;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100%;
    }

    .tvheader-nav-offer-text::-webkit-scrollbar {
        display: none;
    }

    .tvheader-nav-offer-text p {
        white-space: nowrap;
        margin: 0;
        font-size: clamp(0.6875rem, 2.8vw, 0.8125rem);
    }

    .tvheader-language-currency-wrapper {
        display: none;
    }

    /* Do not clip hamburger / cart — dropdowns use position:fixed (see si-mobile-fix header-clip) */
    #tvcms-mobile-view-header,
    .tvcmsmobile-header-wrapper,
    .tvcmsmobile-header-menu-offer-text,
    .tvcmsmobile-header-menu,
    .tvcmsmobile-cart-acount-text,
    .tvcmsmobile-header-logo-right-wrapper {
        max-width: 100%;
        overflow: visible;
    }

    .tvcmsmobile-header-search,
    .tvheader-mobile-search,
    .tvsearch-wrapper,
    .tvsearch-header-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .tvcmsmobile-header-search input,
    .tvsearch-wrapper input[type="text"],
    .tvsearch-header-wrapper input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .tvcmsdesktop-top-header-wrapper .tvcmsdesktop-top-header {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .tvheader-nav-offer-text i.material-icons {
        font-size: 18px;
        flex-shrink: 0;
    }
}

/* ── 3. Layout & containers ── */
@media (max-width: 991px) {
    .container.tv-left-layout,
    .container.tv-full-layout,
    .container.tv-right-layout {
        padding-left: max(12px, env(safe-area-inset-left, 0));
        padding-right: max(12px, env(safe-area-inset-right, 0));
        width: 100%;
        max-width: 100%;
    }

    .container.tv-left-layout > .row,
    .container.tv-full-layout > .row {
        margin-left: 0;
        margin-right: 0;
    }

    #left-column,
    #right-column,
    #content-wrapper,
    #content-wrapper.left-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        padding-left: 0;
        padding-right: 0;
    }

    .tvall-block-box-shadows,
    .tvleft-penal-product-top,
    .tv-category-main-div {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ── 4. Listing / category / search ── */
@media (max-width: 991px) {
    #js-product-list-top.products-selection {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        padding: 12px;
    }

    #js-product-list-top .tv-left-search-totle-product,
    #js-product-list-top .tv-grid-list-all-wrapper,
    #js-product-list-top .tvall-page-shortby {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .tvcmsproduct-grid-list {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: flex-start;
    }

    .products-sort-order,
    .sort-by-row {
        width: 100%;
        max-width: 100%;
    }

    .products-sort-order .select-title,
    .products-sort-order select {
        width: 100%;
        max-width: 100%;
    }
}

/* Product grid columns — skip B2B listing pages (si-category.css owns 2-col mobile) */
@media (max-width: 575px) {
    body:not(#category):not(#search):not(#manufacturer):not(#new-products):not(#prices-drop):not(#best-sales) #products .products .product-miniature,
    body:not(#category):not(#search):not(#manufacturer):not(#new-products):not(#prices-drop):not(#best-sales) #js-product-list .products .product-miniature,
    body:not(#category):not(#search):not(#manufacturer):not(#new-products):not(#prices-drop):not(#best-sales) .tvgrid-list-view-product .product-miniature {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    #products .products .product-miniature,
    #js-product-list .products .product-miniature,
    .tvgrid-list-view-product .product-miniature {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #products .products .product-miniature,
    #js-product-list .products .product-miniature,
    .tvgrid-list-view-product .product-miniature {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        width: 33.333% !important;
    }
}

#products .products,
#js-product-list .products,
.tvgrid-list-view-product .products {
    display: flex;
    flex-wrap: wrap;
    margin-left: -6px;
    margin-right: -6px;
}

#products .products .product-miniature,
#js-product-list .products .product-miniature {
    padding-left: 6px;
    padding-right: 6px;
}

/* Subcategory cards on category page */
@media (max-width: 767px) {
    .tv-sub-category-wrapper,
    .tvcategory-name-image {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tv-sub-category-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
}

/* Pagination */
@media (max-width: 767px) {
    .pagination,
    .pagination .page-list.tv-pagination-wrapper,
    .pagination .page-list.tvinner-page-pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0;
    }

    .pagination .tv-pagination-wrapper a {
        margin-left: 0;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pagination .tv-pagination-wrapper li a {
        line-height: normal;
    }
}

/* ── 5. Product page ── */
@media (max-width: 991px) {
    .tvprduct-image-info-wrapper,
    .tvprduct-image-info-wrapper.row {
        display: flex;
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }

    .tv-product-page-image,
    .tv-product-page-content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .tv-product-page-image .images-container,
    .tv-product-page-image .product-cover {
        max-width: 100%;
        margin: 0 auto;
    }

    .product-actions .add-to-cart,
    .product-add-to-cart .add,
    .product-add-to-cart button.add-to-cart,
    .product-add-to-cart .btn-primary {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
    }

    .product-quantity,
    .tvproduct-cart-btn,
    .product-add-to-cart .qty {
        max-width: 100%;
    }

    .tabs.tvproduct-description-tab .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        scrollbar-width: none;
    }

    .tabs.tvproduct-description-tab .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .tabs.tvproduct-description-tab .nav-item {
        flex: 0 0 auto;
    }

    .tabs.tvproduct-description-tab .nav-link {
        white-space: nowrap;
        padding: 12px 16px;
    }

    .product-description table,
    .cms-description table {
        display: block;
        width: 100% !important;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tvcms-product-brand-logo img {
        max-width: 140px;
        height: auto;
    }
}

/* ── 6. Brands / manufacturers ── */
@media (max-width: 767px) {
    .manufacturer-list,
    .tvbrand-list-wrapper,
    .tv-manufacturer-wrapper,
    #manufacturers .products,
    .brand-infos {
        max-width: 100%;
    }

    .manufacturer-list .manufacturer-item,
    .tvbrand-list-wrapper .tvbrand-list,
    #manufacturers .product-miniature {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 430px) {
    .manufacturer-list .manufacturer-item,
    .tvbrand-list-wrapper .tvbrand-list,
    #manufacturers .product-miniature {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ── 7. Footer (legacy ThemeVolty — preserve si-footer CSS grid) ── */
#footer .si-footer__grid {
    display: grid !important;
}

#footer .si-footer__bar-inner {
    display: flex !important;
}

@media (max-width: 991px) {
    #footer .tvfooter-main-div .row,
    .tvfooter-copy-payment-icon-inner,
    .tvdekstop-footer-all-title-wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    #footer [class*="col-xl"],
    #footer [class*="col-lg"],
    #footer [class*="col-md"],
    .tvfooter-copy-payment-icon-inner > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .tvfooter-title,
    .tvfooter-title-wrapper .tvfooter-title,
    .tvdekstop-footer-all-title-wrapper .tvfooter-title {
        font-size: 1rem;
        line-height: 1.4;
    }

    .tvfooter-store-link-wrapper ul,
    .tvfooter-link-wrapper ul {
        padding-left: 0;
    }

    .tvfooter-store-link-wrapper li,
    .tvfooter-link-wrapper li {
        margin-bottom: 8px;
    }

    .tvfooter-payment-icon-img-block {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
}

/* ── 8. Forms — login / registration / contact / checkout ── */
@media (max-width: 991px) {
    .page-authentication #content,
    .page-registration #content,
    .page-contact #content,
    .page-customer-account #content {
        max-width: 100%;
        padding-left: max(12px, env(safe-area-inset-left, 0));
        padding-right: max(12px, env(safe-area-inset-right, 0));
    }

    .page-authentication .form-group,
    .page-registration .form-group,
    .register-form .form-group,
    .login-form .form-group,
    #customer-form .form-group {
        max-width: 100%;
    }

    .page-authentication input.form-control,
    .page-authentication select.form-control,
    .page-authentication textarea.form-control,
    .page-registration input.form-control,
    .page-registration select.form-control,
    .register-form input,
    .login-form input,
    #customer-form input,
    #customer-form select,
    #customer-form textarea {
        width: 100%;
        max-width: 100%;
    }

    .page-authentication .form-control-label,
    .page-registration .form-control-label {
        display: block;
        margin-bottom: 6px;
    }

    .page-authentication .btn-primary,
    .page-registration .btn-primary,
    .login-form button,
    .register-form button,
    #customer-form .btn-primary {
        width: 100%;
        min-height: 48px;
    }

    .page-authentication .row,
    .page-registration .row {
        margin-left: 0;
        margin-right: 0;
    }

    .page-authentication [class*="col-"],
    .page-registration [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

/* ── 9. Cart / checkout / CMS tables ── */
@media (max-width: 767px) {
    .cart-grid-body,
    .cart-grid-right,
    .checkout-step {
        max-width: 100%;
    }

    .cart-item,
    .product-line-grid {
        flex-wrap: wrap;
    }

    .cart-overview .media,
    .order-line {
        max-width: 100%;
        overflow-x: auto;
    }

    .page-cms table,
    .cms-page table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── 9b. Sidebar cart mobile — delete (trash) tap target (20260704-cart-mobile) ── */
@media (max-width: 767px) {
    .ttvcmscart-show-dropdown-right {
        padding-right: max(12px, env(safe-area-inset-right, 0)) !important;
        padding-left: env(safe-area-inset-left, 0);
    }

    .ttvcmscart-show-dropdown-right .ttvcart-product-wrapper {
        padding: 12px max(12px, env(safe-area-inset-right, 0)) 12px max(12px, env(safe-area-inset-left, 0)) !important;
    }

    /* Was absolute top-right (screen edge); move to left column beside thumbnail */
    .ttvcmscart-show-dropdown-right .tvcart-product-remove {
        position: absolute !important;
        right: auto !important;
        left: max(8px, env(safe-area-inset-left, 0)) !important;
        top: 50% !important;
        transform: translateY(-50%);
        width: auto !important;
        z-index: 12;
        pointer-events: auto;
    }

    .ttvcmscart-show-dropdown-right .tvcart-product-remove .remove-from-cart,
    .ttvcmscart-show-dropdown-right .tvcart-product-remove .tvcmsremove-from-cart {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px !important;
        min-height: 44px !important;
        width: 44px;
        height: 44px;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 8px;
        /* custom.css: icon via sprite on <a>; prior fix used background shorthand → sprite gone */
        background-color: rgba(0, 0, 0, 0.04);
        background-image: none !important;
        color: #666;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .ttvcmscart-show-dropdown-right .tvcart-product-remove .remove-from-cart:active,
    .ttvcmscart-show-dropdown-right .tvcart-product-remove .tvcmsremove-from-cart:active {
        background-color: rgba(0, 0, 0, 0.1);
    }

    /* custom.css hides <i class="material-icons"> (display:none); show delete glyph in tap area */
    .ttvcmscart-show-dropdown-right .tvcart-product-remove .remove-from-cart i,
    .ttvcmscart-show-dropdown-right .tvcart-product-remove .remove-from-cart svg {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-family: 'Material Icons' !important;
        font-size: 22px !important;
        line-height: 1 !important;
        width: auto !important;
        height: auto !important;
        color: #777 !important;
        pointer-events: none;
    }

    .ttvcmscart-show-dropdown-right .tvcart-product-remove .remove-from-cart:active i {
        color: #c0392b !important;
    }

    /* Reserve space: image + delete column on the left */
    .ttvcmscart-show-dropdown-right .tvcart-product-list-img {
        margin-left: 48px;
        margin-right: 10px;
    }

    .ttvcmscart-show-dropdown-right .tvcart-product-content {
        max-width: none;
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 4px;
    }
}

/* ── 10. Breadcrumb & page titles ── */
@media (max-width: 767px) {
    #wrapper .breadcrumb,
    .tvall-page-top-title {
        padding: 10px 12px;
        margin-bottom: 16px;
        font-size: 0.8125rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .tvpage-header-title,
    .page-header h1,
    .page-header .h1 {
        font-size: clamp(1.125rem, 5vw, 1.5rem);
        word-break: break-word;
    }
}

/* ── 11. Misc overflow guards ── */
@media (max-width: 991px) {
    .tvcmsslider,
    .tvcmsslider-main-div,
    .tvcmsbanner,
    .modal-dialog,
    .dropdown-menu {
        max-width: 100vw;
    }

    pre,
    code {
        max-width: 100%;
        overflow-x: auto;
        word-break: break-word;
    }
}

/* ── 12. Listing toolbar — hide legacy ThemeVolty grid toggles (20260705-search-listing-fix) ── */
@media (min-width: 992px) {
    body#category #js-product-list-top .tv-grid-list-all-wrapper,
    body#search #js-product-list-top .tv-grid-list-all-wrapper,
    body#manufacturer #js-product-list-top .tv-grid-list-all-wrapper,
    body#new-products #js-product-list-top .tv-grid-list-all-wrapper,
    body#prices-drop #js-product-list-top .tv-grid-list-all-wrapper,
    body#best-sales #js-product-list-top .tv-grid-list-all-wrapper,
    body#category #js-product-list-top .tvcmsproduct-grid-list,
    body#search #js-product-list-top .tvcmsproduct-grid-list,
    body#manufacturer #js-product-list-top .tvcmsproduct-grid-list,
    body#new-products #js-product-list-top .tvcmsproduct-grid-list,
    body#prices-drop #js-product-list-top .tvcmsproduct-grid-list,
    body#best-sales #js-product-list-top .tvcmsproduct-grid-list,
    body#category #js-product-list-top .tvproduct-view,
    body#search #js-product-list-top .tvproduct-view,
    body#manufacturer #js-product-list-top .tvproduct-view,
    body#new-products #js-product-list-top .tvproduct-view,
    body#prices-drop #js-product-list-top .tvproduct-view,
    body#best-sales #js-product-list-top .tvproduct-view,
    body#category #js-product-list-top .tvmobile-view-grid-list,
    body#search #js-product-list-top .tvmobile-view-grid-list,
    body#manufacturer #js-product-list-top .tvmobile-view-grid-list,
    body#new-products #js-product-list-top .tvmobile-view-grid-list,
    body#prices-drop #js-product-list-top .tvmobile-view-grid-list,
    body#best-sales #js-product-list-top .tvmobile-view-grid-list {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    body#category #js-product-list-top .si-mobile-view-toggle,
    body#search #js-product-list-top .si-mobile-view-toggle,
    body#manufacturer #js-product-list-top .si-mobile-view-toggle,
    body#new-products #js-product-list-top .si-mobile-view-toggle,
    body#prices-drop #js-product-list-top .si-mobile-view-toggle,
    body#best-sales #js-product-list-top .si-mobile-view-toggle {
        display: inline-flex !important;
        visibility: visible !important;
    }
}

/* ── 13. Cookie notice — mobile bottom nav spacing (20260705-mobile-cookie) ── */
@media (max-width: 767px) {
    .tvcmscookies-notice {
        left: 12px !important;
        right: 12px !important;
        bottom: calc(var(--si-bottom-nav-height, 56px) + env(safe-area-inset-bottom, 0px) + 12px) !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        padding: 14px 14px 12px !important;
        border-radius: 18px !important;
        background: rgba(29, 29, 31, 0.96) !important;
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28) !important;
        z-index: 100050 !important;
        text-align: left !important;
        overflow: hidden !important;
    }

    .tvcmscookies-notice .tvcookies-notice-img-wrapper,
    .tvcmscookies-notice .tvcookies-notice-img-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .tvcmscookies-notice .tvcookie-content-box {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .tvcmscookies-notice .tvcookies-notice-title {
        padding: 0 !important;
        color: #fff !important;
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        font-weight: 400 !important;
    }

    .tvcmscookies-notice .tvcookies-notice-title a {
        color: #fff !important;
        text-decoration: underline !important;
        text-underline-offset: 2px;
    }

    .tvcmscookies-notice .tvcookie-btn-wrapper {
        display: none !important;
        float: none !important;
    }

    .tvcmscookies-notice .tvcookies-notice-icon {
        display: flex !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }

    .tvcmscookies-notice .tvclose-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 112px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 10px 18px !important;
        border: 0 !important;
        border-radius: var(--si-radius-pill) !important;
        background: var(--si-accent) !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        box-shadow: 0 8px 20px rgba(57, 181, 74, 0.28) !important;
        cursor: pointer;
        touch-action: manipulation;
    }

    .tvcmscookies-notice .tvclose-icon span {
        color: inherit !important;
        line-height: 1 !important;
    }
}

@media (max-width: 430px) {
    .tvcmscookies-notice {
        left: 10px !important;
        right: 10px !important;
        max-width: calc(100vw - 20px) !important;
        padding: 12px !important;
    }

    .tvcmscookies-notice .tvcookies-notice-title {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}
