/* global */
:root {
    --color-primary: pink;
    --color-dark: #1f1f1f;
    --color-light: #fafafa;
    --font-primary: "Poppins", sans-serif;
    --layout-max-width: 130rem;

    --side-padding-mobile: 2rem;
    --side-padding-laptop: 5rem;
}

html {
    font-size: 75%;
}

@media (max-width: 80em) {
    html {
        font-size: 100%;
    }
}

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);

    overflow-y: scroll;
}

main {
    min-height: 90vh;
}

.inner-main {
    padding-top: 10rem;
}

header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background-color: white;
    border-bottom: 2px solid black;
    z-index: 80;
}

.lang-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lang-picker__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid black;
    background-color: black;
    color: white;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
}

.lang-picker__trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.lang-picker__chevron {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.lang-picker.is-open .lang-picker__chevron {
    transform: rotate(180deg);
}

.lang-picker__box {
    background-color: white;
    min-width: 16rem;
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    border: 1px solid black;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 0.4rem;
    z-index: 90;
}

.lang-picker__item {
    cursor: pointer;
    padding: 0.8rem 1rem;
    display: block;
    font-size: 1.4rem;
    border-radius: 0.4rem;
}

.lang-picker__item:hover {
    background-color: #f3f3f3;
}

.lang-picker__item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.lang-picker__item.is-active {
    color: #666;
    background-color: #f5f5f5;
}

.header__inner {
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    display: flex;
    padding: 1rem 5rem;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    width: 4.2rem;
    height: 4.2rem;
    border: 1px solid #1f1f1f;
    background: #fff;
    cursor: pointer;
}

.header__menu-toggle span {
    display: block;
    height: 2px;
    width: 2rem;
    background: #1f1f1f;
    margin: 0 auto;
}

.header__menu-close {
    display: none;
}

.header__auth-link {
    border-bottom: 1px solid transparent;
    font-size: 1.6rem;
    font-weight: 600;
    padding-bottom: 0.2rem;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.header__auth-link:hover {
    border-color: currentColor;
}

.header__auth-link--primary {
    background: var(--color-dark);
    border: 1px solid var(--color-dark);
    color: var(--color-light);
    padding: 0.8rem 1.4rem;
}

.header__auth-link--primary:hover {
    border-color: var(--color-dark);
    color: var(--color-light);
    opacity: 0.9;
}

.header__plain-link {
    border-bottom: 1px solid transparent;
    font-size: 1.6rem;
    font-weight: 600;
    padding-bottom: 0.2rem;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.header__plain-link:hover {
    border-color: currentColor;
}

.header__plain-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.header__category-btn {
    border: 1px solid #cfcfcf;
    border-radius: 999px;
    background: white;
    color: #2a2a2a;
    cursor: pointer;
    padding: 0.7rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 4rem;
    box-shadow: 0 2px 6px rgba(20, 20, 20, 0.06);
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.header__category-btn:hover {
    background: #f4f4f4;
    box-shadow: 0 4px 10px rgba(20, 20, 20, 0.1);
}

.header__category-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.header__category-btn-value {
    font-size: 1.5rem;
    font-weight: 600;
    max-width: 22rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header__category-btn-chevron {
    font-size: 1.2rem;
    color: #777;
    transform: translateY(-1px);
}

ul {
    padding: 0;
    margin: 0;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3rem;
}

.business-profile {
    padding-bottom: 6rem;
    margin: 0 auto;
}

.business-profile__hero {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.business-profile__hero p {
    font-size: 1.7rem;
    line-height: 1.5;
    margin: 0;
    max-width: 62rem;
}

.business-profile__eyebrow {
    color: #757575;
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.business-profile__grid {
    display: grid;
    gap: 2.4rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(30rem, 0.9fr);
}

.business-profile__panel {
    background: white;
    border: 1px solid #dfdfdf;
    border-radius: 2rem;
    box-shadow: 0 12px 40px rgba(31, 31, 31, 0.06);
    padding: 2.4rem;
}

.business-profile__panel h2 {
    margin-top: 0;
}

.business-profile__panel > h2 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
}

.business-profile__panel-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.business-profile__count {
    align-items: center;
    background: #111;
    border-radius: 999px;
    color: white;
    display: inline-flex;
    font-size: 1.3rem;
    font-weight: 700;
    height: 3rem;
    justify-content: center;
    min-width: 3rem;
    padding: 0 1rem;
}

.business-profile__list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.business-profile__card {
    border: 1px solid #ececec;
    border-radius: 1.6rem;
    padding: 1.8rem;
}

.business-profile__card--active {
    border-color: #111;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}

.business-profile__card-top {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
}

.business-profile__card h3 {
    font-size: 2rem;
    margin: 0 0 0.6rem;
}

.business-profile__card p,
.business-profile__meta span {
    color: #626262;
    font-size: 1.4rem;
}

.business-profile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    margin-top: 1.2rem;
}

.business-profile__status {
    background: #fff2e0;
    border-radius: 999px;
    color: #8a4c00;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.7rem 1rem;
    white-space: nowrap;
}

.business-profile__status--verified {
    background: #e9f9ef;
    color: #17653a;
}

.business-profile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.business-profile__action-link {
    align-items: center;
    background: transparent;
    border: 1px solid #d5d5d5;
    border-radius: 999px;
    color: #1f1f1f;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.4rem;
    font-weight: 600;
    justify-content: center;
    min-height: 4rem;
    padding: 0 1.4rem;
}

.business-profile__action-link--primary {
    background: #111;
    border-color: #111;
    color: white;
}

.business-profile__action-link--danger {
    border-color: #dfb1b1;
    color: #8a2b2b;
}

.business-profile__empty {
    background: #fafafa;
    border: 1px dashed #d0d0d0;
    border-radius: 1.6rem;
    padding: 2.4rem;
}

.business-profile__empty h3 {
    margin-top: 0;
}

.business-profile__flash {
    border-radius: 1.2rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.4rem 1.6rem;
}

.business-profile__flash--success {
    background: #eaf8ef;
    border: 1px solid #b7dfc3;
    color: #1c5f33;
}

.business-profile__back-link {
    background: #111;
    border-radius: 999px;
    color: white;
    display: inline-flex;
    font-size: 1.4rem;
    font-weight: 600;
    min-height: 4.4rem;
    padding: 0 1.6rem;
    align-items: center;
}

.business-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.business-form__section {
    background: linear-gradient(180deg, #ffffff 0%, #fcfbfb 100%);
    border: 1px solid #ece7e7;
    border-radius: 1.8rem;
    padding: 2rem;
}

.business-form__section--coordinates {
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f4 100%);
}

.business-form__section--map {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.business-form__section-head {
    margin-bottom: 1.8rem;
}

.business-form__section-head h3 {
    font-size: 2.1rem;
    margin: 0.4rem 0 0.8rem;
}

.business-form__section-head p {
    color: #666;
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0;
    max-width: 58rem;
}

.business-form__section-kicker {
    color: #8b8b8b;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.business-form__grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-form__field {
    min-width: 0;
}

.business-form__field--full {
    grid-column: 1 / -1;
}

.business-form__field .form-row,
.business-form__field > div {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.business-form__field label {
    color: #1f1f1f;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.business-form__field input,
.business-form__field textarea,
.business-form__field select {
    background: #fff;
    border: 1px solid #d9d3d3;
    border-radius: 1.4rem;
    box-sizing: border-box;
    font-size: 1.6rem;
    min-height: 5.2rem;
    padding: 1.4rem 1.6rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    width: 100%;
}

.business-form__field textarea {
    min-height: 16rem;
    resize: vertical;
}

.business-form__field input:focus,
.business-form__field textarea:focus,
.business-form__field select:focus {
    border-color: #111;
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.business-form__field input[type="file"] {
    background: #fff8fa;
    border-style: dashed;
    cursor: pointer;
    padding: 1.2rem;
}

.business-form__field > .business-form__postal-code,
.business-form__postal-code {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    flex-direction: row;
}

.business-form__postal-code input {
    text-align: center;
}

.business-form__postal-separator {
    color: #666;
    font-size: 2rem;
    font-weight: 700;
}

.business-form__field ul {
    list-style: none;
}

.business-form__field .form-error-message,
.business-form > ul,
.business-form__field ul li {
    color: #8d2222;
    font-size: 1.3rem;
}

.business-form__map-box {
    border: 1px solid #d9dde5;
    border-radius: 1.8rem;
    overflow: hidden;
    position: relative;
}

#business-profile-map {
    height: 32rem;
    width: 100%;
}

#business-profile-map .maplibregl-canvas {
    border-radius: 1.8rem;
}

.business-form__map-pin {
    background: #111;
    border: 4px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.22);
    height: 2.2rem;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -100%) rotate(-45deg);
    width: 2.2rem;
    z-index: 2;
}

.business-form__map-pin::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 0.7rem;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.7rem;
}

.business-form__map-status {
    color: #5b6472;
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 1.4rem 0 0;
}

.business-form__map-toggle {
    align-items: center;
    display: inline-flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.business-form__map-toggle input {
    width: 1.8rem;
    height: 1.8rem;
    margin: 0;
}

.business-form__map-toggle span {
    font-size: 1.4rem;
    font-weight: 600;
}

.business-form__map-manual-hint {
    color: #5b6472;
    font-size: 1.3rem;
    margin: 0.6rem 0 0;
}

.business-form__coordinates-summary {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-form__coordinates-item {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.6rem;
}

.business-form__coordinates-item span {
    color: #686868;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.business-form__coordinates-item strong {
    font-size: 1.8rem;
    line-height: 1.2;
}

.business-form__coordinates-hidden {
    display: none;
}

.business-form__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.8rem;
}

.business-form__actions .button {
    background: linear-gradient(135deg, #111 0%, #2f2f2f 100%);
    border: none;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.16);
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    min-height: 5.2rem;
    padding: 0 2.2rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.business-form__actions .button:hover {
    box-shadow: 0 16px 28px rgba(17, 17, 17, 0.22);
    transform: translateY(-1px);
}

.business-form__actions .button:active {
    transform: translateY(0);
}

@media (max-width: 80em) {
    .business-profile__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 70em) {
    .header__inner {
        gap: 1.2rem;
        padding: 1rem 2rem;
    }

    .business-profile__hero {
        flex-direction: column;
    }

    .business-form__grid {
        grid-template-columns: 1fr;
    }

    .business-form__postal-code {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .business-form__coordinates-summary {
        grid-template-columns: 1fr;
    }

    .header__menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    .header__nav {
        position: fixed;
        inset: 0;
        background: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
        z-index: 95;
    }

    .header__nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .header__menu-close {
        position: absolute;
        top: 2rem;
        right: 2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 4.2rem;
        height: 4.2rem;
        border: 1px solid #1f1f1f;
        background: #fff;
        cursor: pointer;
    }

    .header__nav .header__plain-link,
    .header__nav .header__auth-link {
        font-size: 2.4rem;
    }

    .header__nav .header__auth-link--primary {
        padding: 1.1rem 2rem;
    }
}

a {
    text-decoration: none;
    color: black;
}

p,
div,
a,
li,
span,
button,
label,
input,
footer,
textarea,
option,
select {
    font-size: 2rem;
}

input,
textarea {
    padding: 5px;
}

textarea {
    resize: vertical;
}

label {
    font-weight: bold;
}

.flash {
    background-color: lightgreen;
    color: green;
    border: 2px solid green;
    padding: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.logo {
    font-weight: bold;
    text-decoration: none;
    color: black;
    font-size: 3rem;
}
.logo:hover {
    color: gray;
}

footer {
    border-top: 1px solid #ddd;
    background-color: #f8f8f8;
    padding: 2.4rem 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer__text {
    font-size: 1.4rem;
    color: #555;
}

.footer__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
}

.footer__nav a {
    font-size: 1.6rem;
    color: #222;
}

.footer__nav a:hover {
    text-decoration: underline;
}

.footer__copyright {
    font-size: 1.4rem;
    color: #666;
}

@media (max-width: 70em) {
    .footer__inner {
        align-items: center;
        flex-direction: column;
    }
}

.container {
    max-width: var(--layout-max-width);
    padding-left: var(--side-padding-laptop);
    padding-right: var(--side-padding-laptop);
}

@media (max-width: 70em) {
    .container {
        padding-left: var(--side-padding-mobile);
        padding-right: var(--side-padding-mobile);
    }
}

/* temp */
.hero {
    padding: 5rem;
    margin: 0 auto;
}
.hero p {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto;
}

.listings-section__list {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 2rem;
}
.listings-section__list-item {
    border-radius: 1rem;
    background-color: lightgray;
}

.listings-section__list-item:hover {
    background-color: yellow;
}

.listings-section__list-item a {
    color: black;
    text-decoration: none;
    padding: 2rem;
    display: block;
}
.listings-section__list-item-title {
    text-transform: uppercase;
}

.listings-section {
    margin: 0 auto;
    padding: 5rem;
}
.listings-section__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    gap: 20px;
}
.listings-section__form {
    background-color: lightgray;
    padding: 2rem;
    border-radius: 1rem;
}

.button {
    padding: 1rem 2rem;
}

.button-primary {
    background-color: var(--color-dark);
    color: var(--color-light);
    transition: all 0.2s;
}
.button-primary:hover {
    transform: scale(1.1);
}
.button-primary:active {
    transform: scale(0.95);
}

/* login page */
.auth-page {
    align-items: center;
    display: grid;
    gap: 4rem;
    padding: 20rem 5rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(34rem, 48rem);
    margin: 0 auto;
}

.auth-page__intro h1 {
    font-size: clamp(4.4rem, 7vw, 7.2rem);
    line-height: 0.95;
    margin: 1.2rem 0;
    max-width: 9ch;
}

.auth-page__eyebrow {
    background: #ffe2eb;
    border: 1px solid #f4c7d4;
    border-radius: 999px;
    display: inline-flex;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.8rem 1.2rem;
    text-transform: uppercase;
}

.auth-page__text {
    color: #4b4b4b;
    line-height: 1.6;
    margin: 0;
    max-width: 36rem;
}

.auth-page__switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.4rem;
}

.auth-page__switch span,
.auth-page__switch a {
    font-size: 1.6rem;
}

.auth-page__switch a {
    font-weight: 700;
    text-decoration: underline;
}

.auth-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff4f7 100%);
    border: 1px solid #1f1f1f;
    border-radius: 2.4rem;
    box-shadow: 0 20px 50px rgba(31, 31, 31, 0.12);
    padding: 3rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.auth-form__label {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.auth-form__label span {
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-form__input {
    border: 1px solid #1f1f1f;
    border-radius: 1.2rem;
    padding: 1.4rem 1.6rem;
}

.auth-form__submit {
    background: var(--color-dark);
    border: none;
    border-radius: 999px;
    color: var(--color-light);
    cursor: pointer;
    font-weight: 700;
    margin-top: 0.8rem;
    padding: 1.4rem 2rem;
}

.auth-card__separator {
    align-items: center;
    color: #767676;
    display: flex;
    gap: 1.2rem;
    margin: 2rem 0;
}

.auth-card__separator::before,
.auth-card__separator::after {
    background: #d6d6d6;
    content: "";
    flex: 1;
    height: 1px;
}

.auth-card__separator span {
    font-size: 1.4rem;
    text-transform: uppercase;
}

.auth-card__google {
    border: 1px solid #1f1f1f;
    border-radius: 999px;
    display: block;
    font-weight: 600;
    padding: 1.4rem 2rem;
    text-align: center;
}

.auth-alert {
    background: #ecfff0;
    border: 1px solid #5fa36f;
    border-radius: 1.2rem;
    color: #236236;
    margin-bottom: 1.6rem;
    padding: 1.2rem 1.4rem;
}

.auth-alert--error {
    background: #fff1f1;
    border-color: #c76b6b;
    color: #8d2222;
}

@media (max-width: 70em) {
    .auth-page {
        grid-template-columns: 1fr;
        padding-top: 14rem;
    }

    .auth-page__intro {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .auth-page__text {
        margin: 0 auto;
    }
}

@media (max-width: 50em) {
    .header__inner {
        gap: 1.6rem;
        justify-content: space-between;
        padding: 1.2rem 2rem;
    }

    .auth-card {
        padding: 2.2rem;
    }
}

body.menu-open {
    overflow: hidden;
}

.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.backdrop {
    position: fixed; /* Covers entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    z-index: 90; /* behind modal */
    animation: backdropFadeIn 0.22s ease forwards;
}
.modal-window {
    background-color: #fdfdfd;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    border: 1px solid #d4d4d4;
    border-radius: 1.2rem;
    height: 80vh;
    overflow-y: auto;
    width: min(56rem, 92vw);
    z-index: 100;
    animation: modalFadeIn 0.22s ease-out forwards;
    opacity: 0;
    box-shadow: 0 14px 34px rgba(15, 15, 15, 0.18);
}
@media (max-width: 70em) {
    .modal-window {
        height: 95vh;
        width: 92vw;
    }
}

.modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    margin-bottom: 1.2rem;
}

.modal_title {
    margin: 0;
    font-size: 2.4rem;
}

.modal_content {
    display: flex;
    flex-direction: column;
}

.modal_content.is-transitioning {
    animation: contentFadeIn 0.2s ease-out;
}

.modal_state {
    padding: 1.6rem;
    border: 1px solid #e4e4e4;
    border-radius: 0.8rem;
    background: #f7f7f7;
}

.modal_state.is-loading {
    color: #454545;
}

.modal_state.is-error {
    border-color: #f0c3c3;
    background: #fff2f2;
    color: #992929;
}

.modal_item {
    padding: 1.4rem;
    border: 1px solid #d8d8d8;
    border-radius: 0.8rem;
    margin-top: 0.8rem;
    cursor: pointer;
    display: block;
    background: #fcfcfc;
    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}

.modal_item:hover {
    background: #f2f2f2;
    transform: translateY(-1px);
}

.modal_item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.modal_item.is-active {
    border-color: #b8b8b8;
    background: #ededed;
    font-weight: 600;
}

.modal_item-back {
    background: #f3f3f3;
    border-style: dashed;
}

.modal_item-back:hover {
    background: #ebebeb;
}

.modal_item-primary {
    background: #4b4b4b;
    color: #f7f7f7;
    border-color: #4b4b4b;
    font-weight: 600;
}

.modal_item-primary:hover {
    background: #5a5a5a;
}
.modal_close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 999px;
    cursor: pointer;
    color: #2b2b2b;
    padding: 0.6rem 1.2rem;
}
.modal_close-btn:hover {
    background: #efefef;
}

.modal_close-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.modal_divider {
    height: 2px;
    background: lightgray;
    margin: 1.4rem 0;
}

.modal-window.is-closing {
    animation: modalFadeOut 0.32s ease-in forwards;
}

.backdrop.is-closing {
    animation: backdropFadeOut 0.32s ease-in forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes backdropFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes contentFadeIn {
    from {
        opacity: 0.45;
    }
    to {
        opacity: 1;
    }
}
