#tbf-crm-promotion-root > .tbf-promotion {
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    box-sizing: border-box;
    width: min(var(--promo-width), calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    overflow-wrap: anywhere;
    border: 0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.tbf-promotion::backdrop { background: rgba(0, 0, 0, var(--promo-opacity)); }
#tbf-crm-promotion-root > .tbf-promotion[data-position="top"] { margin-top: 1rem; }
#tbf-crm-promotion-root > .tbf-promotion[data-position^="bottom"] { margin-bottom: 1rem; }
#tbf-crm-promotion-root > .tbf-promotion[data-position="bottom_left"] { margin-left: 1rem; }
#tbf-crm-promotion-root > .tbf-promotion[data-position="bottom_right"] { margin-right: 1rem; }
.tbf-promotion-content h2 { margin: 0 2rem .5rem 0; }
#tbf-crm-promotion-root > .tbf-promotion.has-artwork {
    padding: 0;
    width: fit-content;
    max-width: calc(100% - 2rem);
}
.tbf-promotion-art { position: relative; }
.tbf-promotion-art > img {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    width: auto;
    height: auto;
    max-width: min(var(--promo-width), calc(100vw - 2rem));
    max-height: 55dvh;
}
.tbf-promotion.is-image-only .tbf-promotion-art > img { max-height: calc(100dvh - 2rem); }
.tbf-promotion.has-artwork .tbf-promotion-content { contain: inline-size; padding: 1rem 1.25rem; }
.tbf-promotion-placement { position: absolute; inset: .65rem; }
.tbf-promotion-overlay-text {
    position: absolute;
    left: var(--text-x);
    top: var(--text-y);
    transform: translate(calc(0% - var(--text-x)), calc(0% - var(--text-y)));
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    padding: .45rem .65rem;
    border-radius: .45rem;
    background: rgba(10, 30, 24, .88);
    color: #fff;
}
.tbf-promotion-overlay-text h2 { margin: 0; font-size: clamp(1rem, 4vw, 1.65rem); }
.tbf-promotion-overlay-text p { margin: .2rem 0 0; }
.tbf-promotion.has-artwork .tbf-promotion-close {
    background: #15392e;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    z-index: 1;
}

.tbf-promotion-close {
    position: absolute;
    right: .5rem;
    top: .5rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}
.tbf-promotion form label { display: block; margin: .5rem 0; }
.tbf-promotion form input:not([type="checkbox"]) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: .65rem;
}
.tbf-promotion-cta, .tbf-promotion-opener {
    display: block;
    border: 0;
    border-radius: .5rem;
    padding: .75rem;
    background: #1a5d4a;
    color: #fff;
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.tbf-promotion-cta { width: 100%; margin-top: .75rem; box-sizing: border-box; }
.tbf-promotion-opener { margin: 1rem auto; }
.tbf-promotion :focus-visible, .tbf-promotion-opener:focus-visible { outline: 3px solid #2788bd; outline-offset: 2px; }
