/* GANK - paneles laterales y carrito vacío */

.ttvcart-no-product {
    position: relative;
    min-height: 100%;
    background-color: #ffffff;
    background-image: url('/themes/v1_organic_78/assets/img/gank-empty-cart-cat.png');
    background-position: center calc(50% - 18px);
    background-repeat: no-repeat;
    background-size: min(84%, 290px) auto;
}

.ttvcart-no-product .gank-empty-cart-message {
    position: absolute;
    right: 20px;
    bottom: 9%;
    left: 20px;
    margin: 0;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

@media (max-width: 991px) {
    /* The search field belongs to the sticky header.  Hide it whenever a
       right-hand panel is open so it cannot sit above the panel content. */
    body.classicCartOpen #tvcms-mobile-view-header .tvcmsmobile-header-search-logo-wrapper,
    body.gank-account-drawer-open #tvcms-mobile-view-header .tvcmsmobile-header-search-logo-wrapper {
        display: none !important;
    }

    .ttvcmscart-show-dropdown-right,
    .tvmobile-slidebar,
    .tv-account-dropdown.open {
        height: 100vh;
        height: 100dvh;
        overscroll-behavior: contain;
        touch-action: pan-y;
        will-change: transform;
    }

    .ttvcmscart-show-dropdown-right.gank-drawer-dragging,
    .tvmobile-slidebar.gank-drawer-dragging,
    .tv-account-dropdown.open.gank-drawer-dragging {
        transition: none !important;
    }

    body.classicCartOpen .full-wrapper-backdrop,
    body.gank-account-drawer-open .full-wrapper-backdrop {
        position: fixed;
        /* Keep the dimmer below the sticky header, which contains both drawers. */
        z-index: 99;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        background: rgba(20, 24, 31, .38);
        opacity: 1;
        pointer-events: auto;
    }

    .ttvcmscart-show-dropdown-right {
        z-index: 1002;
    }

    .ttvcmscart-show-dropdown-right .ttvcart-close-title-count::before,
    .tv-account-dropdown.open::before {
        position: absolute;
        top: 8px;
        left: 50%;
        width: 38px;
        height: 4px;
        border-radius: 999px;
        background: #d5d5d5;
        content: '';
        transform: translateX(-50%);
    }

    .tv-account-dropdown.open {
        position: fixed !important;
        z-index: 1003 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        display: block !important;
        width: min(calc(100vw - 48px), 380px);
        min-width: min(calc(100vw - 48px), 380px);
        max-width: calc(100vw - 48px);
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 60px 0 24px;
        overflow-x: hidden;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        background: #ffffff;
        box-shadow: -10px 0 28px rgba(0, 0, 0, .14);
    }

    .tv-account-dropdown.open > li:not(.gank-mobile-drawer-heading) {
        min-height: 54px;
        margin: 0;
        padding: 6px 22px;
        border-bottom: 1px solid #eceff1;
    }

    .tv-account-dropdown.open > li:not(.gank-mobile-drawer-heading) a {
        display: flex;
        align-items: center;
        min-height: 42px;
        font-size: 15px;
    }

    .tv-account-dropdown .gank-mobile-drawer-heading {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        margin: 0;
        border-bottom: 1px solid #eceff1;
        color: #1f2933;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .gank-mobile-drawer-close {
        position: absolute;
        z-index: 1;
        top: 13px;
        right: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: #202124;
        font-size: 25px;
        line-height: 1;
    }

    .gank-mobile-drawer-close:focus-visible {
        outline: 2px solid #f5b800;
        outline-offset: 2px;
    }

    .ttvcart-no-product {
        background-position: center calc(50% - 8px);
        background-size: min(88%, 300px) auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ttvcmscart-show-dropdown-right,
    .tvmobile-slidebar,
    .tv-account-dropdown.open {
        transition-duration: .01ms !important;
    }
}
