.sd-region-selector {
    cursor: default;
}

.sd-region-selector__text {
    min-width: 0;
}

.sd-region-selector__text > small {
    display: block;
    margin: 0 0 3px;
    color: #69717c;
    font-size: 12px;
    line-height: 1.2;
}

.sd-region-selector__button {
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #181a1f;
    text-align: left;
    cursor: pointer;
}

.sd-region-selector__button strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
    white-space: normal;
}

.sd-region-selector__button > span {
    display: inline-block;
    margin-top: 4px;
    color: #07852a;
    font-size: 12px;
    border-bottom: 1px dashed currentColor;
}

.sd-region-selector__button:hover strong,
.sd-region-selector__button:focus strong {
    color: #057d28;
}

.sd-region-selector__button:focus-visible,
.sd-region-mobile:focus-visible,
.sd-region-modal button:focus-visible {
    outline: 3px solid rgba(7, 150, 47, .3);
    outline-offset: 3px;
}

.sd-region-mobile {
    display: none;
}

.sd-region-modal[hidden] {
    display: none !important;
}

.sd-region-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sd-region-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 22, 28, .62);
    cursor: default;
}

.sd-region-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    padding: 32px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.sd-region-modal__dialog h2 {
    margin: 0 40px 8px 0;
    color: #181a1f;
    font-size: 27px;
    line-height: 1.2;
}

.sd-region-modal__dialog > p {
    margin: 0 0 22px;
    color: #69717c;
    font-size: 15px;
    line-height: 1.5;
}

.sd-region-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f3f4;
    color: #2b3036;
    font-size: 28px;
    line-height: 36px;
    cursor: pointer;
}

.sd-region-modal__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sd-region-modal__options button {
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid #d8dde2;
    border-radius: 9px;
    background: #fff;
    color: #252b31;
    text-align: left;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}

.sd-region-modal__options button:hover,
.sd-region-modal__options button.is-current {
    border-color: #07962f;
    background: #f0faf3;
    color: #057d28;
}

.sd-region-modal__options button.is-current::after {
    content: ' ✓';
    font-weight: 700;
}

.sd-region-modal__reset {
    margin-top: 18px;
    padding: 0;
    border: 0;
    border-bottom: 1px dashed currentColor;
    background: transparent;
    color: #07852a;
    font-size: 14px;
    cursor: pointer;
}

body.sd-region-modal-open {
    overflow: hidden;
}

@media (max-width: 1199.98px) {
    .sd-region-mobile {
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 8px 18px;
        border: 0;
        border-top: 1px solid #edf0f1;
        background: #fff;
        color: #242a30;
        text-align: left;
        cursor: pointer;
    }

    .sd-region-mobile .sd-ui-icon {
        width: 30px;
        height: 30px;
        flex: 0 0 auto;
    }

    .sd-region-mobile > span:nth-child(2) {
        min-width: 0;
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .sd-region-mobile small {
        color: #747b84;
        font-size: 11px;
    }

    .sd-region-mobile strong {
        overflow: hidden;
        color: #20252a;
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sd-region-mobile__change {
        margin-left: auto;
        color: #07852a;
        font-size: 12px;
        border-bottom: 1px dashed currentColor;
    }
}

@media (max-width: 600px) {
    .sd-region-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .sd-region-modal__dialog {
        max-height: calc(100vh - 20px);
        padding: 26px 18px 22px;
        border-radius: 18px 18px 10px 10px;
    }

    .sd-region-modal__dialog h2 {
        font-size: 22px;
    }

    .sd-region-modal__options {
        grid-template-columns: 1fr;
    }

    .sd-region-modal__options button {
        min-height: 46px;
    }
}
