.loader-region {
    position: relative;
    isolation: isolate;
}

.loader-region__content {
    transition: filter 0.35s ease-in-out, opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
}

.loader-region.is-loading .loader-region__content {
    filter: blur(5px);
    opacity: 0.4;
    transform: scale(0.995);
    pointer-events: none;
}

.overlay-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: inherit;
    background: rgba(255, 250, 244, 0.78);
    backdrop-filter: blur(14px);
    z-index: 3;
}

.overlay-loader__panel {
    width: min(100%, 960px);
}

.overlay-loader__copy {
    margin-bottom: 1rem;
    text-align: center;
    color: #5f5146;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.overlay-loader__skeletons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.overlay-loader__skeleton {
    min-height: 285px;
    border-radius: 24px;
    border: 1px solid rgba(191, 151, 93, 0.2);
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.15) 8%, rgba(255, 255, 255, 0.58) 18%, rgba(255, 255, 255, 0.15) 33%),
        linear-gradient(180deg, #faf2e7, #f6ede1);
    background-size: 200% 100%, 100% 100%;
    animation: overlay-shimmer 1.3s ease-in-out infinite;
    box-shadow: 0 18px 45px rgba(26, 20, 17, 0.08);
}

.loader-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out, background-color 0.25s ease-in-out, border-color 0.25s ease-in-out;
}

.loader-btn[disabled] {
    cursor: wait;
    opacity: 0.88;
}

.loader-btn__spinner {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: loader-spin 0.85s linear infinite;
}

.loader-btn__check {
    width: 1rem;
    height: 0.6rem;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) scale(0.85);
    transform-origin: center;
    animation: loader-check 0.35s ease-in-out forwards;
}

.premium-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    z-index: 1055;
}

.premium-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.premium-loader__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(210, 171, 92, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(14, 12, 10, 0.84) 0%, rgba(29, 22, 17, 0.94) 100%);
    backdrop-filter: blur(12px);
}

.premium-loader__card {
    position: relative;
    width: min(100%, 420px);
    padding: 2rem 1.75rem;
    border-radius: 32px;
    border: 1px solid rgba(212, 181, 109, 0.25);
    background: linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(244, 235, 223, 0.92));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.premium-loader__eyebrow {
    margin-bottom: 0.5rem;
    color: #b98747;
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 700;
}

.premium-loader__title {
    margin: 0;
    color: #1f1a17;
    font-size: clamp(1.4rem, 4vw, 2rem);
}

.premium-loader__subtitle {
    margin: 0.75rem auto 0;
    max-width: 280px;
    color: #5d5048;
    line-height: 1.7;
}

.premium-loader__stage {
    position: relative;
    width: 170px;
    margin: 1.8rem auto 1rem;
    padding-top: 0.5rem;
}

.premium-loader__drop {
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff5d0, #c9993d 65%, #7f5820 100%);
    animation: premium-drop 1.5s ease-in infinite;
    box-shadow: 0 0 18px rgba(197, 150, 73, 0.4);
}

.premium-loader__bottle {
    position: relative;
    width: 110px;
    height: 190px;
    margin: 0 auto;
}

.premium-loader__cap {
    width: 42px;
    height: 28px;
    margin: 0 auto;
    border-radius: 10px 10px 6px 6px;
    background: linear-gradient(180deg, #221c18, #060505);
}

.premium-loader__neck {
    width: 26px;
    height: 18px;
    margin: -2px auto 0;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, rgba(246, 240, 230, 0.7), rgba(255, 255, 255, 0.22));
    border: 1px solid rgba(125, 99, 60, 0.18);
    border-top: none;
}

.premium-loader__glass {
    position: relative;
    height: 142px;
    margin-top: 0.35rem;
    border-radius: 30px 30px 24px 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(246, 234, 216, 0.18)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(177, 136, 72, 0.06));
    border: 1px solid rgba(125, 99, 60, 0.25);
    overflow: hidden;
}

.premium-loader__liquid {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18%;
    background:
        linear-gradient(180deg, rgba(255, 236, 173, 0.98) 0%, rgba(214, 168, 85, 0.95) 55%, rgba(166, 112, 40, 0.98) 100%);
    border-radius: 20px 20px 18px 18px;
    animation: premium-fill 2.6s ease-in-out infinite alternate;
}

.premium-loader__shine {
    position: absolute;
    top: 12px;
    left: 16px;
    width: 18px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    opacity: 0.7;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loader-check {
    from {
        opacity: 0;
        transform: rotate(-45deg) scale(0.6);
    }

    to {
        opacity: 1;
        transform: rotate(-45deg) scale(1);
    }
}

@keyframes overlay-shimmer {
    0% {
        background-position: 200% 0, 0 0;
    }

    100% {
        background-position: -200% 0, 0 0;
    }
}

@keyframes premium-drop {
    0% {
        transform: translate(-50%, 0) scale(0.55);
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 132px) scale(1);
        opacity: 0;
    }
}

@keyframes premium-fill {
    0% {
        height: 18%;
    }

    100% {
        height: 84%;
    }
}

@media (max-width: 575.98px) {
    .premium-loader__card {
        padding: 1.6rem 1.2rem;
        border-radius: 24px;
    }

    .overlay-loader__skeletons {
        grid-template-columns: 1fr;
    }
}
