@layer base {button,[role="button"] {cursor: pointer;}}
/* mobile */

    @media screen and (max-width: 768px) {
        #InnerPageTopBoxBreadcrumbs {
            display: block;
        }
    }
[v-cloak] {
            display: none;
        }


        /* Все стили обернуты в #PublicConstructorPageView */
        #PublicConstructorPageView {
            width: 100%;
            cursor: default;
        }

        /* Анимации для слайдов */
        #PublicConstructorPageView .slide-left-enter-active,
        #PublicConstructorPageView .slide-left-leave-active {
            transition: transform 0.3s ease-out;
        }

        #PublicConstructorPageView .slide-left-enter-from,
        #PublicConstructorPageView .slide-left-leave-to {
            transform: translateX(-100%);
        }

        #PublicConstructorPageView .slide-left-enter-to,
        #PublicConstructorPageView .slide-left-leave-from {
            transform: translateX(0);
        }

        /* Анимация спиннера */
        @keyframes spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        #PublicConstructorPageView .animate-spin {
            animation: spin 1s linear infinite;
        }

        /* Анимация печатания */
        @keyframes bounce {
            0%, 80%, 100% {
                transform: scale(0.6);
                opacity: 0.4;
            }
            40% {
                transform: scale(1);
                opacity: 1;
            }
        }

        #PublicConstructorPageView .animate-bounce {
            animation: bounce 1.4s ease-in-out infinite;
        }

        /* Кастомный скроллбар */
        #PublicConstructorPageView .overflow-y-auto::-webkit-scrollbar,
        #PublicConstructorPageView .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
        }

        #PublicConstructorPageView .overflow-y-auto::-webkit-scrollbar-track,
        #PublicConstructorPageView .custom-scrollbar::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        #PublicConstructorPageView .overflow-y-auto::-webkit-scrollbar-thumb,
        #PublicConstructorPageView .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #d1d1d1;
            border-radius: 3px;
        }

        #PublicConstructorPageView .overflow-y-auto::-webkit-scrollbar-thumb:hover,
        #PublicConstructorPageView .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: #b1b1b1;
        }

        /* Обводка для всех компонентов при наведении */
        #PublicConstructorPageView.Constructor--editable .component-container {
            transition: outline 0.15s ease, outline-offset 0.15s ease;
            width: 100%;
        }

        #PublicConstructorPageView.Constructor--editable .component-container[data-component-code="UICommonLayout"] {
            outline: none !important;
            outline-offset: 0 !important;
        }

        #PublicConstructorPageView .component-container[data-component-code="UICommonLayout"]:hover {
            outline: none !important;
            outline-offset: 0 !important;
            box-shadow: none !important;
        }

        #PublicConstructorPageView input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            background: transparent;
            height: 4px;
            position: relative;
        }

        #PublicConstructorPageView input[type="range"]:focus {
            outline: none;
        }

        #PublicConstructorPageView input[type="range"]::-webkit-slider-runnable-track {
            height: 4px;
            background: #e5e7eb;
            border-radius: 8px;
            margin: 0;
        }

        #PublicConstructorPageView input[type="range"]::-moz-range-track {
            height: 4px;
            background: #e5e7eb;
            border-radius: 8px;
            margin: 0;
        }

        #PublicConstructorPageView input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            background: #3b82f6;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: -6px;
            position: relative;
            top: 50%;
            transform: translateY(0);
        }

        #PublicConstructorPageView input[type="range"]::-webkit-slider-thumb:hover {
            background: #2563eb;
            transform: translateY(0) scale(1.2);
        }

        #PublicConstructorPageView input[type="range"]::-moz-range-thumb {
            width: 16px;
            height: 16px;
            background: #3b82f6;
            border-radius: 50%;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
        }

        #PublicConstructorPageView input[type="range"]::-moz-range-thumb:hover {
            background: #2563eb;
            transform: scale(1.2);
        }

        #PublicConstructorPageView input[type="range"]::-moz-range-progress {
            background-color: #3b82f6;
            height: 4px;
            border-radius: 8px;
        }

        #PublicConstructorPageView [data-grid="UICommonLayout"] {
            display: block;
        }

        #PublicConstructorPageView [data-grid="UICommonLayout"] [data-grid-index="1"] {
            min-height: 400px;
            margin: 0 auto;
            display: none;
        }

        #PublicConstructorPageView [data-grid="UICommonLayout"] [data-grid-index="2"] {
            display: none;
        }

        #PublicConstructorPageView [data-grid="UICommonLayout"] [data-grid-index="0"] {
            display: none;
        }

        .app-load {
            display: block !important;
        }

        #PublicConstructorPageView [data-grid="UICommonLayout"] [data-grid-index="0"] img {
            max-height: 80px;
        }

        #PublicConstructorPageView [data-grid="UICommonLayout"] [data-grid-index="0"] .toolbar-top {
            display: none;
        }

        #PublicConstructorPageView [data-grid="UILayout"] [data-grid-index="1"] {
            min-height: 0 !important;
            max-width: 100% !important;
            margin: auto !important;
        }

        #PublicConstructorPageView .component-toolbar {
            position: absolute;
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            border: 1px solid #e2e8f0;
            display: flex;
            gap: 2px;
            padding: 4px;
            z-index: 20;
            transition: all 0.15s ease;
            backdrop-filter: blur(8px);
            background: rgba(255, 255, 255, 0.98);
        }

        #PublicConstructorPageView .component-toolbar.toolbar-top {
            top: -48px;
            transform-origin: bottom right;
        }

        #PublicConstructorPageView .component-toolbar.toolbar-bottom {
            bottom: -48px;
            transform-origin: top right;
        }

        #PublicConstructorPageView .component-toolbar {
            animation: toolbarFadeIn 0.15s ease;
        }

        @keyframes toolbarFadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        #PublicConstructorPageView .component-toolbar button {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
            color: #64748b;
            font-size: 14px;
        }

        #PublicConstructorPageView .component-toolbar button:hover {
            background: #f1f5f9;
            color: #1e293b;
        }

        #PublicConstructorPageView .component-toolbar button:active {
            transform: scale(0.92);
        }

        #PublicConstructorPageView .component-toolbar .bi {
            font-size: 14px;
        }

        #PublicConstructorPageView .component-toolbar .w-px {
            width: 1px;
            background: #e2e8f0;
            margin: 0 4px;
        }

        #PublicConstructorPageView .component-toolbar .bg-blue-100.text-blue-600 {
            background: #dbeafe;
            color: #2563eb;
        }

        @media (max-width: 640px) {
            #PublicConstructorPageView .component-toolbar {
                padding: 3px;
                gap: 1px;
                border-radius: 10px;
            }

            #PublicConstructorPageView .component-toolbar button {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }

            #PublicConstructorPageView .component-toolbar.toolbar-top {
                top: -42px;
            }

            #PublicConstructorPageView .component-toolbar.toolbar-bottom {
                bottom: -42px;
            }
        }

        #PublicConstructorPageView .component-container[data-component-code="UICommonLayout"] .component-toolbar {
            display: none !important;
        }

        #PublicConstructorPageView .drag-over {
            border-color: #8b5cf6 !important;
            background-color: #f3e8ff !important;
        }

        #PublicConstructorPageView #InnerPageTopBox {
            margin-bottom: 24px;
        }

        #PublicConstructorPageView .overlay-fixed {
            pointer-events: all;
            z-index: 9999;
        }

        /* ============================================
           СТИЛИ ДЛЯ КНОПОК ВСТАВКИ (+ сверху/снизу)
        ============================================ */
        #PublicConstructorPageView .component-container .insert-buttons-wrapper {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            z-index: 25;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        #PublicConstructorPageView .component-container:hover .insert-buttons-wrapper {
            opacity: 1;
            pointer-events: auto;
        }

        #PublicConstructorPageView .component-container .insert-buttons-wrapper.top {
            top: -24px;
            transform: translateX(-50%) translateY(-4px);
        }

        #PublicConstructorPageView .component-container:hover .insert-buttons-wrapper.top {
            transform: translateX(-50%) translateY(0);
        }

        #PublicConstructorPageView .component-container .insert-buttons-wrapper.bottom {
            bottom: -24px;
            transform: translateX(-50%) translateY(4px);
        }

        #PublicConstructorPageView .component-container:hover .insert-buttons-wrapper.bottom {
            transform: translateX(-50%) translateY(0);
        }

        #PublicConstructorPageView .insert-buttons-container {
            display: flex;
            gap: 4px;
            background: white;
            padding: 3px 5px;
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
            border: 1px solid #e2e8f0;
            backdrop-filter: blur(8px);
            background: rgba(255, 255, 255, 0.95);
        }

        #PublicConstructorPageView .insert-btn {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: none;
            background: transparent;
            color: #94a3b8;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 12px;
        }

        #PublicConstructorPageView .insert-btn:hover {
            background: #f1f5f9;
            color: #1e293b;
        }

        #PublicConstructorPageView .insert-btn-up:hover {
            background: #dbeafe;
            color: #2563eb;
        }

        #PublicConstructorPageView .insert-btn-down:hover {
            background: #dbeafe;
            color: #2563eb;
        }

        #PublicConstructorPageView .insert-btn:active {
            transform: scale(0.9);
        }

        #PublicConstructorPageView .component-container[data-component-code="UICommonLayout"] .insert-buttons-wrapper {
            display: none !important;
        }

        /* ============================================
           СТИЛИ ЧАТА В СТИЛЕ МЕССЕНДЖЕРА
        ============================================ */

        #PublicConstructorPageView .chat-messages-container {
            scroll-behavior: smooth;
        }

        #PublicConstructorPageView .chat-message-wrapper {
            margin-bottom: 1.25rem;
        }

        #PublicConstructorPageView .message-bubble {
            padding: 0.875rem 1rem;
            border-radius: 1rem;
            word-wrap: break-word;
            position: relative;
        }

        #PublicConstructorPageView .message-bubble-assistant {
            background: #f3f4f6;
            border: 1px solid #e5e7eb;
            border-bottom-left-radius: 4px;
            color: #1f2937;
        }

        #PublicConstructorPageView .message-bubble-user {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border-bottom-right-radius: 4px;
            color: white;
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
        }

        #PublicConstructorPageView .message-meta {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        #PublicConstructorPageView .message-timestamp {
            font-size: 0.65rem;
            color: #9ca3af;
            margin-top: 0.25rem;
            padding: 0 0.25rem;
        }

        #PublicConstructorPageView .message-user .message-timestamp {
            padding-right: 0.5rem;
        }

        #PublicConstructorPageView .message-assistant .message-timestamp {
            padding-left: 0.5rem;
        }

        #PublicConstructorPageView .typing-indicator {
            display: flex;
            gap: 0.35rem;
            align-items: center;
            padding: 0.25rem 0;
            width: 50px;
        }

        #PublicConstructorPageView .typing-indicator span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #9ca3af;
            animation: typingBounce 1.4s ease-in-out infinite;
        }

        #PublicConstructorPageView .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        #PublicConstructorPageView .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typingBounce {
            0%, 60%, 100% {
                transform: translateY(0);
                opacity: 0.4;
            }
            30% {
                transform: translateY(-8px);
                opacity: 1;
            }
        }

        #PublicConstructorPageView .chat-textarea {
            width: 100%;
            padding: 0.75rem 1rem;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 1.25rem;
            color: #1f2937;
            font-size: 0.875rem;
            line-height: 1.6;
            resize: none;
            transition: all 0.2s ease;
            outline: none;
            font-family: inherit;
        }

        #PublicConstructorPageView .chat-textarea:focus {
            border-color: #8b5cf6;
            background: white;
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
        }

        #PublicConstructorPageView .chat-textarea::placeholder {
            color: #9ca3af;
        }

        #PublicConstructorPageView .chat-textarea:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            background: #f3f4f6;
        }

        #PublicConstructorPageView .chat-input-area {
            background: white;
            padding: 0.75rem 0.5rem 0.25rem 0.5rem;
            border-top: 1px solid #f3f4f6;
        }

        #PublicConstructorPageView .message-bubble-assistant {
            width: fit-content;
        }

        /* Стили для Monaco Editor контейнеров */
        #PublicConstructorPageView #monaco-html-editor,
        #PublicConstructorPageView #monaco-js-editor,
        #PublicConstructorPageView #monaco-css-editor {
            width: 100%;
            height: 100%;
            min-height: 400px;
            border-radius: 8px;
            overflow: hidden;
        }

        #PublicConstructorPageView .toolbar-top {
            margin-top: 24px;
        }

        #PublicConstructorPageView .toolbar-bottom {
            margin-bottom: 68px;
        }

        #PublicConstructorPageView [data-grid="UICommonLayout"] [data-grid-index="0"] .removeComponent {
            display: none !important;
        }

        #PublicConstructorPageView [data-grid="UICommonLayout"] [data-grid-index="0"] .insert-buttons-wrapper {
            display: none;
        }


        #PublicConstructorPageView [data-grid="UICommonLayout"] [data-grid-index="2"] .insert-buttons-wrapper {
            display: none;
        }


        #PublicConstructorPageView [data-grid="UICommonLayout"] [data-grid-index="0"] .component-toolbar {
            right: calc(100vw - 70px);
        }

        #PublicConstructorPageView [data-grid="UICommonLayout"] [data-grid-index="2"] .component-toolbar {
            right: calc(100vw - 70px);
            top: 5px;
        }

        #PublicConstructorPageView [data-grid="UICommonLayout"] [data-grid-index="2"] .removeComponent {
            display: none !important;
        }

        html body #PublicConstructorPageView img.social-icon {
            filter: none !important;
        }

        #PublicConstructorPageView [data-grid="UILayout"] [data-grid-index="0"] {
            display: block;
        }

        /* Динамический CSS компонентов - уже обернут в #PublicConstructorPageView */
        
