.lock-scroll {
    overflow: hidden;
}

.modal dialog {
    position: fixed;
    scrollbar-width: none;
    inset: 0;
    padding: 0;
    border: 1px solid var(--modal-border-color, rgb(0 0 0 / 20%));
    border-radius: 0.3rem;
    width: min(100% - 16px, 800px);
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity .3s, display .3s, transform .3s;
    transition-behavior: allow-discrete;
}

.category .modal dialog {
    width: min(100% - 16px, 1120px);
}

.modal dialog .dialog-content {
    border-radius: 0.3rem;
    overflow: hidden;
}

.modal dialog::backdrop {
    background: rgb(0 0 0 / 50%);
}


.modal dialog[open] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s, display .5s, transform .5s;
    z-index: 10;

    @starting-style {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.modal dialog::-webkit-scrollbar {
    display: none;
}

.modal .dialog-header {
    display: flex;
    justify-content: end;
    align-items: center;
    padding: .5em 1em;
    background-color: var(--modal-header-bg, var(--dark-color));
    color: var(--brand-color-primary-2);
}

.modal .dialog-content > *:last-child {
    padding-bottom: 1em;
}

.modal .columns > div {
    padding-block: 2em;
    align-items: center;
}

.modal .columns > div + div {
    border-top: 1px solid rgb(0 0 0 / 10%);
}

.modal .columns .button {
    padding: 0;
    background-color: unset;
    color: var(--modal-link-color, var(--brand-color-primary-2));
}

.modal .columns .button:hover {
    color: var(--brand-color-secondary-1);
    text-decoration: underline;
}

.modal .dialog-header.has-title {
    justify-content: space-between;
}

.modal .dialog-header :where(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    color: var(--modal-title-color, var(--brand-color-primary-2));
    font-size: 29px;
}

.modal .dialog-header .close-button {
    background-color: unset;
    padding: 0;
    margin: 0;
}

.modal .dialog-header .close-button::after {
    font-family: "Material Icons", sans-serif;
    content: "\e5cd";
    font-size: var(--heading-font-size-l-plus);
    color: #000;
    display: block;
    padding-top: 10px;
    opacity: .5;
    line-height: 1.5;
}

.modal #modal-compare .dialog-content > *:last-child {
    padding-bottom: 0;
}

.modal .dialog-content .table-compare tr:nth-child(n+2) td:first-child {
    text-transform: uppercase;
}

@media (width <= 689px) {
    .modal .columns > div {
        padding-block: 0;
        gap: 0;
    }
}