/*
 * Gate (country and customer type choice) and the header selectors.
 * The look follows the previous popup: translucent theme green, a dark frame with rounded corners, tiles a
 * shade lighter than the popup (a touch of the hover colour) until the pointer reaches them (then the theme's
 * --highlight-color in full).
 */
.wa-context-gate {
    --wa-gate-radius: 10px;
    --wa-gate-frame-color: #3b3d00;
    --wa-gate-dark-color: #443f3c;
    --wa-gate-text-color: #fff;
    --wa-gate-hover-color: var(--highlight-color, #cfd600);
    --wa-gate-tile-tint: rgba(207, 214, 0, 0.45);
    --wa-gate-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.wa-context-gate__overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
}
.wa-context-gate {
    position: fixed;
    z-index: 10000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(40%, 100vw - 32px);
    min-width: min(560px, 100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 24px 16px 20px;
    border: 2px solid var(--wa-gate-frame-color);
    border-radius: var(--wa-gate-radius);
    box-shadow: var(--wa-gate-shadow);
    background: rgba(181, 181, 0, 0.9);
    color: var(--wa-gate-text-color);
    font-family: 'Noto Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 20px;
    text-align: center;
}
.wa-context-gate__form {
    margin: 0;
}
.wa-context-gate__title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wa-gate-text-color);
}
.wa-context-gate__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.wa-context-gate__country-select {
    max-width: 100%;
    min-width: 240px;
    padding: 8px 12px;
    border: 1px solid var(--wa-gate-dark-color);
    border-radius: 5px;
    color: var(--dark-theme-color, #868604);
    background: #fff;
}
.wa-context-gate__tiles {
    display: flex;
    flex-wrap: wrap;
    column-gap: 15px;
    row-gap: 15px;
    align-items: stretch;
    justify-content: center;
    margin-top: 32px;
}
.wa-context-gate__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 250px;
    width: 157px;
    padding: 16px 8px;
    border: 1px solid var(--wa-gate-dark-color);
    border-radius: var(--wa-gate-radius);
    cursor: pointer;
    background-color: var(--wa-gate-tile-tint);
    background-color: color-mix(in srgb, var(--wa-gate-hover-color) 45%, transparent);
    color: var(--wa-gate-text-color);
    font: inherit;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.wa-context-gate__tile-icon svg {
    width: 96px;
    height: 96px;
    color: var(--wa-gate-text-color);
}
.wa-context-gate__tile-label {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--wa-gate-text-color);
}
.wa-context-gate__tile:hover,
.wa-context-gate__tile:focus-visible {
    background-color: var(--wa-gate-hover-color);
    border-color: var(--wa-gate-text-color);
}
.wa-context-gate__tile:focus-visible {
    outline: 3px solid var(--wa-gate-text-color);
    outline-offset: 2px;
}
.wa-context-gate__info {
    margin-top: 28px;
    font-size: 15px;
    color: var(--wa-gate-text-color);
    text-align: left;
}
.wa-context-gate__info p {
    margin: 0 0 8px;
    color: var(--wa-gate-text-color);
}
.wa-context-gate__info a {
    color: var(--wa-gate-text-color);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.15s ease-in-out;
}
.wa-context-gate__info a:hover,
.wa-context-gate__info a:focus-visible {
    color: var(--wa-gate-dark-color);
}
.wa-context-nav__form {
    margin: 0;
}
.wa-context-nav__item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.wa-context-nav__item--current {
    font-weight: 700;
}
@media screen and (max-width: 991px) {
    .wa-context-gate {
        width: calc(100vw - 32px);
        min-width: 0;
    }
    .wa-context-gate__tile {
        height: 120px;
        width: 100px;
        padding: 8px 4px;
    }
    .wa-context-gate__tile-icon svg {
        width: 48px;
        height: 48px;
    }
    .wa-context-gate__tile-label {
        font-size: 1rem;
    }
    .wa-context-gate__tiles {
        margin-top: 24px;
    }
}
