/* Container */
.wp-alertbanner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

}

/* Slider Wrapper */
.wp-alertbanner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Individual Slide */
.wp-alertbanner-slide {
    display: none;
    /* Hidden by default */
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(4px);

    /* Animation */
    animation: wpAlertBannerSlideDown 0.5s ease-out forwards;
}

.wp-alertbanner-slide.active {
    display: flex;
}

/* Content Layout */
.wp-alertbanner-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 30px;
    flex-wrap: wrap;
}

/* Icon */
.wp-alertbanner-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}


.wp-alertbanner-text p {
    margin: 0;
    padding: 0;
    display: inline;
}

/* Action Button */
.wp-alertbanner-btn {
    padding: 5px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.wp-alertbanner-btn:hover {
    opacity: 0.9;
}

/* Close Button */
.wp-alertbanner-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 1s;
    display: flex;
    align-items: center;
}

.wp-alertbanner-close:hover {
    opacity: 1;
}

.wp-alertbanner-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes wpAlertBannerSlideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes wpAlertBannerFadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

.wp-alertbanner-closing {
    animation: wpAlertBannerFadeOutUp 1s ease-in forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .wp-alertbanner-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 0px;
    }

    .wp-alertbanner-text {
        text-align: center;
    }

    .wp-alertbanner-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .wp-alertbanner-slide {
        padding-right: 40px;
        /* Make room for close button */
    }
}

/* Admin Bar Compatibility */
body.admin-bar .wp-alertbanner-container {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .wp-alertbanner-container {
        margin-top: 46px;
    }
}