.maxtop-promo {
    display: inline-flex;
    flex-direction: column;
    gap: 0.45rem;
    position: relative;
    max-width: 100%;
    font-size: 0.875rem;
    font-weight: 500;
    color: inherit;
}

.maxtop-promo--with-prices {
    align-items: flex-start;
}

.maxtop-promo--no-label {
    gap: 0;
}

.maxtop-promo--no-label .maxtop-promo__prices {
    margin-top: 0;
}

.maxtop-promo__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.45em 0.9em;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #2271b1;
    color: #ffffff;
    box-shadow: var(--maxtop-box-shadow, 0 8px 16px rgba(34, 113, 177, 0.2));
    line-height: 1.2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.maxtop-promo__icon {
    font-size: 1.1em;
    line-height: 1;
}

.maxtop-promo__prices {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5em;
    font-size: 0.95em;
}

.maxtop-promo__price--before {
    text-decoration: line-through;
    opacity: 0.65;
    color: var(--maxtop-price-before-color, inherit);
}

.maxtop-promo__price--after {
    font-weight: 700;
    color: var(--maxtop-price-after-color, currentColor);
}

.maxtop-promo--layout-card {
    padding: 1.1em 1.25em;
    border-radius: 14px;
    background: rgba(34, 113, 177, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.maxtop-promo--layout-card .maxtop-promo__inner {
    width: 100%;
    justify-content: space-between;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.maxtop-promo--layout-card .maxtop-promo__prices {
    width: 100%;
    justify-content: space-between;
}

.maxtop-promo--layout-banner {
    width: 100%;
    align-items: center;
    text-align: center;
}

.maxtop-promo--layout-banner .maxtop-promo__inner {
    width: 100%;
    border-radius: 6px;
    justify-content: center;
}

.maxtop-promo--layout-badge .maxtop-promo__inner {
    border-radius: 999px;
}

.maxtop-promo--layout-ribbon {
    padding-left: 1.5em;
}

.maxtop-promo--layout-ribbon .maxtop-promo__inner {
    position: relative;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.maxtop-promo--layout-ribbon .maxtop-promo__inner::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1.2em;
    width: 1.6em;
    background: inherit;
    border-radius: 4px 0 0 4px;
    transform: skewX(-18deg);
    box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.1);
}

.maxtop-promo--shape-rectangle .maxtop-promo__inner {
    border-radius: 6px;
}

.maxtop-promo--shape-rounded .maxtop-promo__inner {
    border-radius: 999px;
}

.maxtop-promo--shape-diagonal .maxtop-promo__inner {
    border-radius: 12px 36px 12px 36px;
}

.maxtop-promo--shape-tag .maxtop-promo__inner {
    border-radius: 6px;
    position: relative;
    padding-right: 1.8em;
}

.maxtop-promo--shape-tag .maxtop-promo__inner::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.55em;
    transform: translateY(-50%);
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
}

.maxtop-promo--position-top-left {
    align-items: flex-start;
    text-align: left;
}

.maxtop-promo--position-top-right {
    align-items: flex-end;
    text-align: right;
}

.maxtop-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.35em 0.9em;
    border-radius: 999px;
    background-color: #040404;
    color: #ff3b30;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
}

.maxtop-promo-badge--position-floating {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
}

.maxtop-promo-badge--position-under-price,
.maxtop-promo-badge--position-inline {
    position: static;
    margin-top: 0.5rem;
}

.maxtop-promo-badge__label {
    color: inherit;
    font-size: 0.82rem;
    line-height: 1;
}

.maxtop-promo-badge__tooltip {
    font-size: 0.75rem;
    color: #f3f4f6;
    opacity: 0.75;
    margin-left: 0.75em;
}

.maxtop-affiliate-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9999;
    max-width: 340px;
    width: calc(100% - 3rem);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    line-height: 1.35;
}

.maxtop-affiliate-banner__inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.maxtop-affiliate-banner__avatar {
    flex: 0 0 auto;
}

