.t24-quote-broom {
    position: absolute;
    top: 270px;
    right: clamp(18px, 3vw, 52px);
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(410px, calc(100vw - 28px));
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.t24-quote-broom.is-closing {
    opacity: 0;
    transform: translateY(-8px) scale(.97);
}

.t24-quote-broom[hidden] {
    display: none !important;
}

.t24-quote-broom__character {
    width: clamp(105px, 9vw, 145px);
    flex: 0 0 auto;
    animation: t24qb-float 3s ease-in-out infinite;
    transform-origin: 50% 85%;
}

.t24-quote-broom__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.t24-quote-broom__arm {
    transform-box: fill-box;
    transform-origin: 15% 82%;
    animation: t24qb-wave 1.25s ease-in-out infinite;
}

.t24-quote-broom__sparkles {
    animation: t24qb-sparkle 1.7s ease-in-out infinite;
}

.t24-quote-broom__bubble {
    position: relative;
    width: min(235px, 38vw);
    padding: 15px 17px;
    border: 1px solid rgba(38, 119, 199, .20);
    border-radius: 17px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 13px 30px rgba(20, 67, 111, .16);
    color: #153650;
    font-family: inherit;
    line-height: 1.35;
    pointer-events: auto;
}

.t24-quote-broom__bubble::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #fff;
    border-left: 1px solid rgba(38, 119, 199, .20);
    border-bottom: 1px solid rgba(38, 119, 199, .20);
    transform: translateY(-50%) rotate(45deg);
}

.t24-quote-broom__bubble strong,
.t24-quote-broom__bubble span,
.t24-quote-broom__bubble a {
    position: relative;
    z-index: 1;
    display: block;
}

.t24-quote-broom__bubble strong {
    margin-bottom: 4px;
    font-size: 15px;
}

.t24-quote-broom__bubble span {
    font-size: 13px;
}

.t24-quote-broom__bubble a {
    margin-top: 4px;
    color: #176fbd;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.t24-quote-broom__bubble a:hover,
.t24-quote-broom__bubble a:focus {
    text-decoration: underline;
}

.t24-quote-broom__close {
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 5;
    width: 29px;
    height: 29px;
    padding: 0;
    border: 1px solid rgba(25, 78, 124, .18);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 16px rgba(20, 67, 111, .18);
    color: #23465f;
    font: 700 20px/27px Arial, sans-serif;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    transition: transform .15s ease, background .15s ease;
}

.t24-quote-broom__close:hover,
.t24-quote-broom__close:focus-visible {
    background: #eef7ff;
    transform: scale(1.08);
    outline: none;
}

@keyframes t24qb-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-11deg); }
    75% { transform: rotate(12deg); }
}

@keyframes t24qb-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes t24qb-sparkle {
    0%, 100% { opacity: .45; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 1100px) {
    .t24-quote-broom {
        top: 285px;
        right: 12px;
    }

    .t24-quote-broom__character {
        width: 100px;
    }

    .t24-quote-broom__bubble {
        width: min(225px, 34vw);
    }
}

@media (max-width: 760px) {
    .t24-quote-broom {
        position: absolute;
        top: 215px;
        left: 12px;
        right: 12px;
        justify-content: flex-end;
        gap: 5px;
        max-width: none;
    }

    .t24-quote-broom__character {
        width: 82px;
    }

    .t24-quote-broom__bubble {
        width: min(235px, calc(100vw - 118px));
        padding: 12px 14px;
        border-radius: 14px;
    }

    .t24-quote-broom__bubble strong,
    .t24-quote-broom__bubble a {
        font-size: 13px;
    }

    .t24-quote-broom__bubble span {
        font-size: 12px;
    }

    .t24-quote-broom__close {
        top: -9px;
        right: -3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t24-quote-broom,
    .t24-quote-broom__character,
    .t24-quote-broom__arm,
    .t24-quote-broom__sparkles {
        animation: none !important;
        transition: none !important;
    }
}
