:root {
    --cyrex-mde-accent: #ff7aa8;
    --cyrex-mde-gold: #ffc740;
}

.cyrex-mde-banner {
    position: sticky;
    top: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 48px 9px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background:
        linear-gradient(90deg, rgba(255, 122, 168, .94), rgba(255, 199, 64, .92)),
        #111;
    color: #12080d;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.cyrex-mde-banner__flower {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: #c4145a;
    font-weight: 900;
}

.cyrex-mde-banner__text {
    opacity: .78;
    font-weight: 700;
}

.cyrex-mde-banner strong {
    font-weight: 900;
}

.cyrex-mde-banner__close {
    all: unset;
    position: absolute;
    right: 14px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #1c1114;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    transform: translateY(-50%);
}

.cyrex-mde-banner__close:hover {
    background: rgba(255, 255, 255, .36);
}

.cyrex-mde-petals {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.cyrex-mde-petal {
    position: absolute;
    top: -36px;
    color: var(--cyrex-mde-accent);
    text-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    animation-name: cyrex-mde-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.cyrex-mde-product {
    position: relative;
}

.cyrex-mde-product::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 122, 168, .16), 0 0 28px rgba(255, 122, 168, .08);
    opacity: 0;
    transition: opacity 180ms ease;
}

.cyrex-mde-product:hover::after {
    opacity: 1;
}

.cyrex-mde-product__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(18, 18, 18, .72);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    opacity: .86;
    backdrop-filter: blur(10px);
}

.cyrex-mde-product:hover .cyrex-mde-product__badge {
    background: linear-gradient(90deg, var(--cyrex-mde-accent), var(--cyrex-mde-gold));
    color: #17110c;
}

@keyframes cyrex-mde-fall {
    0% {
        transform: translate3d(0, -40px, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(26px, 52vh, 0) rotate(180deg);
    }

    100% {
        transform: translate3d(-18px, 108vh, 0) rotate(360deg);
    }
}

@media (max-width: 767px) {
    .cyrex-mde-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 9px 44px 9px 14px;
        font-size: 12px;
        text-align: left;
    }

    .cyrex-mde-product__badge {
        top: 8px;
        left: 8px;
        min-height: 23px;
        padding: 0 8px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cyrex-mde-petals {
        display: none;
    }

    .cyrex-mde-product::after {
        transition: none;
    }
}
