body.lxo-modal-open {
    overflow: hidden;
}

.lxo-modal[hidden] {
    display: none;
}

.lxo-modal {
    --lxo-modal-dark: #020721;
    --lxo-modal-blue: #05072f;
    --lxo-modal-green: #00ea7c;
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 48px);
}

.lxo-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 7, 33, 0.78);
}

.lxo-modal__content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    max-height: calc(100dvh - 32px);
    /* overflow: auto; */
    border: 0;
    background: var(--wp--preset--color--white, #ffffff);
    box-shadow: none;
    color: var(--lxo-modal-dark);
}

.lxo-modal__content:focus {
    outline: none;
}

.lxo-country-access-modal .lxo-modal__close {
    display: none;
}

.lxo-country-access-modal--entry .lxo-modal__content {
    width: min(calc(100vw - 32px), 850px);
    padding: 8px;
    border-radius: 24px;
}

.lxo-country-entry > .wp-block-group {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px;
}

.lxo-country-entry > .wp-block-group > p:first-child {
    margin: 0 0 64px;
    color: rgba(2, 7, 33, 0.5);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.lxo-country-entry .wp-block-columns {
    display: grid;
    width: 100%;
    max-width: 786px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto;
}

.lxo-country-entry .wp-block-column {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 336px;
    flex-direction: column;
    align-items: center;
    gap: 17px;
    padding: 0;
    border: 0;
    text-align: center;
}

.lxo-country-entry .wp-block-column + .wp-block-column::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -8.5px;
    width: 1px;
    background: rgba(2, 7, 33, 0.2);
}

.lxo-country-entry .wp-block-column > * {
    margin-block: 0;
}

.lxo-country-entry .wp-block-column > p {
    width: 100%;
    color: var(--lxo-modal-dark);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.1875;
}

.lxo-country-entry .wp-block-column > p em {
    font-style: italic;
}

.lxo-country-entry .wp-block-image {
    margin: 0;
}

.lxo-country-entry .wp-block-image:first-child img {
    width: 111px;
    max-width: 100%;
    height: auto;
    opacity: 0.5;
}

.lxo-country-entry .wp-block-image:not(:first-child) img {
    width: 39px;
    height: 39px;
    object-fit: cover;
}

.lxo-country-entry .wp-block-column .wp-block-buttons {
    margin-top: auto;
}

.lxo-country-entry .wp-block-button .wp-block-button__link {
    white-space: normal;
}

.lxo-country-access-modal--selector .lxo-modal__content {
    width: min(calc(100vw - 32px), 550px);
    /* height: min(488px, calc(100dvh - 32px)); */
    padding: 8px;
    border-radius: 24px;
}

.lxo-country-access-modal--denied .lxo-modal__content {
    width: min(calc(100vw - 32px), 800px);
    padding: 8px;
    border-radius: 24px;
}

.lxo-country-access-denied > .wp-block-group {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px;
}

.lxo-country-access-denied .wp-block-buttons {
    justify-content: center;
}

.lxo-country-selector {
    display: flex;
    width: 100%;
    min-height: 472px;
    flex-direction: column;
    align-items: center;
}

.lxo-country-selector__title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    margin: 0 0 24px;
    border-radius: 16px;
    background: var(--lxo-modal-dark);
    color: var(--wp--preset--color--white, #ffffff);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.lxo-country-selector__nav {
    width: min(100%, 432px);
    padding: 24px;
}

