/* Musify Connect Pro — layout parity additions (topbar rotator, header
   currency/language selects, sale purchase popup placement). Loaded after
   the theme styles.css so these rules win where they overlap. */

/* ---------- Topbar announcement rotator ---------- */
.mcp-ann {
    position: relative;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}
.mcp-ann-slide {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}
.mcp-ann-slide.active {
    display: flex;
    animation: mcpAnnFade 0.45s ease;
}
@keyframes mcpAnnFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.mcp-ann-prev,
.mcp-ann-next {
    cursor: pointer;
    user-select: none;
}

/* ---------- Header / footer currency + language selects ---------- */
.tf-list.list-currenci .mcp-select {
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    color: inherit;
    cursor: pointer;
    padding: 4px 2px;
    max-width: 170px;
}
.tf-list.list-currenci .mcp-select option {
    color: #111;
}
.header-right .tf-list.list-currenci {
    align-items: center;
    gap: 14px;
}

/* Wishlist / cart count badges sit on the icon like the template cart. */
.nav-icon-list .nav-icon-item {
    position: relative;
}

/* ---------- Mobile menu sub lists ---------- */
.nav-ul-mb .mb-sub-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0 0 0 16px;
}
.nav-ul-mb .mb-sub-list .mb-menu-link {
    font-size: 14px;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* ---------- Sale purchase popup: bottom-left placement ---------- */
/* The theme positions .pop-notice-sale top-right; the sale popup card
   belongs bottom-left, so these rules re-anchor our instance only. */
.pop-notice-sale.mcp-popup {
    left: 24px;
    right: auto;
    top: auto;
    bottom: 24px;
    transform: translateY(16px);
}
.pop-notice-sale.mcp-popup.active {
    transform: translateY(0);
}
.pop-notice-sale.mcp-popup .pns-content .bottom {
    gap: 12px;
}
@media (max-width: 991px) {
    /* Theme hides .pop-notice-sale below 992px; keep ours available —
       layout-parity.js still honours the sale_popup_mobile setting. */
    .pop-notice-sale.mcp-popup {
        display: flex;
        left: 12px;
        bottom: 12px;
        min-width: 0;
        max-width: calc(100vw - 24px);
    }
}
