/* =========================================================
   СКРЫТИЕ ПРИВЕТСТВИЯ И СЕКТОРОВ ИНСТРУКЦИИ
   ========================================================= */

#manualWelcome[hidden],
.manual-block[hidden] {
    display: none !important;
}

/* =========================================================
   СИНИЙ ЦВЕТ В ИНСТРУКЦИИ
   ========================================================= */
.manual-text-accent {
    color: #1D4ED8;
}

/* =========================================================
   ОТСТУП ДЛЯ ТЕКСТА
   ========================================================= */
.manual-text {
    margin-top: 20px;
}

/* =========================================================
   ВЛОЖЕННОЕ МЕНЮ ПОДРОБНОЙ ИНСТРУКЦИИ
   ========================================================= */

.manual-submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.manual-submenu[hidden] {
    display: none !important;
}


/* =========================================================
   ПУНКТ ВЛОЖЕННОГО МЕНЮ
   ========================================================= */

.manual_second_level {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 7px 12px 7px 24px;
    box-sizing: border-box;
    border: none;
    border-radius: 7px;
    background: transparent;

    font-family: Inter, system-ui, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    color: #4B5563;
    text-align: left;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}


/* Линия перед пунктом */

.manual_second_level::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 7px;
    height: 2px;
    transform: translateY(-50%);
    background: currentColor;
    border-radius: 2px;
}


/* Наведение */

.manual_second_level:hover {
    background: #F5F7FA;
    color: var(--text-main);
}


/* Выбранный пункт */

.manual_second_level.active {
    color: #1D4ED8;
}

/* Текст в includes */

.manual_text {
    margin: 0 20px 0 20px;
    font-family:
        Inter,
        system-ui,
        sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    color: #374151;
	text-align: center;
}

.manual_text_justify {
    margin: 0 20px 0 20px;
    font-family:
        Inter,
        system-ui,
        sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    color: #374151;
	text-align: justify;
}
/* Изображение в includes */



/* ========================================
   ИЗОБРАЖЕНИЕ В ИНСТРУКЦИИ
======================================== */

.manual-image-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 20px 20px 20px;
}

.manual-image {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    border: 2px solid #4B5563;
    border-radius: 8px;
    box-sizing: border-box;

    cursor: zoom-in;

    transition: border-color 0.2s ease;
}

.manual-image:hover {
    border-color: #1D4ED8;
}


/* ========================================
   ПОЛНОЭКРАННЫЙ ОВЕРЛЕЙ
   МАТОВОЕ СТЕКЛО
======================================== */

.manual-lightbox {
    display: none;

    position: fixed;
    inset: 0;
    z-index: 99999;

    align-items: center;
    justify-content: center;

    padding: 30px;
    box-sizing: border-box;

    background: rgba(239, 243, 246, 0.55);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    cursor: zoom-out;
}

.manual-lightbox.is-visible {
    display: flex;
}


/* ========================================
   КОНТЕЙНЕР ИЗОБРАЖЕНИЯ И КНОПКИ
======================================== */

.manual-lightbox-frame {
    position: relative;

    display: inline-block;

    max-width: 100%;
    max-height: 100%;

    line-height: 0;
}


/* ========================================
   УВЕЛИЧЕННОЕ ИЗОБРАЖЕНИЕ
======================================== */

.manual-lightbox-image {
    display: block;

    width: auto;
    height: auto;

    max-width: calc((100vw - 60px) * 0.9);
    max-height: calc((100vh - 60px) * 0.9);

    object-fit: contain;

    border: 2px solid #1D4ED8;
    border-radius: 8px;
    box-sizing: border-box;

    cursor: default;
}


/* ========================================
   КНОПКА ЗАКРЫТИЯ
======================================== */

#manualLightbox .lot-detail-gallery-viewer-close {
    position: absolute;

    top: -40px;
    right: -40px;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: transparent;

    color: #1D4ED8;

    cursor: pointer;

    line-height: normal;

    transition: color 0.2s ease;
}


/* Наведение на кнопку */

#manualLightbox .lot-detail-gallery-viewer-close:hover {
    color: #1E40AF;
}


/* Клавиатурный фокус */

#manualLightbox .lot-detail-gallery-viewer-close:focus-visible {
    outline: 2px solid #1D4ED8;
    outline-offset: 2px;
}


/* ========================================
   SVG ИКОНКА ЗАКРЫТИЯ
======================================== */

#manualLightbox .lot-detail-gallery-icon {
    display: block;

    width: 40px;
    height: 40px;

    flex-shrink: 0;
}


/* =========================================================
   РАСКРЫВАЮЩИЙСЯ БЛОК ИНСТРУКЦИИ
   ========================================================= */

.manual_accordion {

    width: 100%;

    margin: 0 0 16px 0;

    padding: 0;

    box-sizing: border-box;

}


/* =========================================================
   КНОПКА ЗАГОЛОВКА
   ========================================================= */

.manual_accordion_button {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    min-height: 56px;

    margin: 0;

    padding: 14px 18px;

    box-sizing: border-box;

    border: 1px solid #D1D5DB;

    border-radius: 8px;

    background: #FFFFFF;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 17px;

    font-weight: 500;

    line-height: 1.4;

    color: #4B5563;

    text-align: left;

    cursor: pointer;

    box-shadow:
        0 1px 3px rgba(17, 24, 39, .06);

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

}


/* =========================================================
   ТЕКСТ ЗАГОЛОВКА
   ========================================================= */

.manual_accordion_title {

    flex: 1;

}


/* =========================================================
   СТРЕЛКА
   ========================================================= */

.manual_accordion_arrow {

    width: 9px;

    height: 9px;

    margin-left: 17px;

    border-right: 2px solid currentColor;

    border-bottom: 2px solid currentColor;

    transform: rotate(45deg);

    transition: transform .2s ease;

    flex-shrink: 0;

}


