.country-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.country-modal.is-hidden {
    display: none;
}

.country-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.country-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 400px;
    height: 80%;
    height: 80dvh;
    max-height: 80vh;
    background: #77b9ff;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    color: #fff;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.country-modal__close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    z-index: 2;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
    padding: 0.25rem 0.5rem;
}

.country-modal__close:hover {
    opacity: 1;
}

.country-modal__header {
    flex: 0 0 auto;
    padding: 1.25rem 2.5rem 0.5rem 1.25rem;
    line-height: 1.2;
}

.country-modal__header p {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.country-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.5rem 1.25rem 1.25rem;
    box-sizing: border-box;
    touch-action: pan-y;
}

.country-modal__body img {
    width: 70%;
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 0 auto 1rem;
    display: block;
}

.country-modal__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.country-modal__list li {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
