.premium-promotion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem .8rem;
    min-width: 0;
    padding: .7rem;
    margin-block: .75rem;
    border: 1px solid #cbdda7;
    border-radius: .8rem;
    background: #f4f9e9;
    color: #2f420f;
    font-size: .875rem;
    line-height: 1.3;
    text-align: start;
}

.premium-promotion__summary {
    display: flex;
    flex: 1 1 10rem;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.premium-promotion__discount {
    flex: 0 0 auto;
    padding: .42rem .56rem;
    border-radius: .5rem;
    background: #36540a;
    color: #fff;
    font-size: 1.16rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    white-space: nowrap;
}

.premium-promotion__expiry,
.premium-promotion__label {
    color: #4d5b3b;
    font-size: .75rem;
    font-weight: 500;
}

.premium-promotion__expiry {
    flex-basis: 100%;
}

.premium-promotion__redemption {
    display: grid;
    flex: 1 1 auto;
    gap: .12rem;
    min-width: 0;
    padding: .35rem .6rem;
    border: 1px dashed #8ea660;
    border-radius: .5rem;
    background: #fff;
}

.premium-promotion__redemption code {
    color: #2f420f;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .03em;
    overflow-wrap: anywhere;
    user-select: all;
}

.plan-card-premium .premium-promotion {
    margin-bottom: 0;
}

.pricing-table:has(.premium-promotion) .plan-col {
    vertical-align: top;
}

.modal-body > .premium-promotion:first-child {
    margin-top: 0;
}

#premium-checkout .premium-promotion {
    align-self: center;
    width: min(100%, 29rem);
}

@property --premium-ticker-offset {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}

.premium-ticker {
    display: flex;
    align-items: stretch;
    min-height: 2.75rem;
    border-bottom: 2px solid var(--secondary);
    background: var(--dark);
    color: #f7f9fc;
    font-size: .9375rem;
    line-height: 1.35;
}

.premium-ticker__link {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    padding-inline: clamp(.65rem, 2.5vw, 1.5rem) .65rem;
    color: inherit;
    text-decoration: none;
}

.premium-ticker__link:hover {
    color: #fff;
}

.premium-ticker__label {
    flex: 0 0 auto;
    padding: .2rem .55rem;
    border-radius: .3rem;
    background: #b91c2c;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
}

.premium-ticker__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.premium-ticker__track {
    display: block;
}

.premium-ticker__message {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .15rem .85rem;
    padding: .45rem .65rem;
    overflow-wrap: anywhere;
    text-align: center;
}

.premium-ticker__message code {
    padding: .1em .35em;
    border-radius: .25rem;
    background: #fbe9ed;
    color: #761826;
    font-size: inherit;
    font-weight: 700;
}

.premium-ticker__message[aria-hidden="true"],
.premium-ticker__pause,
.premium-ticker__control {
    display: none;
}

.premium-ticker__link:focus-visible,
.premium-ticker__pause:focus-visible ~ .premium-ticker__control {
    outline: 2px solid #ffd8df;
    outline-offset: -4px;
}

@supports (transform: translateX(round(1%, 1px))) {
    .premium-ticker {
        --premium-ticker-animation: premium-ticker-scroll-snapped;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .premium-ticker__pause {
        display: block;
    }

    .premium-ticker__control {
        display: grid;
        flex: 0 0 2.75rem;
        place-items: center;
        margin: 0;
        border-left: 1px solid #526171;
        cursor: pointer;
    }

    .premium-ticker__control:hover {
        background: #374656;
    }

    .premium-ticker__pause:checked ~ .premium-ticker__control .fa-pause,
    .premium-ticker__pause:not(:checked) ~ .premium-ticker__control .fa-play {
        display: none;
    }

    .premium-ticker__pause:not(:checked):not(:focus-visible) ~ .premium-ticker__link:not(:focus-visible) .premium-ticker__track {
        display: flex;
        width: max-content;
        min-width: 200%;
        transform: translateX(round(var(--premium-ticker-offset, 0%), 1px));
        animation: var(--premium-ticker-animation, premium-ticker-scroll) 24s linear infinite;
    }

    .premium-ticker__pause:not(:checked):not(:focus-visible) ~ .premium-ticker__link:not(:focus-visible) .premium-ticker__message {
        display: flex;
        flex: 1 0 auto;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .premium-ticker__link:hover .premium-ticker__track {
        animation-play-state: paused;
    }
}

@keyframes premium-ticker-scroll {
    to {
        transform: translateX(-50%);
    }
}

@keyframes premium-ticker-scroll-snapped {
    to {
        --premium-ticker-offset: -50%;
    }
}
