.mu-shop-notification {
    padding: 10px;
    padding-right: 44px;
    text-align: center;
    position: relative;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, padding 0.5s ease-out;
    max-height: 200px; /* Adjust based on your expected maximum height */
    opacity: 1;
}

.mu-shop-notification .mu-shop-notification-slide.mu-shop-notification-has-link {
    cursor: pointer;
}

.mu-shop-notification .mu-shop-notification-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mu-shop-notification .mu-shop-notification-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.mu-shop-notification .mu-shop-notification-slides {
    position: relative;
}

.mu-shop-notification .mu-shop-notification-slide {
    display: none;
    position: relative;
}

.mu-shop-notification .mu-shop-notification-slide.is-active {
    display: block;
}

.mu-shop-notification.mu-animate-in {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.mu-shop-notification-mobile {
    padding: 1em;
}

.mu-shop-notification-mobile .mu-shop-notification-content {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 8px;
}

.mu-shop-notification.mu-animate-in.show {
    max-height: 200px; /* Should match the value above */
    opacity: 1;
    padding-top: 10px;
    padding-bottom: 10px;
}

.mu-shop-notification.mu-animate-out {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.mu-shop-notification .mu-close-notification {
    cursor: pointer;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 28px;
    transform: translateY(-2px);
    font-weight: bold;
    margin-left: 0;
    font-style: normal;
    z-index: 3;
}

/* Show mobile notification for screens up to 767px */
@media screen and (max-width: 767px) {
    .mu-shop-notification-desktop {
        display: none;
    }
}

/* Show desktop notification for screens 768px and above */
@media screen and (min-width: 768px) {
    .mu-shop-notification-mobile {
        display: none;
    }
}