/* ==========================================================================
   Mobic Hosting — theme overrides (loads after custom.css, survives no theme edits)
   Applies to LTR. The RTL twin is theme-custom-rtl.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) Sidebar category icons were invisible.
   custom.css paints the icon circle and the glyph with the same colour
   (#0D034A on #0D034A), so every category showed as a solid dark dot.
   Force a light glyph on the dark circle.
   -------------------------------------------------------------------------- */
.lagom-modern .main-sidebar > .panel-sidebar .list-group > a > i,
.lagom-modern .main-sidebar > .panel-sidebar .list-group > ul a > i,
.lagom-modern .panel-sidebar .list-group > a.list-group-item > i,
.lagom-modern .panel-sidebar .list-group > a.list-group-item.active > i,
.lagom-modern .panel-sidebar .list-group > a.list-group-item:hover > i,
.lagom-modern .panel-sidebar .list-group > a.list-group-item:focus > i {
    color: #ffffff !important;
}

/* Active/hover category: invert to a light circle with a dark glyph */
.lagom-modern .main-sidebar > .panel-sidebar .list-group > a.list-group-item.active > i,
.lagom-modern .main-sidebar > .panel-sidebar .list-group > a.list-group-item:hover > i {
    background-color: #ffffff !important;
    color: #0D034A !important;
    box-shadow: inset 0 0 0 1px rgba(13, 3, 74, .18);
}

/* --------------------------------------------------------------------------
   2) Cookie consent box floated over the first package card and its
   "Order now" button. Keep it clear of the content column.
   -------------------------------------------------------------------------- */
.cookie-bar.cookie-bar--bottom-left,
.cookie-bar.cookie-bar--bottom-right {
    max-width: 300px;
}

@media (min-width: 992px) {
    .page-products .cookie-bar,
    .page-order .cookie-bar {
        bottom: 16px;
    }
}

/* --------------------------------------------------------------------------
   3) Laptop widths (1280–1600). The categories sidebar takes 280px, which
   left the package cards cramped. Tighten the gutters and let the cards
   use the remaining width evenly.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1600px) {
    .page-products .main-grid {
        gap: 24px;
    }

    .page-products .main-sidebar {
        width: 250px;
        min-width: 250px;
        flex: 0 0 250px;
    }

    .page-products .main-content {
        min-width: 0;
        flex: 1 1 auto;
    }

    .page-products .price-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .page-products .price-list .list {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        min-width: 0;
    }
}

/* Below 1280 the third column gets too narrow — drop to two per row */
@media (min-width: 992px) and (max-width: 1279px) {
    .page-products .price-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------------
   4) Package card polish so the grid rows line up on a laptop.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .page-products .price-list .list {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .page-products .price-list .list .center-side {
        flex: 1 1 auto;
    }

    .page-products .price-list .list .top-side .head-t {
        white-space: normal;
        word-break: break-word;
    }
}

/* --------------------------------------------------------------------------
   5) Datacenter / location picker — flag chips on the configure page.
   -------------------------------------------------------------------------- */
.mobic-flag {
    display: inline-block;
    width: 22px;
    height: 16px;
    margin-inline-end: 8px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    vertical-align: -3px;
    object-fit: cover;
}

.panel-check-flag .check-title {
    display: flex;
    align-items: center;
    gap: 0;
}

/* standard_cart renders locations as plain radio labels */
label.mobic-flag-option {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

label.mobic-flag-option .mobic-flag {
    margin-inline-start: 6px;
}

/* --------------------------------------------------------------------------
   6) Sidebar balance card.
   "$0.00 USD" was set at 32px inside a 220px sidebar, so it wrapped onto
   three lines, and the top-up button was rendered at 8px — unreadable.
   -------------------------------------------------------------------------- */
.sidebar-balance-amount {
    font-size: 26px !important;
    line-height: 1.25 !important;
    height: auto !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    unicode-bidi: isolate;
}

.sidebar-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.sidebar-balance-topup-btn {
    font-size: 13px !important;
    line-height: 1 !important;
    padding: 8px 14px !important;
    min-height: 32px;
    width: auto !important;
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 6px;
}

/* Very long amounts (e.g. 1,234,567.00 SDG) step down instead of wrapping */
@media (max-width: 1439px) {
    .sidebar-balance-amount {
        font-size: 22px !important;
    }
}

/* --------------------------------------------------------------------------
   7) Client area on laptop screens (1280–1600).
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1600px) {
    .main-grid {
        gap: 24px;
    }

    .main-content {
        min-width: 0;
    }

    /* Dashboard stat tiles: even 4-up row that never overflows */
    .tiles .swiper-wrapper {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
    }

    .tiles .swiper-slide {
        flex: 1 1 0;
        min-width: 0;
    }

    .tiles .tile {
        width: 100%;
        min-width: 0;
    }
}

/* Long service/domain tables must scroll rather than push the layout wide */
@media (min-width: 992px) {
    .main-content .table-responsive {
        max-width: 100%;
        overflow-x: auto;
    }
}
