.hstore-site-selector {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10020;
    transition: bottom .25s;
}

.hstore-site-selector.has-back-to-top {
    bottom: 78px;
}

button.hstore-site-selector__toggle,
button.hstore-back-to-top {
    padding: unset;
}

.hstore-site-selector__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.25);
    cursor: pointer;
}

.hstore-site-selector__toggle:hover,
.hstore-site-selector__toggle:focus-visible,
.hstore-site-selector button:hover,
.hstore-back-to-top:hover {
    background: #31343a;
    color: #fff;
    outline: none;
}

.hstore-site-selector__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hstore-site-selector__icon svg {
    display: block;
}

.hstore-site-selector__panel {
    position: absolute;
    left: 0;
    bottom: 68px;
    min-width: 220px;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.hstore-site-selector__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.hstore-site-selector__current {
    margin: 0 0 10px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.hstore-site-selector__select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
}

.hstore-site-selector__confirm {
    width: 100%;
    margin-top: 10px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.hstore-site-selector-modal[hidden],
.hstore-site-selector__panel[hidden] {
    display: none !important;
}

.hstore-site-selector-modal {
    position: fixed;
    inset: 0;
    z-index: 10030;
}

.hstore-site-selector-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.hstore-site-selector-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 460px);
    margin: 10vh auto 0;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
}

.hstore-site-selector-modal__title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
    color: #111827;
}

.hstore-site-selector-modal__description,
.hstore-site-selector-modal__hint {
    margin: 0;
    color: #4b5563;
}

.hstore-site-selector-modal__hint {
    margin-top: 14px;
    font-size: 13px;
}

.hstore-site-selector-modal__actions {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.hstore-site-selector-modal__option {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.hstore-site-selector-modal__option:last-child {
    background: #0f766e;
}

.hstore-site-selector-open {
    overflow: hidden;
}

.hstore-back-to-top {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10019;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.hstore-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.hstore-back-to-top svg {
    display: block;
}

@media (max-width: 767px) {
    .hstore-site-selector {
        left: 14px;
        bottom: 14px;
    }

    .hstore-site-selector.has-back-to-top {
        bottom: 72px;
    }

    .hstore-site-selector__toggle {
        width: 50px;
        height: 50px;
    }

    .hstore-site-selector__panel {
        left: 0;
        right: auto;
        min-width: 200px;
    }

    .hstore-back-to-top {
        left: 14px;
        bottom: 14px;
    }

    .hstore-site-selector-modal__dialog {
        margin-top: 14vh;
        padding: 22px;
    }

    .hstore-site-selector-modal__title {
        font-size: 24px;
    }
}
