.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    pointer-events: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overscroll-behavior: contain;

    a {
        color: var(--color-r-5);
        text-decoration-thickness: 1px;
    }
}

.contact-popup.-open {
    display: flex;
    pointer-events: all;
}

.contact-popup__backdrop {
    position: absolute;
    border: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 500ms ease-out;

    @starting-style {
        background-color: rgba(0, 0, 0, 0);
    }
}
.contact-popup.-closing .contact-popup__backdrop {
    background-color: rgba(0, 0, 0, 0);
}

.contact-popup__panel {
    padding: 4rem 4rem;
    border-radius: 2rem;
    width: 90%;
    max-width: 34ch;
    font-size: 1.25rem;
    position: relative;
    background-color: #fff;
    transition: opacity 300ms ease-out, transform 300ms ease-out;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;

    @starting-style {
        opacity: 0;
        transform: translateY(-1rem);
    }
}
.contact-popup.-closing .contact-popup__panel {
    opacity: 0;
    transform: translateY(-1rem);
}
@media screen and (width <= 720px) {
    .contact-popup__panel {
        padding: 3rem 2rem;
    }
}
@media screen and (width >= 720px) {
    .contact-popup__panel {
        font-size: 1.375rem;
        max-width: 65ch;
    }
}

.contact-popup__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
}
@media screen and (width >= 720px) {
    .contact-popup__content {
        display: grid;
        grid-template-columns: min-content 1fr;
        gap: 6rem;
    }
}
.contact-popup__content > div {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.contact-popup__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
}

.contact-popup__title {
    position: relative;
    text-align: left;
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--color-r-5);
    margin-bottom: 0.75em;

    span {
        position: relative;
    }
}
@media screen and (width >= 720px) {
    .contact-popup__title {
        font-size: 2.75rem;
        margin-bottom: 1.25em;
    }
}

.contact-popup__mail {
    margin-bottom: 0.625em;
}

.contact-popup__booking {
    margin-bottom: 1.25em;
    padding-right: 2rem;
}

.contact-popup__phone {
    font-weight: 300;
    color: var(--color-r-5);
    white-space: nowrap;
    width: max-content;
}
@media screen and (width <= 350px) {
    .contact-popup__phone {
        font-size: 1.125rem;
    }
}

.contact-popup__button {
    width: 100%;
    text-align: center;
    display: grid;
    grid-template-columns: max-content 1fr;
}

.contact-popup__info {
    position: relative;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    text-align: end;
    align-items: end;
}
@media screen and (width >= 720px) {
    .contact-popup__info {
        font-size: 1.75rem;
    }
}

.contact-popup__icon {
    vertical-align: middle;
    width: 1.5rem;
    height: 1.5rem;
}
.contact-popup__address {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}
.contact-popup__greeting {
    position: relative;
    font-family: var(--font-family-playfair);
    font-weight: 900;
    color: var(--color-r-5);
    margin-top: auto;
    text-wrap: balance;
}
.contact-popup__greeting-text {
    position: relative;
}


.contact-popup__close {
    position: absolute;
    top: 0;
    right: 0;
    padding-top: 1.25rem;
    padding-right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #222;
    .icon {
        height: 1em;
        width: 1em;
    }
}