/* =========================================================
   OPTV site-wide CSS (header, menus, store cards) - 2026-11-19
   Linked from includes/head.tpl right after Lagom's custom.css as
   optv/optv-site.css?v=N. Bump N whenever this file changes, so
   browsers and Cloudflare fetch the new copy.
   (custom.css itself is owned by another server user and is managed
   by Lagom, so the deploy cannot and must not write it.)
   ========================================================= */

/* Phones only (< 768px): a floating, rounded header bar like the
   laptop one, and the account menu as a button with text instead
   of a lone caret. Tablets and laptops keep their current header. */
@media (max-width: 767.98px) {
    .app-nav-header {
        background: transparent;
        box-shadow: none;
        padding: 8px 10px;
    }
    .app-nav-header > .container {
        height: 100%;
        padding: 0 8px 0 4px;
        background: rgba(222, 243, 255, 0.92);
        -webkit-backdrop-filter: saturate(160%) blur(12px);
        backdrop-filter: saturate(160%) blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.75);
        border-radius: 16px;
        box-shadow: 0 10px 32px rgba(15, 35, 65, 0.09);
    }
    .app-nav-header .logo img {
        max-height: 36px;
    }
    .app-nav-header .top-nav #Secondary_Navbar-Account > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 36px;
        padding: 0 12px;
        border-radius: 9px;
        background: #101f35;
        border: 1px solid #087db5;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }
    .app-nav-header .top-nav #Secondary_Navbar-Account > a .item-text {
        display: inline-block !important;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #fff;
    }
    .app-nav-header .top-nav #Secondary_Navbar-Account > a .ls,
    .app-nav-header .top-nav #Secondary_Navbar-Account > a .lm {
        color: #fff;
    }

    /* Store product cards: centre the content on phones */
    body .op-card { text-align: center; }
    body .op-card__head { justify-content: center; flex-wrap: wrap; }
    body .op-card__price { justify-content: center; }
    body .op-card .op-label,
    body .op-card .op-credits { align-self: center; }
    body .op-card .op-list,
    body .op-card .op-feats {
        display: grid;
        grid-template-columns: minmax(0, max-content);
        justify-content: center;
    }
    body .op-card .op-list li,
    body .op-card .op-feats li,
    body .op-card .op-table div { text-align: left; }
}
@media (max-width: 359.98px) {
    .app-nav-header .logo img { max-height: 30px; }
    .app-nav-header .top-nav #Secondary_Navbar-Account > a .item-text { max-width: 76px; }
}

/* Laptops/desktops: the Billing dropdown (logged-in menu) sits at the far
   right of the header grid and opened past the right edge of the screen.
   Anchor it to the right edge of its menu item instead. */
@media (min-width: 992px) {
    .lagom-layout-top .app-nav-menu .menu > li#Primary_Navbar-Billing > .dropdown-menu {
        left: auto;
        right: 0;
    }
}

/* Store > Resellers (2026-11-20): no activation note on the cards, and 4 packages in one row
   on laptops/desktops (same layout as the homepage reseller cards). The page is the Lagom
   order form (server), so it is matched by its active "Resellers" tab. */
.op:has(.op-tab.is-active[data-op-tab="resellers"]) .op-note { display: none; }
@media (min-width: 1100px) {
    .op:has(.op-tab.is-active[data-op-tab="resellers"]) .op-grid { gap: 16px; }
    .op:has(.op-tab.is-active[data-op-tab="resellers"]) .op-card { flex-basis: calc((100% - 48px) / 4); padding: 22px; gap: 14px; border-radius: 24px; }
    .op:has(.op-tab.is-active[data-op-tab="resellers"]) .op-price { font-size: 34px; }
}