/* =========================================================
   НАВЕДЕНИЕ
   ========================================================= */

.manual_accordion_button:hover {

    background: #F5F7FA;

    border-color: var(--blue);

    color: var(--text-main);

    box-shadow:
        0 4px 10px rgba(30, 64, 175, .10);

    transform: translateY(-1px);

}


/* =========================================================
   ОТКРЫТОЕ СОСТОЯНИЕ
   ========================================================= */

.manual_accordion_button.active {

    background: #FFFFFF;

    border-color: var(--blue);

    color: var(--blue);

    box-shadow:
        0 2px 6px rgba(30, 64, 175, .10);

}


/* =========================================================
   СТРЕЛКА В ОТКРЫТОМ СОСТОЯНИИ
   ========================================================= */

.manual_accordion_button.active
.manual_accordion_arrow {

    transform: rotate(225deg);

}


/* =========================================================
   НАЖАТИЕ
   ========================================================= */

.manual_accordion_button:active {

    transform: translateY(0);

}


/* =========================================================
   ФОКУС КЛАВИАТУРЫ
   ========================================================= */

.manual_accordion_button:focus-visible {

    outline: 2px solid var(--blue);

    outline-offset: 2px;

}


/* =========================================================
   РАСКРЫВАЕМАЯ ИНСТРУКЦИЯ
   ========================================================= */

.manual_accordion_content {

    margin-top: 8px;

    padding: 14px 18px;

    box-sizing: border-box;

    border-left: 3px solid var(--blue);

    border-radius: 0 6px 6px 0;

    background: #F8FAFC;

    font-family:
        Inter,
        system-ui,
        sans-serif;

    font-size: 17px;

    font-weight: 400;

    line-height: 1.5;

    color: #4B5563;

    text-align: justify;

}


/* =========================================================
   СПИСОК В ИНСТРУКЦИИ
   ========================================================= */

.manual_accordion_content ul {

    margin: 0;

    padding-left: 22px;

}


.manual_accordion_content li {

    margin-bottom: 14px;

}


.manual_accordion_content li:last-child {

    margin-bottom: 0;

}


/* =========================================================
   ОБЫЧНОЕ СОСТОЯНИЕ
   ========================================================= */

.manual_accordion_button {
    color: #4B5563;
    border-color: #D1D5DB;
}


/* =========================================================
   НАВЕДЕНИЕ
   РАМКА И SVG — СИНИЕ, ТЕКСТ — ТЕМНЕЕ
   ========================================================= */

.manual_accordion_button:hover {
    background: #F5F7FA;
    border-color: var(--blue);
    color: var(--text-main);

    box-shadow:
        0 4px 10px rgba(30, 64, 175, .10);

    transform: translateY(-1px);
}


/* SVG при наведении становится синим */
.manual_accordion_button:hover .manual_accordion_icon {
    color: var(--blue);
    fill: currentColor;
}


/* =========================================================
   ОТКРЫТОЕ СОСТОЯНИЕ
   ВСЁ СИНЕЕ
   ========================================================= */

.manual_accordion_button.active {
    background: #FFFFFF;
    border-color: var(--blue);
    color: var(--blue);

    box-shadow:
        0 2px 6px rgba(30, 64, 175, .10);
}


/* SVG в открытом состоянии */
.manual_accordion_button.active .manual_accordion_icon {
    color: var(--blue);
    fill: currentColor;
}

.manual_accordion_title {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

/* =========================================================
   СТАТУСЫ В ИНСТРУКЦИИ
   ========================================================= */

.manual-status-list {

    display: flex;
    flex-direction: column;

    gap: 18px;

    margin: 16px 0;

}


/* =========================================================
   ЭЛЕМЕНТ СТАТУСА
   ========================================================= */

.manual-status-item {

    display: flex;
    align-items: flex-start;

    gap: 12px;

}


/* =========================================================
   ИНДИКАТОР
   ========================================================= */

.manual-status-item > .status-orb-sky,
.manual-status-item > .status-orb-blue,
.manual-status-item > .status-orb-navy,
.manual-status-item > .status-orb-graphite {

    margin-top: 5px;

}


/* =========================================================
   ТЕКСТОВАЯ ЧАСТЬ
   ========================================================= */

.manual-status-content {

    flex: 1;
    min-width: 0;

}


/* =========================================================
   НАЗВАНИЕ СТАТУСА
   ========================================================= */

.manual-status-title {

    font-size: 16px;
    font-weight: 600;

    line-height: 1.4;

    color: #4B5563;

}


/* =========================================================
   ОПИСАНИЕ СТАТУСА
   ========================================================= */

.manual-status-description {

    margin-top: 4px;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.6;

    color: #4B5563;

}

/* =========================================================
   ПОЗИЦИЯ КВАДРАТНЫХ ИНДИКАТОРОВ В MANUAL
   ========================================================= */

.manual-status-item > .status-square-sky,
.manual-status-item > .status-square-blue,
.manual-status-item > .status-square-navy,
.manual-status-item > .status-square-graphite {

    flex: 0 0 12px;

    margin-right: 0;
    margin-top: 7px;

    vertical-align: initial;

}


/* =========================================================
   ШЕСТИГРАННИКИ В MANUAL
   ========================================================= */

.manual-status-item > span[class^="ticket-status-square-"] {

    flex: 0 0 14px;

    margin-right: 0;
    margin-top: 7px;

    vertical-align: initial;

}

/* =========================================================
   РОМБЫ В MANUAL
   ========================================================= */

.manual-status-item > span[class^="history-status-square-"] {

    flex: 0 0 12px;

    margin-right: 0;
    margin-top: 7px;

    vertical-align: initial;

}
