#ifis-promotion[hidden] {
    display: none !important;
}

#ifis-promotion {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 290px;
    max-width: calc(100vw - 32px);
    z-index: 900;
    box-sizing: border-box;
    background: #fff;
    color: #233740;
    padding: 14px;
    border: 1px solid #d8e1e5;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.13);
    font-family: inherit;
    text-align: left;
    animation: ifisPromoIn .35s ease-out;
}

.ifis-promo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

#ifis-promotion [data-promo-label] {
    font-size: 9px;
    letter-spacing: .06em;
    opacity: .7;
}

#ifis-promotion [data-promo-close] {
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 3px 7px;
}

.ifis-promo-content img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 7px;
    display: block;
    margin: 0 0 12px;
}

#ifis-promotion [data-promo-title] {
    display: block;
    font-size: 18px;
    line-height: 1.3;
}

#ifis-promotion [data-promo-text] {
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 12px;
}

#ifis-promotion [data-promo-link] {
    display: block;
    background: #245b70;
    color: white !important;
    padding: 10px 12px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none !important;
    font-size: 13px;
}

#ifis-promotion [data-promo-expand] {
    display: none;
}

@keyframes ifisPromoIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    #ifis-promotion {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: 260px;
        padding: 10px;
    }

    #ifis-promotion:not(.is-expanded) .ifis-promo-content {
        display: none;
    }

    #ifis-promotion [data-promo-expand] {
        display: block;
        border: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        font-size: 14px;
        cursor: pointer;
        padding: 6px 0;
    }
}

@media (prefers-color-scheme: dark) {
    #ifis-promotion {
        background: #19252c;
        color: #e8f0f3;
        border-color: #40545e;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ifis-promotion {
        animation: none;
    }
}

/* Promotion System 1.1 */

#ifis-promotion {
    z-index: 770;
    max-height: calc(100dvh - 100px);
    overflow: auto;
}

#ifis-promotion .ifis-promo-head {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

#ifis-promotion.is-dragging {
    cursor: grabbing;
    animation: none;
}

#ifis-promotion.is-dragging .ifis-promo-head {
    cursor: grabbing;
}

#ifis-promotion .ifis-promo-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

#ifis-promotion [data-promo-minimize] {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
    cursor: pointer;
    padding: 3px 7px;
}

#ifis-promotion.is-minimized {
    width: 174px;
    padding: 8px 10px;
}

#ifis-promotion.is-minimized .ifis-promo-content,
#ifis-promotion.is-minimized [data-promo-minimize],
#ifis-promotion.is-minimized [data-promo-label] {
    display: none;
}

#ifis-promotion.is-minimized .ifis-promo-head {
    margin-bottom: 0;
}

#ifis-promotion.is-minimized [data-promo-expand] {
    display: block;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0;
}

#ifis-promotion:not(.is-minimized) .ifis-promo-content {
    display: block;
}

#ifis-promotion:not(.is-minimized) [data-promo-expand] {
    display: none;
}

html.ifis-options-open #ifis-promotion,
html.ifis-more-open #ifis-promotion,
html.ifis-lightbox-open #ifis-promotion,
body.share-overlay-open #ifis-promotion,
body:has(dialog[open]) #ifis-promotion {
    visibility: hidden !important;
}
