.shop-country-list-regions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.5rem 0 .5rem;
}

.shop-country-list-regions a {
    padding: .375rem 1rem;
    border: 1px solid var(--shop-border);
    border-radius: 999px;
    color: var(--shop-text);
    font-size: .875rem;
    text-decoration: none;
}

.shop-country-list-regions a:hover,
.shop-country-list-regions a:focus-visible {
    border-color: var(--shop-brand);
    color: var(--shop-brand);
}

.shop-country-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: .5rem;
}

.shop-country-list-region {
    grid-column: 1 / -1;
    margin: 2rem 0 .5rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--shop-brand);
    font-size: 1.125rem;
}

.shop-country-list-region:first-child {
    margin-top: 1rem;
}

.shop-country-list-country {
    display: flex;
    align-items: center;
    gap: .625rem;
    min-height: 3rem;
    padding: .5rem .75rem;
    border: 1px solid var(--shop-border);
    border-radius: .25rem;
    background: #fff;
    color: var(--shop-text);
    line-height: 1.25;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

.shop-country-list-country:hover,
.shop-country-list-country:focus-visible {
    border-color: var(--shop-brand);
    color: var(--shop-brand);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.shop-country-list-country img {
    flex: none;
    width: 28px;
    height: 28px;
    /* The organisations' logos are not square. */
    object-fit: contain;
}

/* Entries without a flag or logo (OAPI ...). */
.shop-country-list-marker {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0 5px;
    border: 2px solid var(--shop-muted);
    border-radius: 50%;
}

@media (max-width: 575px) {
    .shop-country-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
