/* ============================================================
   ish-tabs.css
   A modern restyle of the existing McTabs tab bar - same
   click-a-tab-see-a-panel behaviour as before, just slicker:
   rounded pill tabs, comfortable spacing, a clear active state,
   and a clean wrap onto a second row on narrow screens instead
   of the old cramped multi-line look.

   Include this AFTER mctabs.css (it overrides it).
   No HTML changes required - it targets the existing
   <ul id="tabs1" class="mctabs"> + <div class="panel-container">
   markup directly.
   ============================================================ */

ul.mctabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    height: auto;
    margin: 0 0 4px;
    padding: 4px 0;
    font-size: 0;
}

ul.mctabs li {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

ul.mctabs li a {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #bfe3f5;
    background: #eef7fb;
    color: #205a75;
    font: 600 13px/1.2 Verdana, Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

ul.mctabs li a:hover {
    background: #d9edf7;
    border-color: #8ecbe8;
}

ul.mctabs li.selected a {
    background: #1a8fc4;
    border-color: #1a8fc4;
    color: #fff;
    box-shadow: 0 2px 6px rgba(26, 143, 196, .35);
}

/* Content panel - simple flat card instead of the old gradient box */
div.panel-container {
    border: 1px solid #bfe3f5 !important;
    border-radius: 10px;
    background: #fff;
    padding: 0 !important;
    margin: 0;
}

div.panel-container > div.tabcontent {
    display: none;
    padding: 20px 24px;
}

div.panel-container > div.tabcontent.active {
    display: block;
}

/* "View Cart" button, nested inside .video-container: overlay it on
   the video, bottom-right corner - which naturally sits just above
   the nav bar underneath it. */
.video-container {
    position: relative; /* already set in bp.css, restated for safety */
}

.video-container #viewCartTop {
    position: absolute;
    bottom: 10px;
    right: 10px;
    float: none;
    margin: 0;
    z-index: 5; /* above the video (z-index:0) and caption (z-index:1) */
}

/* Fallback styling if #viewCartTop is ever placed somewhere else on
   its own (float right, small margin, own stacking context). */
#viewCartTop {
    display: inline-block;
    float: right;
    margin: 6px;
    position: relative;
    z-index: 2100;
}

/* When nested INSIDE #navBar instead, override to sit inline with
   the nav row: pinned to the right edge, vertically centered. This
   only takes effect if the markup actually places #viewCartTop
   inside the #navBar wrapper - otherwise the plain rule above
   applies. */
#navBar {
    position: relative;
}

#navBar #viewCartTop {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    float: none;
    margin: 0;
    z-index: 2001; /* above the nav's own z-index: 2000 */
}

@media only screen and (max-width: 768px) {
    ul.mctabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 6px 0;
    }

    ul.mctabs li {
        display: block;
        margin: 0;
    }

    ul.mctabs li a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.1;
        padding: 4px 2px;
        min-height: 30px;
        border-radius: 8px;
        font-size: 10px;
    }

    div.panel-container > div.tabcontent {
        padding: 7px;
    }

    /* "View Cart" button: keep it overlaying the video on mobile too
       (no separate row taking up screen space) - just a bit more
       compact to suit a smaller screen. */
    .video-container #viewCartTop {
        padding: 5px 40px;
        background-size: 70px !important;
        bottom: 6px;
        right: 6px;
    }
}
