.tc-mobile-adapter-zoom-bar {
    display: none;
}

@media screen and (max-width: 768px) {
    .tc-seating-legend,
    .tc_seating_map.active .tc-seating-legend,
    #tc_seating_map .tc-seating-legend {
        position: fixed !important;
        left: 0 !important;
        right: auto !important;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        /* Плашка легенды примыкает к верхней границе нижней панели без зазора */
        bottom: calc(42px + env(safe-area-inset-bottom)) !important;
        z-index: 99998 !important;
        margin: 0 !important;
        padding: 4px calc(10px + env(safe-area-inset-right)) 3px calc(10px + env(safe-area-inset-left)) !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16) !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .tc_seating_map.active .tc-seating-legend ul,
    #tc_seating_map .tc-seating-legend ul {
        margin: 0 !important;
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        align-items: center !important;
        justify-items: start !important;
        gap: 3px 10px !important;
    }

    .tc_seating_map.active .tc-seating-legend li,
    #tc_seating_map .tc-seating-legend li {
        margin: 0 !important;
        min-width: 0 !important;
        font-size: 11px !important;
        line-height: 1.05 !important;
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }

    .tc_seating_map.active .tc-mobile-adapter-zoom-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 10px calc(12px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
        border-radius: 0;
        background: rgba(20, 20, 20, 0.88);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }

    .tc_seating_map.active .tc-mobile-adapter-zoom-bar.is-disabled {
        display: none;
    }

    .tc-mobile-adapter-zoom-btn {
        width: 44px;
        height: 36px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        touch-action: manipulation;
    }

    .tc_seating_map.active .tc-checkout-bar,
    .tc_seating_map.active .tc-seatchart-cart-info {
        min-height: 42px !important;
        height: 42px !important;
    }

    .tc_seating_map.active a.tc-checkout-button,
    .tc_seating_map.active .tc-checkout-button {
        min-height: 42px !important;
        height: 42px !important;
        line-height: 42px !important;
        font-size: 14px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .tc-mobile-adapter-zoom-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    /* Реальные мобильные контролы Tickera (+, -, В корзину) */
    .tc_seating_map.active .tc-bottom-controls,
    .tc_seating_map.active .tc-bottom-controls-inside {
        min-height: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: space-between !important;
    }

    .tc_seating_map.active .tc-zoom-wrap {
        flex: 0 0 104px !important;
        width: 104px !important;
        min-width: 104px !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        position: static !important;
        z-index: 2 !important;
    }

    .tc_seating_map.active .tc-minus-wrap,
    .tc_seating_map.active .tc-plus-wrap {
        position: relative !important;
        width: 40px !important;
        height: 35px !important;
        min-width: 40px !important;
        min-height: 35px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        background: rgba(88, 73, 126, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.45) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        overflow: hidden !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 3 !important;
    }

    .tc_seating_map.active .tc-minus-wrap .tc-minus,
    .tc_seating_map.active .tc-plus-wrap .tc-plus-horizontal,
    .tc_seating_map.active .tc-plus-wrap .tc-plus-vertical {
        display: none !important;
    }

    /* Рисуем +/- геометрией, чтобы символы были строго по центру кнопок */
    .tc_seating_map.active .tc-minus-wrap::before,
    .tc_seating_map.active .tc-plus-wrap::before {
        display: block !important;
        content: "" !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 14px !important;
        height: 2px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
        pointer-events: none !important;
        z-index: 3 !important;
    }

    .tc_seating_map.active .tc-plus-wrap::after {
        display: block !important;
        content: "" !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 2px !important;
        height: 14px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
        pointer-events: none !important;
        z-index: 3 !important;
    }

    .tc_seating_map.active .tc-seatchart-cart-info,
    .tc_seating_map.active .tc-checkout-bar {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        flex: 0 0 152px !important;
        width: 152px !important;
        min-width: 152px !important;
        max-width: 152px !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 42px !important;
        min-height: 42px !important;
        z-index: 2 !important;
    }

    .tc_seating_map.active a.tc-checkout-button,
    .tc_seating_map.active .tc-checkout-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 42px !important;
        height: 42px !important;
        line-height: 1 !important;
        font-size: 12px !important;
        text-transform: uppercase !important;
        letter-spacing: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
}
