.sidepanel {
    position: fixed;
    top: 0;
    right: -576px;
    width: 576px;
    height: 100%;
    background-color: #ffffff;
    z-index: 999;
    transition: right 0.5s ease-in-out;
    overflow: auto;
}

.sidepanel.active {
    right: 0;
}

@media (max-width: 576px) {
    .sidepanel {
        width: 100%;
    }
}

.sidepanel-block {
    padding-bottom: 2rem;
}

.sidepanel__header,
.sidepanel__body {
    padding: 0 1.5rem;
}

@media (max-width: 576px) {

    .sidepanel__header,
    .sidepanel__body {
        padding: 0 1rem;
    }
}

.js-close-overlay {
    text-decoration: none;
}

.sidepanel__body-title {
    margin: 0 0 1rem;
    padding: 0;
    font-size: 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333333;
}

.sidepanel__header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #333333;
    margin-bottom: 2rem;
    color: #ffffff;
}

.sidepanel__header h1 {
    margin: 0;
    font-size: 16px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
}

.sidepanel__header .js-close-overlay {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    background-color: #009FE3;
    color: #ffffff;
    border-radius: 3px;
}

.sidepanel__header .js-close-overlay svg {
    width: 1rem;
}

.sidepanel__header .js-close-overlay .ico {
    font-size: 1rem;
}

@media (max-width: 576px) {
    .sidepanel__header {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.sidepanel__body .shop-item {
    position: relative;
    padding: 1rem 0;
    border-bottom: 1px solid #CCCCCC;
    cursor: pointer;
}

.sidepanel__body .shop-item h3 {
    margin-bottom: 0.125rem;
    font-size: 16px;
    font-size: 1rem;
    font-weight: 700;
}

.sidepanel__body .shop-item address {
    margin: 0;
    font-style: normal;
}

.sidepanel__body .shop-item.disabled {
    cursor: not-allowed;
}

.sidepanel__body .shop-item.disabled h3,
.sidepanel__body .shop-item.disabled address {
    opacity: 0.5;
}

.sidepanel__body .shop-item .tag {
    position: absolute;
    top: 1rem;
    right: 0;
    padding: 0.25rem 0.5rem;
    font-size: 10px;
    font-size: 0.625rem;
    color: #ffffff;
    text-transform: uppercase;
    border-radius: 70px;
    background-color: #333333;
    letter-spacing: 0.02rem;
}

.sidepanel__body .shop-item .tag--success {
    background-color: green;
}

.sidepanel__body .shop-item .tag--danger {
    background-color: red;
}

.sidepanel__body.product-options--colors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.sidepanel__btn {
    position: sticky;
    bottom: 1rem;
    left: 0;
    padding-top: 1rem;
}

.sidepanel__btn button {
    width: 100%;
}

@keyframes overlayFade {
    0% {
        right: -100%;
    }

    5% {
        right: 0;
        background-color: transparent;
    }

    100% {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

@keyframes overlayFadeOut {
    0% {
        right: 0;
        background-color: rgba(0, 0, 0, 0.7);
    }

    90% {
        right: 0;
        background-color: transparent;
    }

    100% {
        right: -100%;
    }
}

.overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: transparent;
}

.overlay.inactive {
    animation: overlayFadeOut 0.4s ease-in forwards;
}

.overlay.active {
    display: block;
    right: 0;
    animation: overlayFade 0.4s ease-in forwards;
}

body.overflow {
    overflow: hidden;
}