#block0c732 [v-cloak] {
        display: none;
    }
    
    #block0c732 {
        --ui-general: #00008B;
        --ui-additional: #4169E1;
        --ui-active: #00008B;
        --ui-text: #1F2937;
        --ui-text-secondary: #6B7280;
        --ui-bg-light: #F0F4FF;
        --ui-bg-additional-light: #F0F4FF;
    }

    #block0c732-header {
        transition: box-shadow 0.3s ease;
    }
    
    #block0c732-header:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 139, 0.05), 0 2px 4px -1px rgba(0, 0, 139, 0.03);
    }
    
    /* Плавное открытие мобильного меню */
    #block0c732-mobile-menu {
        transition: all 0.3s ease-in-out;
        overflow: hidden;
    }
    
    #block0c732-mobile-menu.hidden {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    #block0c732-mobile-menu:not(.hidden) {
        max-height: 500px;
        opacity: 1;
    }

    /* Анимация для иконок соцсетей */
    #block0c732-socials-top a,
    #block0c732-socials-mobile a {
        transition: all 0.2s ease;
    }
    
    #block0c732-socials-top a:hover,
    #block0c732-socials-mobile a:hover {
        transform: translateY(-1px);
    }

    /* Стили для активного пункта меню */
    #block0c732-desktop-menu a {
        position: relative;
    }
    
    #block0c732-desktop-menu a::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: #00008B;
        transition: width 0.3s ease;
    }
    
    #block0c732-desktop-menu a:hover::after,
    #block0c732-desktop-menu a.text-\[\#00008B\]::after {
        width: 60%;
    }

    /* Стили для выделения текста */
    #block0c732 ::selection {
        background: #00008B;
        color: #FFFFFF;
    }
    #block0c732 ::-moz-selection {
        background: #00008B;
        color: #FFFFFF;
    }

    /* Запрет переноса для контактных данных */
    #block0c732-contact-info,
    #block0c732-phone,
    #block0c732-mobile-phone {
        white-space: nowrap;
    }
    
    /* Стили UI для всех элементов блока */
    #block0c732 * {
        border-radius: 0 !important;
    }
    
    #block0c732 input:focus,
    #block0c732 select:focus,
    #block0c732 textarea:focus {
        outline: none;
        border-color: #00008B !important;
        box-shadow: 0 0 0 2px rgba(0, 0, 139, 0.2) !important;
    }
    
    #block0c732 button:focus-visible {
        outline: 2px solid #00008B;
        outline-offset: 2px;
    }
    
    #block0c732 .btn-primary {
        background-color: #00008B;
        color: #FFFFFF;
        border: none;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    #block0c732 .btn-primary:hover {
        background-color: #00006B;
    }
    
    #block0c732 .btn-secondary {
        background-color: #4169E1;
        color: #FFFFFF;
        border: none;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    #block0c732 .btn-secondary:hover {
        background-color: #3155B8;
    }
    
    #block0c732 .btn-outline {
        background-color: transparent;
        color: #00008B;
        border: 2px solid #00008B;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    #block0c732 .btn-outline:hover {
        background-color: #F0F4FF;
    }
    
    #block0c732 .btn-ghost {
        background-color: transparent;
        color: #6B7280;
        border: 2px solid #D1D5DB;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    #block0c732 .btn-ghost:hover {
        background-color: #F9FAFB;
        color: #1F2937;
    }
    
    #block0c732 .btn-disabled {
        background-color: #E5E7EB;
        color: #9CA3AF;
        cursor: not-allowed;
    }
    
    #block0c732 .tag {
        display: inline-block;
        padding: 2px 10px;
        font-size: 12px;
        font-weight: 500;
        background-color: #F0F4FF;
        color: #00008B;
    }
    
    #block0c732 .card {
        background-color: #FFFFFF;
        border: 2px solid #E5E7EB;
        transition: all 0.3s ease;
    }
    
    #block0c732 .card:hover {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        border-color: #00008B;
    }
    
    #block0c732 .table-header {
        background-color: #F9FAFB;
        border-bottom: 2px solid #E5E7EB;
    }
    
    #block0c732 .table-header th {
        padding: 16px 24px;
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6B7280;
    }
    
    #block0c732 .table-row {
        border-bottom: 1px solid #E5E7EB;
        transition: background-color 0.2s ease;
    }
    
    #block0c732 .table-row:hover {
        background-color: rgba(0, 0, 139, 0.03);
    }
    
    #block0c732 .table-row td {
        padding: 16px 24px;
    }

    /* Стиль для логотипа */
    #block0c732-logo-text {
        letter-spacing: -0.5px;
    }
    #block0c732-logo-link:hover #block0c732-logo-text {
        opacity: 0.9;
    }

