.flavr-container.happy-hour-popup .tL,
.flavr-container.happy-hour-popup .tR,
.flavr-container.happy-hour-popup .bL,
.flavr-container.happy-hour-popup .bR {
    position: absolute;
}

/* Containers de lucioles */
.flavr-container.happy-hour-popup .tL {
    top: -7px;
    left: 110px;
    width: 100px;
    height: 80px;
    z-index: -1;
}

.flavr-container.happy-hour-popup .tR {
    top: 0;
    right: -20px;
    width: 160px;
    height: 120px;
}

.flavr-container.happy-hour-popup .bL {
    bottom: 70px;
    left: -20px;
}

.flavr-container.happy-hour-popup .bR {
    bottom: 0;
    right: -20px;
    width: 140px;
    height: 120px;
}

/* Images des lucioles */
.flavr-container.happy-hour-popup .firefly {
    position: absolute;
}

.flavr-container.happy-hour-popup .firefly.small {
    width: 10px;
    height: 10px;
}

.flavr-container.happy-hour-popup .firefly.medium {
    width: 20px;
    height: 20px;
}

.flavr-container.happy-hour-popup .firefly.large {
    width: 30px;
    height: 30px;
}

/* Placement spécifique des lucioles dans leur container */
.flavr-container.happy-hour-popup .tL .firefly.small {
    bottom: 0;
    left: 10px;
}

.flavr-container.happy-hour-popup .tL .firefly.medium {
    top: 0;
    left: 0;
}

.flavr-container.happy-hour-popup .tL .firefly.large {
    top: 10px;
    right: 10px;
}

.flavr-container.happy-hour-popup .tR .firefly.small {
    top: 0;
    left: 0;
}

.flavr-container.happy-hour-popup .tR .firefly.large {
    bottom: 0;
    right: 0;
}

.flavr-container.happy-hour-popup .bR .firefly.medium {
    right: 0;
    top: 0;
}

.flavr-container.happy-hour-popup .bR .firefly.large {
    bottom: 0;
    left: 0;
}

.flavr-container.happy-hour-popup .flavr-overlay .flavr-fixer {
    margin: 0;
    bottom: -25vh;
}

.flavr-container.happy-hour-popup .flavr-overlay .flavr-fixer::after {
    background-image: url(/static/event/marketing/happy-hours/img/ic_element_graphique_timer.png);
}

.flavr-container.happy-hour-popup .flavr-overlay .flavr-fixer::before {
    background-image: url(/static/event/marketing/happy-hours/img/element_graphique.png);
}

.flavr-container.happy-hour-popup .flavr-overlay .flavr-fixer::before,
.flavr-container.happy-hour-popup .flavr-overlay .flavr-fixer::after {
    content: '';
    background-size: contain;
    background-position: center;
    width: 130%;
    height: 130%;
    position: absolute;
    background-repeat: no-repeat;
    left: -15%;
    top: -15%;
    pointer-events: none;
}

.flavr-container.happy-hour-popup .flavr-outer {
    height: 332px;
    width: 441px;
    padding: 40px 70px 60px 60px;
}

.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message {
    padding: 0 !important;
    overflow: visible;
}

.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message h3 {
    color: #321540;
    font-family: Alegreya Sans SC, sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 24px;
    text-align: center;
    -webkit-text-stroke: 2px #FFFFFF;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 6px rgba(123, 123, 123, 0.6));
    display: grid;
    grid-template:
        "a b"
        "c b";
    max-width: 140px;
    margin: 0 auto;
}

.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message h3 span:first-of-type {
    grid-area: a;
    background: linear-gradient(0.25turn, #5ef5f8, #798dc8, #ab5cb3, #ca3da4, #e52199);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message h3 span:nth-of-type(2) {
    grid-area: c;
    background: linear-gradient(0.25turn, #5ef5f8, #798dc8, #ab5cb3, #ca3da4, #e52199);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message h3 span:last-of-type {
    font-size: 80px;
    line-height: 40px;
    grid-area: b;
    background: linear-gradient(0.5turn, #5ef5f8, #798dc8, #ab5cb3, #ca3da4, #e52199);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message p.popup-text.free-level-highlighted-text {
    color: #F0AB4D;
    font-weight: bold;
    font-size: 20px;
    line-height: 20px;
}

.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message p.popup-text:first-of-type {
    margin-bottom: 20px;
}

.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message p.popup-text {
    color: #321540;
    font-family: Alegreya Sans, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message .nl-button {
    margin-top: 16px;
    background: linear-gradient(90deg, #9700f4 0%, #e48ffb 80%, #e48ffb 100%);
    box-shadow: inset 0 0 27px rgba(9, 191, 198, 0.55), 0 5px 4px 1px rgba(0, 0, 0, 0.1);
    padding: .375rem 2.05rem;
}

/* Happy Hour */
.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message h4 {
    margin: 10px;
}

.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message #happy-hours-timer {
    background: linear-gradient(
            0.25turn, #5ef5f8, #798dc8, #ab5cb3, #ca3da4, #e52199);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Alegreya Sans, sans-serif;
    font-size: 23px;
    line-height: 23px;
    font-weight: 900;
    margin-left: 30px;
    position: relative;
    width: 3.5em;
    display: inline-block;
    filter: drop-shadow(0px 4px 6px rgba(123, 123, 123, 0.6));
    -webkit-text-stroke: calc(3px / 2) #FFFFFF;
}

.flavr-container.happy-hour-popup .flavr-outer .flavr-content .flavr-message #happy-hours-timer::before {
    content: '';
    background-image: url(/static/event/marketing/happy-hours/img/ic_timer.png);
    width: 36px;
    height: 36px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: -33px;
    top: -8px;
}

.flavr-container.happy-hour-popup .flavr-fixer .flavr-outer .flavr-toolbar .flavr-button.close,
.flavr-container.happy-hour-popup .flavr-fixer .flavr-outer .flavr-toolbar.inline .flavr-button.close {
    top: 30px;
    right: 70px;
    background: radial-gradient(#e38dfb, #9c02f5);
}

.flavr-container.happy-hour-popup .hh-halo {
    background: url(/static/event/marketing/happy-hours/img/popup/halo.png);
    width: 720px;
    height: 713px;
    position: absolute;
    top: 0;
    left: 0;
    animation: hh-halo 10s linear infinite;
    pointer-events: none;
}

.flavr-container.happy-hour-popup .hh-halo-outer {
    width: 720px;
    height: 713px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    z-index: -1;
}

@keyframes hh-halo {
    from {
        transform: rotate(0);
        opacity: 1;
    }
    25% {
        opacity: 0.25;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 0.25;
    }
    to {
        transform: rotate(360deg);
        opacity: 1;
    }
}