.lxo-country-selector__language {
    width: 100%;
    max-width: 384px;
    margin: 0 auto 16px;
    color: rgba(2, 7, 33, 0.5);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.lxo-country-selector__list,
.lxo-country-selector__submenu {
    display: flex;
    width: 100%;
    max-width: 384px;
    flex-direction: column;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.lxo-country-selector__submenu {
    max-width: none;
    padding-left: 24px;
}

.lxo-country-selector__submenu[hidden] {
    display: none;
}

.lxo-country-selector__item {
    position: relative;
    margin: 0;
}

.lxo-country-selector__list > .lxo-country-selector__item + .lxo-country-selector__item::before,
.lxo-country-selector__submenu > .lxo-country-selector__item + .lxo-country-selector__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 42px;
    z-index: 1;
    width: calc(100% - 84px);
    height: 1px;
    background: rgba(2, 7, 33, 0.2);
}

.lxo-country-selector__link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 55px;
    gap: 17px;
    padding: 8px 32px;
    border: 0;
    border-radius: 100px;
    background: transparent;
    color: var(--lxo-modal-dark);
    font: inherit;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.lxo-country-selector__link:hover,
.lxo-country-selector__link:focus-visible,
.lxo-country-selector__link.is-current {
    background: rgba(2, 7, 33, 0.1);
    color: var(--lxo-modal-dark);
    outline: none;
}

.lxo-country-selector__link.is-current .lxo-country-selector__label {
    font-weight: 700;
}

.lxo-country-selector__label {
    order: 1;
    min-width: 0;
}

a.lxo-country-selector__link .lxo-country-selector__label {
    flex: 1 1 auto;
}

.lxo-country-selector__flag {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    overflow: hidden;
    margin-left: auto;
    background: transparent;
    border-radius:50%;
    box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.6);
}

.lxo-country-selector__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lxo-country-selector__chevron {
    order: 2;
    width: 0;
    height: 0;
    margin-right: auto;
    border-top: 14px solid var(--wp--preset--color--blue-grey, #34545a);
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    transition: transform 0.2s ease;
}

.lxo-country-selector__toggle .lxo-country-selector__label {
    flex: 0 0 auto;
}

.lxo-country-selector__toggle .lxo-country-selector__flag {
    margin-left: 0;
}

.lxo-country-selector__toggle[aria-expanded="true"] .lxo-country-selector__chevron {
    transform: rotate(180deg);
}

.lxo-country-selector__actions {
    margin: 24px 0 0;
}

.lxo-country-selector__actions .wp-block-button__link {
    appearance: none;
}

@media (max-width: 760px) {
    .lxo-modal {
        align-items: start;
        justify-items: center;
        overflow-y: auto;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .lxo-modal__overlay {
        position: fixed;
    }

    .lxo-modal__content {
        width: 100%;
        max-height: none;
        overflow: visible;
        border-radius: 24px;
    }

    .lxo-country-access-modal--entry .lxo-modal__content,
    .lxo-country-access-modal--selector .lxo-modal__content,
    .lxo-country-access-modal--denied .lxo-modal__content {
        width: 100%;
        height: auto;
    }

    .lxo-country-entry > .wp-block-group,
    .lxo-country-access-denied > .wp-block-group {
        padding: 20px 16px;
    }

    .lxo-country-entry > .wp-block-group > p:first-child {
        margin-bottom: 24px;
        font-size: 18px;
    }

    .lxo-country-entry .wp-block-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lxo-country-entry .wp-block-column {
        min-height: auto;
        gap: 12px;
    }

    .lxo-country-entry .wp-block-column + .wp-block-column::before {
        display: none;
    }

    .lxo-country-entry .wp-block-column .wp-block-buttons {
        margin-top: 8px;
    }

    .lxo-country-entry .wp-block-image:first-child img {
        width: 88px;
    }

    .lxo-country-selector {
        min-height: auto;
    }

    .lxo-country-selector__title {
        min-height: 56px;
        margin-bottom: 12px;
    }

    .lxo-country-selector__nav {
        padding: 16px;
    }

    .lxo-country-selector__actions {
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .lxo-country-selector__title {
        min-height: 52px;
    }

    .lxo-country-selector__nav {
        padding: 14px 8px;
    }

    .lxo-country-selector__language,
    .lxo-country-selector__link {
        font-size: 18px;
    }

    .lxo-country-selector__link {
        min-height: 50px;
        padding: 6px 16px;
    }

    .lxo-country-selector__flag {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}