.maxtop-affiliate-banner__avatar img {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.maxtop-affiliate-banner__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.maxtop-affiliate-banner__title {
    font-weight: 700;
    font-size: 1.05rem;
}

.maxtop-affiliate-banner__details {
    font-size: 0.85rem;
    opacity: 0.85;
}

.maxtop-affiliate-banner__cta {
    flex: 0 0 auto;
    background: #38bdf8;
    color: #0f172a;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.maxtop-affiliate-banner__cta:hover,
.maxtop-affiliate-banner__cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.35);
}

@media (max-width: 782px) {
    .maxtop-affiliate-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
        padding: 0.85rem;
    }

    .maxtop-affiliate-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .maxtop-affiliate-banner__cta {
        width: 100%;
        justify-content: center;
    }
}

.maxtop-promo-badge--blocked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px dashed rgba(255, 59, 48, 0.4);
    pointer-events: none;
}

.maxtop-promo-bar {
    width: min(640px, 92vw);
    margin: 0 auto;
    background: linear-gradient(135deg, #111 0%, #1c1c1c 100%);
    color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.maxtop-promo-bar--floating {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: 9998;
}

.maxtop-promo-bar--inline {
    position: relative;
    transform: none;
    bottom: auto;
}

.maxtop-promo-bar__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
}

.maxtop-promo-bar__icon {
    font-size: 1.25rem;
}

.maxtop-promo-bar__text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.maxtop-savings-box {
    background: #101010;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 59, 48, 0.2);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    max-width: 420px;
}

.maxtop-savings-box__title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff3b30;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.maxtop-savings-box__list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.maxtop-savings-box__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: center;
}

.maxtop-savings-box__row dt {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.75;
}

.maxtop-savings-box__row dd {
    margin: 0;
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.maxtop-savings-box__notice {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: #fcd34d;
    background: rgba(250, 204, 21, 0.12);
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.maxtop-promo--position-bottom-left {
    align-items: flex-start;
}

.maxtop-promo--position-bottom-right {
    align-items: flex-end;
}

.maxtop-promo--position-under-price {
    display: block;
}

.maxtop-promo--position-inside-image {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
}

.maxtop-promo--position-inside-image.maxtop-promo--position-top-right {
    left: auto;
    right: 1rem;
}

.maxtop-promo--position-inside-image.maxtop-promo--position-bottom-left {
    top: auto;
    bottom: 1rem;
}

.maxtop-promo--position-inside-image.maxtop-promo--position-bottom-right {
    top: auto;
    bottom: 1rem;
    left: auto;
    right: 1rem;
}

.maxtop-promo--animation-fade .maxtop-promo__inner {
    animation: maxtopFade var(--maxtop-anim-duration, 600ms) ease both;
}

.maxtop-promo--animation-slide-up .maxtop-promo__inner {
    animation: maxtopSlideUp var(--maxtop-anim-duration, 600ms) ease both;
}

.maxtop-promo--animation-slide-down .maxtop-promo__inner {
    animation: maxtopSlideDown var(--maxtop-anim-duration, 600ms) ease both;
}

.maxtop-promo--animation-bounce .maxtop-promo__inner {
    animation: maxtopBounce var(--maxtop-anim-duration, 800ms) ease both;
}

.maxtop-promo--animation-pulse .maxtop-promo__inner {
    animation: maxtopPulse var(--maxtop-anim-duration, 800ms) ease both;
}

.maxtop-promo--animation-loop .maxtop-promo__inner {
    animation-iteration-count: infinite;
}

@keyframes maxtopFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes maxtopSlideUp {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes maxtopSlideDown {
    from {
        transform: translateY(-12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes maxtopBounce {
    0%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    70% {
        transform: translateY(3px);
    }
}

@keyframes maxtopPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.maxtop-promo--unstyled {
    all: unset;
    display: inline-flex;
    flex-direction: column;
}

.maxtop-promo--unstyled .maxtop-promo__inner,
.maxtop-promo--unstyled .maxtop-promo__prices {
    all: unset;
}
