﻿ /* Базовые стили с префиксом approve_ - оптимизировано для мобильных устройств */
        .approve_modal_overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            touch-action: none;
            font-family: "Onest";
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }

        .approve_modal_overlay.approve_active {
            opacity: 1;
            visibility: visible;
        }

        .approve_modal_content {
            background: white;
            border-radius: 20px;
            padding: 24px 20px 20px 20px;
            max-width: 320px;
            width: calc(100% - 40px);
            margin: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            transform: scale(0.9) translateY(20px);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            /* Для мобильных устройств */
            -webkit-tap-highlight-color: transparent;
        }

        .approve_active .approve_modal_content {
            transform: scale(1) translateY(0);
        }

        .approve_modal_header {
            margin-bottom: 12px;
            text-align: center;
        }

        .approve_modal_title {
            font-size: 20px;
            font-weight: 600;
            color: #1a1a1a;
            margin: 0;
            line-height: 1.3;
            /* Для длинных заголовков на мобильных */
            word-wrap: break-word;
        }

        .approve_modal_body {
            margin-bottom: 24px;
            text-align: center;
        }

        .approve_modal_description {
            font-size: 15px;
            color: #666;
            line-height: 1.5;
            margin: 0;
            /* Для длинного текста на мобильных */
            word-wrap: break-word;
        }

        .approve_modal_footer {
            display: flex;
            flex-direction: row;
            gap: 12px;
            margin-top: 8px;
        }

        .approve_btn {
            flex: 1;
            padding: 14px 12px;
            font-size: 16px;
            font-weight: 500;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: "Onest";
            /* Улучшение для touch */
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        /* Минимальный размер кнопки для touch (44px рекомендовано Apple) */
        .approve_btn {
            min-height: 44px;
        }

        .approve_btn_cancel {
            background-color: #f5f5f5;
            color: #666;
        }

        .approve_btn_cancel:active {
            background-color: #e0e0e0;
            transform: scale(0.98);
        }

        .approve_btn_confirm {
            background-color: #2196f3;
            color: white;
        }

        .approve_btn_confirm:active {
            background-color: #1976d2;
            transform: scale(0.98);
        }

        /* Адаптация для очень маленьких экранов */
        @media (max-width: 380px) {
            .approve_modal_content {
                padding: 20px 16px 16px 16px;
            }
            
            .approve_modal_title {
                font-size: 18px;
            }
            
            .approve_modal_description {
                font-size: 14px;
            }
            
            .approve_btn {
                padding: 12px 10px;
                font-size: 15px;
            }
        }

        /* Адаптация для планшетов */
        @media (min-width: 768px) {
            .approve_modal_content {
                max-width: 400px;
                padding: 28px 24px 24px 24px;
            }
            
            .approve_modal_title {
                font-size: 22px;
            }
            
            .approve_modal_description {
                font-size: 16px;
            }
        }

        /* Поддержка безопасной зоны на iPhone X и новее */
        @supports (padding: max(0px)) {
            .approve_modal_content {
                padding-left: max(20px, env(safe-area-inset-left));
                padding-right: max(20px, env(safe-area-inset-right));
                padding-bottom: max(20px, env(safe-area-inset-bottom));
            }
        }

        /* Анимация для touch feedback */
        .approve_btn {
            position: relative;
            overflow: hidden;
        }

        .approve_btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s;
        }

        .approve_btn:active::after {
            width: 100%;
            height: 100%;
        }