/* Native dialog: отдельные имена не пересекаются с Bootstrap .modal*. */
.mobile-contacts-open {
    overflow: hidden;
}

.header .mobile-contacts__trigger {
    padding: 0;
    border: 0;
    cursor: pointer;
}

.mobile-contacts__trigger:focus-visible,
.mobile-contacts__dialog button:focus-visible,
.mobile-contacts__dialog a:focus-visible {
    outline: 2px solid #337516;
    outline-offset: 3px;
}

dialog.mobile-contacts__dialog {
    position: fixed;
    inset: 0 0 auto;
    width: 490px;
    max-width: calc(100% - 24px);
    max-height: 88vh;
    max-height: 88dvh;
    margin: min(60px, 6vh) auto 0;
    padding: 44px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    color: #4c504a;
    background: #fff;
    box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
    font: 16px/1.5 'PT Sans', Arial, Helvetica, sans-serif;
    text-align: left;
}

dialog.mobile-contacts__dialog:not([open]) {
    display: none;
}

.mobile-contacts__dialog::backdrop {
    background: rgb(0 0 0 / 70%);
}

.mobile-contacts__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 6px;
    border: 0;
    color: rgb(30 30 30 / 60%);
    background: transparent;
    cursor: pointer;
}

.mobile-contacts__close .lw-icon {
    width: 24px;
    height: 24px;
}

.mobile-contacts__title {
    margin-bottom: 8px;
}

.mobile-contacts__choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin-bottom: 24px;
    color: inherit;
}

.mobile-contacts__choice:last-child {
    margin-bottom: 0;
}

.mobile-contacts__icon {
    display: flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #f3f3f3;
}

.mobile-contacts__icon .lw-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 590px) {
    dialog.mobile-contacts__dialog {
        padding: 44px 24px 24px;
    }
}
