/* Wrapper under navigation */
.payatt-promo-banners-wrapper {
    position: relative;
    width: 100%;
    z-index: 1000; // Below image zoom
    margin: 0;
    margin-block-start: 0; // WP auto adds
}

/* Each banner hidden by default */
.payatt-promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    max-height: 0;
    transform: translateY(-20px);
    overflow: hidden;
    transition: opacity 1.8s ease, transform 1.8s ease, max-height 1.8s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Show animation */
.payatt-promo-banner.show {
    opacity: 1;
    max-height: 220px; /* enough to fit content */
    transform: translateY(0);
}

.payatt-promo-banner:not(:first-child) {
    margin-top: 1px;
}

/* Inner container for max-width */
.payatt-promo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
    width: 100%;
    gap: 20px;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 18px;
}

/* Icon */
.payatt-promo-banner i {
    font-size: 25px;
    flex-shrink: 0;
}

/* Stack title above description */
.payatt-promo-banner-text-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.payatt-promo-banner-text {
    font-weight: bold;
    font-size: 20px;
}

.payatt-promo-banner-description {
    font-weight: normal;
    font-size: 16px;
    opacity: 0.9;
    margin-top: 8px;
    line-height: 1.3;
}

.payatt-promo-banner-url {
    text-decoration: underline;
    font-weight: bold;
    opacity: 1;
}

/* Close button */
.payatt-promo-banner-close {
    background: transparent;
    border: none;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 15px;
}

.promo-see-more-overlay {
    display: none;
}

/* ------------------ Mobile / small screens ------------------ */
@media (max-width: 768px) {
    .payatt-promo-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 15px;
        font-size: 16px;
        position: relative; /* needed for absolute close */
    }

    /* Remove icon on mobile */
    .payatt-promo-banner i {
        display: none;
    }

    .payatt-promo-banner-text {
        font-size: 18px;
        max-width: 80%;
    }

    /* Description with collapsed height and smooth expand */
    .payatt-promo-banner-description.long-text {
        font-size: 14px;
        display: block;
        overflow: hidden;
        max-height: 3.6em;
        position: relative;
        transition: max-height 0.5s ease;
        padding-bottom: 1.8em;
    }

    /* Expanded state */
    .payatt-promo-banner-description.expanded {
        max-height: 1000px; /* enough to show full text */
    }

    /* Transparent overlay at bottom for "See more" / "See less" */
    .promo-see-more-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1.8em;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        font-size: 14px;
        font-weight: bold;
        transition: background 0.3s ease;
        pointer-events: auto;
        z-index: 2;
    }

    /* Move close button to top-right corner */
    .payatt-promo-banner-close {
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 28px;
        margin-left: 0;
    }
}