/* TG PROMO POPUP 1.0.0 */

.tg-promo-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tg-promo-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.tg-promo-popup {
    position: relative;
    width: min(var(--tg-promo-width, 680px), calc(100vw - 40px));
    max-width: 100%;
    max-height: 90vh;
    overflow: auto;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.tg-promo-popup--image {
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.tg-promo-popup__close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.tg-promo-popup--image .tg-promo-popup__close {
    top: -48px;
    right: 0;
}

.tg-promo-popup__featured-image,
.tg-promo-popup__image-only {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
}

.tg-promo-popup__image-link {
    display: block;
}

.tg-promo-popup__content {
    padding: 30px;
    text-align: var(--tg-promo-alignment, center);
    font-family: Arial, Helvetica, sans-serif;
}

.tg-promo-popup__title {
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 1.15;
}

.tg-promo-popup__copy {
    font-size: 16px;
    line-height: 1.6;
}

.tg-promo-popup__copy p:last-child {
    margin-bottom: 0;
}

.tg-promo-popup__copy img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

.tg-promo-popup__copy [style*="text-align: left"] img {
    margin-left: 0;
    margin-right: auto;
}

.tg-promo-popup__copy [style*="text-align: right"] img {
    margin-left: auto;
    margin-right: 0;
}

.tg-promo-popup__cta {
    margin: 20px 0 0;
}

.tg-promo-popup__button {
    display: inline-block;
    min-width: 150px;
    padding: 12px 28px;
    border: 0;
    border-radius: 3px;
    background: var(--tg-promo-button-color, #f5661f);
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 600px) {
    .tg-promo-overlay {
        padding: 14px;
    }

    .tg-promo-popup {
        width: calc(100vw - 28px);
    }

    .tg-promo-popup__content {
        padding: 24px 18px;
    }

    .tg-promo-popup__title {
        font-size: 26px;
    }

    .tg-promo-popup--image .tg-promo-popup__close {
        top: 4px;
        right: 8px;
    }
}
