.promo_animation {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;

    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;

    padding-bottom: 4px !important;
}

.sp_promo_ani_wrap {
    --bg: #161616;
    --border: #119523;
    --border-white: #9a9a9a;
    --promo-cycle: 20.8s; /* ~5.8s show + 15s pause; keyframes are % of this */
    --text: #ffffff;
    --badge-from: #bf120e;
    --badge-to: #ff7d7a;
    position: relative;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: auto;
    min-height: 30px;
    padding: 1px 6px;
    overflow: hidden;
    gap: 3px;
    background-color: var(--bg);

    /* iOS: promote to its own layer to reduce subpixel snapping of the 1px edges */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.notify_icon_new_updated {
    padding-left: 0px;
}
/* Keep content above pseudo-border */
.sp_promo_ani_wrap > * {
    position: relative;
    z-index: 1;
}
.promo_badge_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* positioning context so promo_badge_count can overlay the icon */
    width: 24px;   /* explicit size, independent of any ancestor context */
    height: 24px;
    flex-shrink: 0;
}
.notify_icon_txt {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.promo_badge_count {
    position: absolute;
    display: flex;
    color: #fff;
    z-index: 9;
    font-family: 'Averta Std semibold';
    font-weight: 400;
    font-size: 11px;
    text-align: center;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* =========================================================
   BASE / RESTING STATE
   Pre-animation look (no border, full opacity text, badge
   at 0deg). The animation is only attached under
   .is-animating, which JS adds 5s after window "load".
   Hidden edges use "0 0" sizes (not "1px 0%") so WebKit
   never has a leftover 1px sliver.
   ========================================================= */
.sp_promo_ani_wrap::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;

    /* The border is a solid box (color animated via plain background-color,
       which every iOS version animates) cut into 1px edges by a mask.
       The mask layers are the edges that grow/shrink in the trace keyframes. */
    background-color: #9a9a9a;

    /*
       Layer 1: top edge
       Layer 2: right edge
       Layer 3: bottom edge
       Layer 4: left edge
    */
    -webkit-mask-image:
        linear-gradient(#000, #000),
        linear-gradient(#000, #000),
        linear-gradient(#000, #000),
        linear-gradient(#000, #000);
    mask-image:
        linear-gradient(#000, #000),
        linear-gradient(#000, #000),
        linear-gradient(#000, #000),
        linear-gradient(#000, #000);

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position:
        left top,
        right top,
        right bottom,
        left bottom;
    mask-position:
        left top,
        right top,
        right bottom,
        left bottom;

    -webkit-mask-size:
        0 0,
        0 0,
        0 0,
        0 0;
    mask-size:
        0 0,
        0 0,
        0 0,
        0 0;
}

/* =========================================================
   ANIMATION START (gated behind .is-animating)
   ---------------------------------------------------------
   Cycle = var(--promo-cycle) (10s active + 15s pause). Idle state is held
   from ~25% to 100% before the next loop begins.
   Three animations on one element (border = solid color box + edge mask):
   - promoBorderTrace : draws / erases the edges
   - promoBorderColor : grey -> green blink -> green hold
   - promoBorderFade  : fully hides the border once erased
   ========================================================= */
.sp_promo_ani_wrap.is-animating::before {
    -webkit-animation:
        promoBorderTrace var(--promo-cycle) linear infinite,
        promoBorderColor var(--promo-cycle) linear infinite,
        promoBorderFade var(--promo-cycle) linear infinite;
    animation:
        promoBorderTrace var(--promo-cycle) linear infinite,
        promoBorderColor var(--promo-cycle) linear infinite,
        promoBorderFade var(--promo-cycle) linear infinite;
}

/* =========================================================
   BORDER TRACE
   ---------------------------------------------------------
   Timings measured frame-by-frame from a screen recording of
   the live pill (1s = 4% of the var(--promo-cycle) cycle):
     draw-in  ~0.74s  (top .32 / right .06 / bottom .22 / left .14)
     hold     ~3.4s
     erase    ~0.86s  (top .34 / right .11 / bottom .29 / left .12)
   Draw-in ends at ~3.56% so the green blink (~3.7%) still starts
   right after the last edge closes.
   ========================================================= */
@keyframes promoBorderTrace {
    /* idle until the draw-in starts */
    0% { -webkit-mask-position: left top, right top, right bottom, left bottom; mask-position: left top, right top, right bottom, left bottom; -webkit-mask-size: 0 0, 0 0, 0 0, 0 0; mask-size: 0 0, 0 0, 0 0, 0 0; }
    /* DRAW  top    (0.32s, eases in)   left -> right  */
    0.3846% { -webkit-mask-position: left top, right top, right bottom, left bottom; mask-position: left top, right top, right bottom, left bottom; -webkit-mask-size: 13% 1px, 1px 0%, 0% 1px, 1px 0%; mask-size: 13% 1px, 1px 0%, 0% 1px, 1px 0%; }
    0.7692% { -webkit-mask-position: left top, right top, right bottom, left bottom; mask-position: left top, right top, right bottom, left bottom; -webkit-mask-size: 34% 1px, 1px 0%, 0% 1px, 1px 0%; mask-size: 34% 1px, 1px 0%, 0% 1px, 1px 0%; }
    1.1538% { -webkit-mask-position: left top, right top, right bottom, left bottom; mask-position: left top, right top, right bottom, left bottom; -webkit-mask-size: 61% 1px, 1px 0%, 0% 1px, 1px 0%; mask-size: 61% 1px, 1px 0%, 0% 1px, 1px 0%; }
    1.3846% { -webkit-mask-position: left top, right top, right bottom, left bottom; mask-position: left top, right top, right bottom, left bottom; -webkit-mask-size: 85% 1px, 1px 0%, 0% 1px, 1px 0%; mask-size: 85% 1px, 1px 0%, 0% 1px, 1px 0%; }
    /* DRAW  right  (0.06s)             top -> bottom  */
    1.5385% { -webkit-mask-position: left top, right top, right bottom, left bottom; mask-position: left top, right top, right bottom, left bottom; -webkit-mask-size: 100% 1px, 1px 0%, 0% 1px, 1px 0%; mask-size: 100% 1px, 1px 0%, 0% 1px, 1px 0%; }
    /* DRAW  bottom (0.22s)             right -> left  */
    1.8269% { -webkit-mask-position: left top, right top, right bottom, left bottom; mask-position: left top, right top, right bottom, left bottom; -webkit-mask-size: 100% 1px, 1px 100%, 0% 1px, 1px 0%; mask-size: 100% 1px, 1px 100%, 0% 1px, 1px 0%; }
    /* DRAW  left   (0.14s)             bottom -> top  */
    2.8846% { -webkit-mask-position: left top, right top, right bottom, left bottom; mask-position: left top, right top, right bottom, left bottom; -webkit-mask-size: 100% 1px, 1px 100%, 100% 1px, 1px 0%; mask-size: 100% 1px, 1px 100%, 100% 1px, 1px 0%; }
    /* HOLD ~3.4s with all four edges drawn */
    3.5577%, 19.7774% { -webkit-mask-position: left top, right top, right bottom, left bottom; mask-position: left top, right top, right bottom, left bottom; -webkit-mask-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%; mask-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%; }
    /* ERASE top    (0.34s)  left -> right (anchor flips while edge is full width) */
    19.8014% { -webkit-mask-position: right top, right top, right bottom, left bottom; mask-position: right top, right top, right bottom, left bottom; -webkit-mask-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%; mask-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%; }
    /* ERASE right  (0.11s)  top -> bottom */
    21.4361% { -webkit-mask-position: right top, right top, right bottom, left bottom; mask-position: right top, right top, right bottom, left bottom; -webkit-mask-size: 0% 1px, 1px 100%, 100% 1px, 1px 100%; mask-size: 0% 1px, 1px 100%, 100% 1px, 1px 100%; }
    21.4601% { -webkit-mask-position: right top, right bottom, right bottom, left bottom; mask-position: right top, right bottom, right bottom, left bottom; -webkit-mask-size: 0% 1px, 1px 100%, 100% 1px, 1px 100%; mask-size: 0% 1px, 1px 100%, 100% 1px, 1px 100%; }
    /* ERASE bottom (0.29s)  right -> left */
    21.9649% { -webkit-mask-position: right top, right bottom, right bottom, left bottom; mask-position: right top, right bottom, right bottom, left bottom; -webkit-mask-size: 0% 1px, 1px 0%, 100% 1px, 1px 100%; mask-size: 0% 1px, 1px 0%, 100% 1px, 1px 100%; }
    21.9889% { -webkit-mask-position: right top, right bottom, left bottom, left bottom; mask-position: right top, right bottom, left bottom, left bottom; -webkit-mask-size: 0% 1px, 1px 0%, 100% 1px, 1px 100%; mask-size: 0% 1px, 1px 0%, 100% 1px, 1px 100%; }
    /* ERASE left   (0.12s)  bottom -> top */
    23.3591% { -webkit-mask-position: right top, right bottom, left bottom, left bottom; mask-position: right top, right bottom, left bottom, left bottom; -webkit-mask-size: 0% 1px, 1px 0%, 0% 1px, 1px 100%; mask-size: 0% 1px, 1px 0%, 0% 1px, 1px 100%; }
    23.3832% { -webkit-mask-position: right top, right bottom, left bottom, left top; mask-position: right top, right bottom, left bottom, left top; -webkit-mask-size: 0% 1px, 1px 0%, 0% 1px, 1px 100%; mask-size: 0% 1px, 1px 0%, 0% 1px, 1px 100%; }
    23.9361% { -webkit-mask-position: right top, right bottom, left bottom, left top; mask-position: right top, right bottom, left bottom, left top; -webkit-mask-size: 0% 1px, 1px 0%, 0% 1px, 1px 0%; mask-size: 0% 1px, 1px 0%, 0% 1px, 1px 0%; }
    /* fully erased - hold this idle state through the pause */
    23.9601%, 100% { -webkit-mask-position: right top, right bottom, left bottom, left top; mask-position: right top, right bottom, left bottom, left top; -webkit-mask-size: 0 0, 0 0, 0 0, 0 0; mask-size: 0 0, 0 0, 0 0, 0 0; }
}

/* =========================================================
   BORDER COLOR
   Grey while drawing, then three green blinks (same timing
   the old green overlay used), then green until the erase.
   ========================================================= */
@keyframes promoBorderColor {
    0%, 3.0567% { background-color: #9a9a9a; }
    3.8159%          { background-color: #119523; }
    4.537%        { background-color: #9a9a9a; }
    5.2582%        { background-color: #119523; }
    5.9793%        { background-color: #9a9a9a; }
    6.7005%, 100% { background-color: #119523; }
}

/* =========================================================
   BORDER FADE-OUT
   Fully hides the pseudo-element once the erase is done,
   so WebKit cannot leave a sliver visible during the pause.
   ========================================================= */
@-webkit-keyframes promoBorderFade {
    0%, 24.0082%   { opacity: 1; }
    24.2486%, 100%   { opacity: 0; }
}

@keyframes promoBorderFade {
    0%, 24.0082%   { opacity: 1; }
    24.2486%, 100%   { opacity: 0; }
}

/* =========================================================
   BADGE
   ========================================================= */

.sp_promo_ani_wrap .promo_badge {
    position: relative;
    z-index: 1;
    top: 0;
    flex-shrink: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    width: 24px;
    height: 24px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    opacity: 1;
}

.sp_promo_ani_wrap .promo_badge {
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    /* rotation only runs once .is-animating is added */
}
.sp_promo_ani_wrap.is-animating .promo_badge {
    -webkit-animation: promoBadgeRotate var(--promo-cycle) linear infinite;
    animation: promoBadgeRotate var(--promo-cycle) linear infinite;
}

.sp_promo_ani_wrap.is-animating .promo_badge_wrap .promo_badge_value {
    -webkit-animation: promoContentBlink var(--promo-cycle) ease-in-out infinite;
    animation: promoContentBlink var(--promo-cycle) ease-in-out infinite;
}

/* Count number: blink AND zoom together, in sync with the border flashes.
   Both animations must be listed in ONE declaration (a later `animation`
   rule replaces an earlier one, it doesn't add to it). Blink animates
   opacity and zoom animates transform, so they don't conflict. */
.sp_promo_ani_wrap .promo_badge_wrap .promo_badge_count.promo_badge_value,
.sp_promo_ani_wrap .notify_icon_txt .promo_badge_count.promo_badge_value {
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    transform: unset;
}
.sp_promo_ani_wrap.is-animating .promo_badge_wrap .promo_badge_count.promo_badge_value,
.sp_promo_ani_wrap.is-animating .notify_icon_txt .promo_badge_count.promo_badge_value {
    -webkit-animation:
        promoCountZoom var(--promo-cycle) ease-in-out infinite,
        promoContentBlink var(--promo-cycle) ease-in-out infinite;
    animation:
        promoCountZoom var(--promo-cycle) ease-in-out infinite,
        promoContentBlink var(--promo-cycle) ease-in-out infinite;
}

/* Badge spin: ONE full turn that starts at 0s, cruises at ~66 deg/s until the
   border finishes erasing (4.98s), then keeps turning for 1 more second,
   slowing smoothly to a stop at 5.98s (28.74% of the 20.8s cycle).
   To change the extra time: move the last keyframe (28.74%) right/left. */
@-webkit-keyframes promoBadgeRotate {
    0%   { -webkit-transform: rotate(0deg); transform: rotate(0deg); -webkit-animation-timing-function: linear; animation-timing-function: linear; }
    23.9361% { -webkit-transform: rotate(327.1deg); transform: rotate(327.1deg); -webkit-animation-timing-function: cubic-bezier(0.3333, 0.6667, 0.6667, 1); animation-timing-function: cubic-bezier(0.3333, 0.6667, 0.6667, 1); }
    28.7438%, 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes promoBadgeRotate {
    0%   { transform: rotate(0deg); animation-timing-function: linear; }
    23.9361% { transform: rotate(327.1deg); animation-timing-function: cubic-bezier(0.3333, 0.6667, 0.6667, 1); }
    28.7438%, 100% { transform: rotate(360deg); }
}

/* =========================================================
   COUNT ZOOM (in/out pulse synced to each border-blink flash)
   ========================================================= */

@-webkit-keyframes promoCountZoom {
    0%, 3.0567% { -webkit-transform: translateZ(0) scale(1);    transform: translateZ(0) scale(1); }

    3.2389%   { -webkit-transform: translateZ(0) scale(1.08); transform: translateZ(0) scale(1.08); }
    3.4216%  { -webkit-transform: translateZ(0) scale(1.155); transform: translateZ(0) scale(1.155); }
    3.6043%  { -webkit-transform: translateZ(0) scale(1.225); transform: translateZ(0) scale(1.225); }
    3.787%  { -webkit-transform: translateZ(0) scale(1.295); transform: translateZ(0) scale(1.295); }
    3.9697%  { -webkit-transform: translateZ(0) scale(1.355); transform: translateZ(0) scale(1.355); }
    4.1524%   { -webkit-transform: translateZ(0) scale(1.405); transform: translateZ(0) scale(1.405); }
    4.3303%  { -webkit-transform: translateZ(0) scale(1.445); transform: translateZ(0) scale(1.445); }
    4.513%   { -webkit-transform: translateZ(0) scale(1.475); transform: translateZ(0) scale(1.475); }
    4.6957%  { -webkit-transform: translateZ(0) scale(1.495); transform: translateZ(0) scale(1.495); }
    4.8784%  { -webkit-transform: translateZ(0) scale(1.5);   transform: translateZ(0) scale(1.5); }
    5.0611%  { -webkit-transform: translateZ(0) scale(1.495); transform: translateZ(0) scale(1.495); }
    5.2438%  { -webkit-transform: translateZ(0) scale(1.475); transform: translateZ(0) scale(1.475); }
    5.4264%   { -webkit-transform: translateZ(0) scale(1.445); transform: translateZ(0) scale(1.445); }
    5.6091%  { -webkit-transform: translateZ(0) scale(1.405); transform: translateZ(0) scale(1.405); }
    5.7918%  { -webkit-transform: translateZ(0) scale(1.355); transform: translateZ(0) scale(1.355); }
    5.9697%  { -webkit-transform: translateZ(0) scale(1.295); transform: translateZ(0) scale(1.295); }
    6.1524%  { -webkit-transform: translateZ(0) scale(1.225); transform: translateZ(0) scale(1.225); }
    6.3351% { -webkit-transform: translateZ(0) scale(1.155); transform: translateZ(0) scale(1.155); }
    6.5178% { -webkit-transform: translateZ(0) scale(1.08);  transform: translateZ(0) scale(1.08); }

    6.7005%, 100% { -webkit-transform: translateZ(0) scale(1); transform: translateZ(0) scale(1); }
}

@keyframes promoCountZoom {
    0%, 3.0567% { transform: translateZ(0) scale(1); }

    3.2389%   { transform: translateZ(0) scale(1.08); }
    3.4216%  { transform: translateZ(0) scale(1.155); }
    3.6043%  { transform: translateZ(0) scale(1.225); }
    3.787%  { transform: translateZ(0) scale(1.295); }
    3.9697%  { transform: translateZ(0) scale(1.355); }
    4.1524%   { transform: translateZ(0) scale(1.405); }
    4.3303%  { transform: translateZ(0) scale(1.445); }
    4.513%   { transform: translateZ(0) scale(1.475); }
    4.6957%  { transform: translateZ(0) scale(1.495); }
    4.8784%  { transform: translateZ(0) scale(1.5); }
    5.0611%  { transform: translateZ(0) scale(1.495); }
    5.2438%  { transform: translateZ(0) scale(1.475); }
    5.4264%   { transform: translateZ(0) scale(1.445); }
    5.6091%  { transform: translateZ(0) scale(1.405); }
    5.7918%  { transform: translateZ(0) scale(1.355); }
    5.9697%  { transform: translateZ(0) scale(1.295); }
    6.1524%  { transform: translateZ(0) scale(1.225); }
    6.3351% { transform: translateZ(0) scale(1.155); }
    6.5178% { transform: translateZ(0) scale(1.08); }

    6.7005%, 100% { transform: translateZ(0) scale(1); }
}

/* =========================================================
   TITLE
   ========================================================= */

.sp_promo_ani_wrap .promo_title_wrap {
    position: relative;
    z-index: 1;

    display: -webkit-box;
    display: -webkit-flex;
    display: flex;

    opacity: 1;
}

.sp_promo_ani_wrap .promo_title_wrap .title {
    color: var(--text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.sp_promo_ani_wrap.is-animating .promo_title_wrap .title {
    -webkit-animation: promoContentBlink var(--promo-cycle) ease-in-out infinite;
    animation: promoContentBlink var(--promo-cycle) ease-in-out infinite;
}

.sp_promo_ani_wrap .promo_title_wrap .head3 {
    color: #9a9a9a;
}
.sp_promo_ani_wrap.is-animating .promo_title_wrap .head3 {
    -webkit-animation:
        promoContentBlink var(--promo-cycle) ease-in-out infinite,
        promoTextColor var(--promo-cycle) ease-in-out infinite;
    animation:
        promoContentBlink var(--promo-cycle) ease-in-out infinite,
        promoTextColor var(--promo-cycle) ease-in-out infinite;
}

/* =========================================================
   TEXT / BADGE BLINK
   ========================================================= */

@-webkit-keyframes promoContentBlink {
    0%, 3.0567% { opacity: 1; }
    3.8159%          { opacity: 0; }
    4.537%        { opacity: 1; }
    5.2582%        { opacity: 0; }
    5.9793%        { opacity: 1; }
    6.7005%       { opacity: 0; }
    7.1813%, 100% { opacity: 1; }
}

@keyframes promoContentBlink {
    0%, 3.0567% { opacity: 1; }
    3.8159%          { opacity: 0; }
    4.537%        { opacity: 1; }
    5.2582%        { opacity: 0; }
    5.9793%        { opacity: 1; }
    6.7005%       { opacity: 0; }
    7.1813%, 100% { opacity: 1; }
}

@-webkit-keyframes promoTextColor {
    0%, 3.0567% { color: #9a9a9a; }
    3.8159%, 18.2389%     { color: #119523; }
    27.8543%, 100%   { color: #9a9a9a; }
}

@keyframes promoTextColor {
    0%, 3.0567% { color: #9a9a9a; }
    3.8159%, 18.2389%     { color: #119523; }
    27.8543%, 100%   { color: #9a9a9a; }
}

/* =========================================================
   REDUCED MOTION
   Static, fully green border and green text; no animation.
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .sp_promo_ani_wrap.is-animating::before,
    .sp_promo_ani_wrap.is-animating .promo_badge,
    .sp_promo_ani_wrap.is-animating .promo_badge_value,
    .sp_promo_ani_wrap.is-animating .promo_title_wrap .title,
    .sp_promo_ani_wrap.is-animating .promo_title_wrap .head3,
    .sp_promo_ani_wrap.is-animating .promo_badge_wrap .promo_badge_count.promo_badge_value,
    .sp_promo_ani_wrap.is-animating .notify_icon_txt .promo_badge_count.promo_badge_value {
        -webkit-animation: none !important;
        animation: none !important;
    }

    .sp_promo_ani_wrap.is-animating .promo_badge_wrap .promo_badge_count.promo_badge_value,
    .sp_promo_ani_wrap.is-animating .notify_icon_txt .promo_badge_count.promo_badge_value {
        -webkit-transform: none !important;
        transform: none !important;
    }

    .sp_promo_ani_wrap.is-animating::before {
        background-color: #119523;
        opacity: 1;

        -webkit-mask-position:
            left top,
            right top,
            right bottom,
            left bottom;
        mask-position:
            left top,
            right top,
            right bottom,
            left bottom;

        -webkit-mask-size:
            100% 1px,
            1px 100%,
            100% 1px,
            1px 100%;
        mask-size:
            100% 1px,
            1px 100%,
            100% 1px,
            1px 100%;
    }

    .sp_promo_ani_wrap.is-animating .promo_title_wrap .head3 {
        color: #119523;
    }
}
@media only screen and (min-width: 767px) and (max-width: 1024px) {
    .navbar_notify_iconadj .head3 {
        line-height: 3;
    }
}