.taiga-promo-popup[hidden] {
    display: none !important;
}

.taiga-promo-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, .75);
}

.taiga-promo-popup-open {
    overflow: hidden;
}

.taiga-promo-popup__dialog {
    position: relative;
    width: min(560px, calc(100dvh - 32px), 100%);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    background: #172d24;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
}

.taiga-promo-popup__close {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #172d24;
    cursor: pointer;
}

.taiga-promo-popup__close::before,
.taiga-promo-popup__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.taiga-promo-popup__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.taiga-promo-popup__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.taiga-promo-popup__image {
    display: block;
    width: 100%;
    max-height: calc(100dvh - 32px);
    object-fit: contain;
}

.taiga-promo-popup__actions {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 0 16px;
}

.taiga-promo-popup__button {
    display: flex;
    min-height: 48px;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #fff;
    background: #fff;
    color: #172d24 !important;
    font: 600 18px/1.2 Akrobat, sans-serif;
    text-align: center;
    text-decoration: none !important;
}

.taiga-promo-popup__button:hover,
.taiga-promo-popup__button:focus-visible {
    background: #e7eee9;
}

@media (max-width: 520px) {
    .taiga-promo-popup__actions {
        gap: 8px;
        bottom: 12px;
        padding: 0 12px;
    }

    .taiga-promo-popup__button {
        min-height: 44px;
        padding: 6px;
        font-size: 14px;
    }
}
