/* .body:has(.order-long-wait),
.main:has(.order-long-wait) {
    z-index: 1000;
} */

.order-long-wait__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1000;
    background-color: #00000070;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
    display: none;
}

.order-long-wait__wrapper._visible {
    display: block;
}

.order-long-wait__wrapper:has(._show) {
    opacity: 1;
    pointer-events: all;
}

.order-long-wait {
    top: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ededed;
    display: flex;
    align-items: center;
    gap: 5px;
    width: max-content;
}

.order-long-wait-close {
    cursor: pointer;
    align-self: flex-end;
    position: absolute;
    left: 100%;
    bottom: 100%;
}

@media screen and (max-width: 400px) {
    .order-long-wait {
        font-size: 14px;
    }
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
    animation: lds-ring 8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #555;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #555 transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}


@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}