/* Дополнительные стили для футера Nova Horeca (Navy Sharp Theme) */
#blockb82d10-footer a {
    text-decoration: none;
}

#blockb82d10-footer a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    #blockb82d10-grid {
        gap: 2rem;
    }
}

/* UI-стилизация футера: акцентные цвета при наведении */
#blockb82d10-footer a:hover i,
#blockb82d10-footer a:hover .bi {
    color: #4169E1;
}

#blockb82d10-footer .bi {
    transition: color 0.2s ease;
}

/* Стили для v-cloak */
[v-cloak] {
    display: none;
}

/* Стили в соответствии с UI grocery-navy-sharp */
#blockb82d10-footer {
    background-color: #000000;
}

#blockb82d10-footer h3 {
    color: #FFFFFF;
}

#blockb82d10-footer .text-gray-400 {
    color: #9CA3AF;
}

#blockb82d10-footer .bi {
    color: #FFFFFF;
}

#blockb82d10-footer a {
    color: #9CA3AF;
}

#blockb82d10-footer a:hover {
    color: #4169E1;
}

#blockb82d10-footer .border-t {
    border-color: #374151;
}

/* Отмена скруглений */
#blockb82d10-footer * {
    border-radius: 0 !important;
}

/* Стили для логотипа */
#blockb82d10-logo-img {
    display: block;
    height: auto;
    max-height: 100px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

#blockb82d10-logo-link {
    display: inline-block;
    transition: opacity 0.2s ease;
}

#blockb82d10-logo-link:hover {
    opacity: 0.8;
}
/* CSS классы темы */
         .ui_body_color_bg { background: #ffffff; }  .ui_body_color_text { color: #ffffff; }  .ui_general_color_bg { background: #00008B; }  .ui_general_color_text { color: #00008B; }  .ui_additional_color_bg { background: #000; }  .ui_additional_color_text { color: #000; }  .ui_active_color_bg { background: #00008B; }  .ui_active_color_text { color: #00008B; }  .ui_text_color { color: ; }
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideUp {
    animation: slideUp 0.4s ease-out;
}

#CookieCodeWidget .hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
html body {
        overflow-y: scroll !important;
        margin: 0 !important;
    }

    [v-cloak] {
        display: none !important;
    }