/*
 * Hidden by default and revealed by promotion-banner.js only once it has
 * confirmed no dismissal is stored, so a dismissed banner never flashes on
 * screen. With no javascript the banner simply never appears.
 */
.promotion-banner {
    position: relative;
    display: none;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background-color: #ffefe5;
    margin-bottom: 18px;

    @media (max-width: 1024px) {
        flex-wrap: wrap;
        padding: 16px 32px 16px 16px;
    }

    @media (max-width: 768px) {
        margin-top: 16px;
    }
}

.promotion-banner--visible {
    display: flex;
}

.promotion-banner__icon {
    width: 24px;
    height: 24px;
    padding: 2px;
    color: #ffa64d;
    flex-shrink: 0;
}

.promotion-banner__icon svg {
    width: 20px;
    height: 20px;
}

.promotion-banner__text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.promotion-banner__content-wrapper {
    display: flex;
    width: 100%;
    gap: 12px;

    @media (max-width: 1024px) {
        width: calc(100% - 24px - 12px);
        gap: 0;
        flex-wrap: wrap;
    }
}

.promotion-banner__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    color: #16181d;
}

.promotion-banner__description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.15;
    margin: 0;
    color: #414958;
}

.promotion-banner__link {
    text-decoration: none;
    margin-left: auto;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.09px;
    background-color: #ffa64d;
    color: #ffffff;
    flex-shrink: 0;
    align-self: center;

    @media (max-width: 1024px) {
      margin: 16px 0 0;
    }
}

.promotion-banner__link:hover,
.promotion-banner__link:focus,
.promotion-banner__link:active {
    text-decoration: none;
    border: none;
    outline: none;
    user-select: none;
    color: #ffffff;
}

.promotion-banner__close {
    position: relative;
    width: 24px;
    height: 24px;
    align-self: center;
    flex-shrink: 0;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;

    @media (max-width: 1024px) {
      position: absolute;
      top: 8px;
      right: 8px;
    }
}

.promotion-banner__close::before,
.promotion-banner__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1px;
    background: #8a94a8;
    border-radius: 1px;
}

.promotion-banner__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.promotion-banner__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
