/* Ссылка обхода становится видимой только при управлении с клавиатуры */
.quick-tickets-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: var(--quick-tickets-radius-small);
    background: var(--quick-tickets-color-surface);
    color: var(--quick-tickets-color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    transform: translateY(calc(-100% - 16px));
    transition: transform 150ms ease;
}

.quick-tickets-skip-link:focus {
    transform: translateY(0);
}

/* Текстовые действия используют нативную кнопку без браузерного оформления */
.quick-tickets-link-button {
    appearance: none;
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: inherit;
    vertical-align: baseline;
    cursor: pointer;
}

/* Семантическая группа позиций возврата сохраняет компактное оформление прежнего блока */
#refundForm .refund-form__positions {
    min-width: 0;
    padding: 0;
    border: 0;
}

#refundForm .refund-form__legend {
    width: auto;
    margin: 0 0 5px;
    border: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* На узком экране позиции возврата и действия сохраняют единый компактный ритм */
@media (max-width: 767.999px) {
    #refundForm .refund-form__positions > ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #refundForm .refund-form__positions > ul > .checkbox {
        min-height: 0;
        margin: 0;
        padding: 0;
    }

    #refundForm .modal-footer {
        justify-content: flex-start;
        padding: 10px;
    }

    #refundForm .modal-footer::before,
    #refundForm .modal-footer::after {
        display: none;
        content: none;
    }

    #refundForm .modal-footer > .btn {
        margin: 0;
    }
}

/* В системной контрастной палитре кастомные элементы возвращаются к различимым нативным состояниям */
@media (forced-colors: active) {
    /* Возвращаем системный индикатор фокуса полям, у которых обычная тема использует фирменную рамку */
    .form-control:focus,
    .form-control:focus-visible {
        outline: 2px solid Highlight !important;
        outline-offset: 2px !important;
    }

    input[type="checkbox"] {
        position: static;
        width: 18px;
        height: 18px;
        margin: 0 7px 0 0;
        overflow: visible;
        clip: auto;
        clip-path: none;
        border: initial;
        accent-color: Highlight;
        vertical-align: middle;
    }

    input[type="checkbox"] + label {
        min-height: 18px;
        padding-left: 0;
    }

    input[type="checkbox"] + label::before {
        display: none;
    }

    .btn-orange,
    .btn-orange:hover,
    .btn-orange:focus,
    .btn-orange:active,
    .btn-orange.active,
    .pagination > .active > a,
    .pagination > .active > span {
        border-color: Highlight;
        background: Highlight;
        color: HighlightText;
    }

    .marker,
    .label,
    .quick-tickets-filter-chip,
    .payments-type {
        border: 1px solid currentColor;
        forced-color-adjust: auto;
    }

    .site-background-transition {
        display: none;
    }
}
