/* ============================================================
   bestrx2024 — Best RX Deals / Bizzlab Navy
   primary #1e40af · secondary #60a5fa · bg #FFFFFF
   Brand accent historically used MDB warning (#1e40af) → remapped to Navy.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

:root {
    --brand-primary: #1e40af;
    --brand-secondary: #60a5fa;
    --brand-bg: #FFFFFF;
    --brand-primary-rgb: 30, 64, 175;
    --brand-secondary-rgb: 96, 165, 250;

    --ui-radius: .6rem;
    --ui-radius-lg: .9rem;
    --ui-shadow: 0 4px 16px rgba(30, 64, 175, .10);
    --ui-shadow-lg: 0 10px 30px rgba(30, 64, 175, .16);

    /* MDB brand remap (templates use btn-warning / text-warning as brand) */
    --mdb-primary: #1e40af;
    --mdb-primary-rgb: 30, 64, 175;
    --mdb-primary-text-emphasis: #1e3a8a;
    --mdb-primary-bg-subtle: #eff6ff;
    --mdb-primary-border-subtle: #93c5fd;
    --mdb-warning: #1e40af;
    --mdb-warning-rgb: 30, 64, 175;
    --mdb-link-color: #1e40af;
    --mdb-link-hover-color: #1e3a8a;
}

/* Ensure warning buttons/text follow Navy even if compiled MDB hardcodes amber */
.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning:disabled {
    --mdb-btn-bg: #1e40af;
    --mdb-btn-border-color: #1e40af;
    --mdb-btn-hover-bg: #1e3a8a;
    --mdb-btn-hover-border-color: #1e3a8a;
    --mdb-btn-active-bg: #1e3a8a;
    --mdb-btn-active-border-color: #1e3a8a;
    --mdb-btn-disabled-bg: #1e40af;
    --mdb-btn-disabled-border-color: #1e40af;
    --mdb-btn-color: #fff;
    --mdb-btn-hover-color: #fff;
    --mdb-btn-active-color: #fff;
    color: #fff !important;
    background-color: #1e40af !important;
    border-color: #1e40af !important;
}

.btn-outline-warning {
    --mdb-btn-color: #1e40af;
    --mdb-btn-border-color: #1e40af;
    --mdb-btn-hover-bg: #1e40af;
    --mdb-btn-hover-border-color: #1e40af;
    --mdb-btn-active-bg: #1e40af;
    --mdb-btn-active-border-color: #1e40af;
    color: #1e40af !important;
    border-color: #1e40af !important;
}

.text-warning,
.link-warning {
    color: #1e40af !important;
}

.bg-warning {
    background-color: #1e40af !important;
}

.accordion-button {
    font-size: 0.85rem;
}

.accordion-body li a {
    font-size: 0.85rem;
}

/* Best RX Deals — sidebar categories */
#accordionCategory {
    overflow: hidden;
    border-radius: .85rem;
    border: 1px solid rgba(255, 255, 255, .18);
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}
#accordionCategory .accordion-item {
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}
#accordionCategory .accordion-item:last-child {
    border-bottom: 0;
}
#accordionCategory .accordion-button {
    box-shadow: none;
}
#accordionCategory .accordion-button:not(.collapsed) {
    background: #eff6ff;
    color: #1e40af;
}

.dropdown a.dropdown-toggle {
    font-size: 13px;
}

.text-review {
    line-height: 2rem;
    max-height: 300px;
    -webkit-box-orient: vertical;
    display: block;
    display: -webkit-box;
    overflow: hidden !important;
    text-overflow: ellipsis;
    -webkit-line-clamp: 8;

}

.breadcrumbs-text {
    font-size: 13px;
}

.page-link.active, .active > .page-link {
    background-color: #1e40af !important;
    color: #fff;
}

.flag-icon-us {
    background-image: url(./us.svg);
}

.flag-icon-gb {
    background-image: url(./lang__en.055eda40.png);
}

.flag-icon-au {
    background-image: url(./au.svg);
}

.flag-icon-fr {
    background-image: url(./lang__fr.1309b9fa.png);
}

.flag-icon-be {
    background-image: url(./be.svg);
}

.flag-icon-it {
    background-image: url(./lang__it.91649c4d.png);
}

.flag-icon-es {
    background-image: url(./lang__es.26eedef0.png);
}

.flag-icon {
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    position: relative;
    display: inline-block;
    width: 1.33333333em;
    height: 1.33333333em;
    line-height: 1em;
}

.notes {
    font-size: 13px;
}

#paymentCheck select.form-control {
    border: 1px solid gray;
}

/*search*/
ul.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front {
    /* position: absolute!important; */
    background-color: #fff;
    width: 20% !important;
    color: #000;
    padding: 5px;

}

li.ui-menu-item {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
    height: 50%;
}

li.ui-autocomplete-category {
    font-weight: 700;
    list-style: none;
}

div.ui-menu-item-wrapper {
    width: 100%;

}

.ui-helper-hidden-accessible {
    display: none;
}

/* .btn-subscribe {
  width: 30%;
} */
.d3 h4 {
    text-align: left;
    padding-bottom: 10px;
    width: 70%;
    border-bottom: 2px solid #1e40af;
    position: relative;
}

.d3 h4:after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30%;
    height: 4px;
    background: #1e40af;
}

@media only screen and (max-width: 767px) {
    ul.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front {
        width: 70% !important;
    }
}

@media only screen and (max-width: 550px) {
    ul.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front {
        width: 95% !important;
    }
}

@media only screen and (max-width: 576px) {
    [id^="phplive_btn_"],
    [id*="phplive_btn_"] {
        display: none !important;
    }

    :root .xs-big {
        font-size: 1.5rem;
    }

    .btn-floating {
        display: none;
    }

}

@media only screen and (max-width: 380px) {
    .btn-hide {
        display: none !important;
        margin-top: 10px;
    }

    .btn-show {
        display: block;
    }

    .column-hide {
        display: none !important;
    }
}

@media only screen and (min-width: 380px) {
    .btn-show {
        display: none;
    }
}

.carousel-control-prev-icon:after,
.carousel-control-next-icon:after {
    display: none;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    color: #000;
    font-weight: 700;
}

.auth-link {
    transition: ease-in 0.5s;
    font-size: 13px;
}

.auth-link:hover,
.auth-link:focus,
.auth-link:active {
    opacity: 0.8;
}

.auth-link:after {
    display: block;
    content: '';
    width: 0;
    height: 2px;
    background-color: #ffff;
    transition: width 0.7s;
}

.auth-link:hover:after {
    width: 100%;
}

.carousel-control-next {
    justify-content: end !important;
}

.carousel-control-prev {
    justify-content: start !important;
}

@media only screen and (min-width: 1100px) {
    .cell-category {
        width: 15%;
    }
}

.name-cell {
    width: 30%;

}

.id-cell {
    width: 78px;
}

.name-catalog-cell {
    /*width: 240px;*/
}

@media only screen and (max-width: 575px) {
    .name-cell {
        width: 60%;
        min-width: 60%;
        max-width: 60%;
    }
}

/*Back to top button*/
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: none;
}

.table-white {
    --mdb-table-color: #000;
    --mdb-table-bg: #fbfbfb;
    --mdb-table-border-color: #c7d2e5;
    --mdb-table-striped-bg: #e8eef8;
    --mdb-table-striped-color: #000;
    --mdb-table-active-bg: #dbe5f5;
    --mdb-table-active-color: #000;
    --mdb-table-hover-bg: #e2eaf7;
    --mdb-table-hover-color: #000;
    color: var(--mdb-table-color);
    border-color: var(--mdb-table-border-color);
}

.accordion-catalog button.accordion-button {
    border-left: 3px solid #1e40af;
}

:root {
    --bs-body-bg: #f7f7f7;
    --bs-orange-rgb: #fd7e14;
}

:root ol, :root ul {
    margin-bottom: 0;
    padding-left: 0;
}

:root .xs-small {
    font-size: .8rem;
}


.header-middle li {
    list-style: none;
}

.logo {
    z-index: 0;
    position: relative;
}

.navbar-collapse {
    z-index: 10;
!important;
    position: relative;
}

.required-field::after {
    content: "*";
    color: red;
    margin-left: 2px
}

.close {
    float: right;
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    filter: alpha(opacity=20);
    opacity: .2;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    filter: alpha(opacity=50);
    opacity: .5;
}

button.close {
    -webkit-appearance: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
}

/*.has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline {
    color: #a94442;
}

.help-block {
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
    color: #737373;
}

.help-block.form-error {
    position: absolute;
    display: block;
    margin-top: -1rem;
    margin-bottom: 5px;
    color: red;
    font-size: 13px;
}*/

.img-thumbnail:hover {
    position: relative;
    display: block;
    z-index: 999;
    -webkit-transform: scale(2);
    -moz-transform: scale(2);
    -o-transform: scale(2);
}

.img-thumbnail {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    margin: auto;
    line-height: 1.42857;
    margin-bottom: 20px;
    padding: 4px;
    transition: all 0.5s ease-out;
    cursor: pointer;
}

.ui-menu-item{
    cursor: pointer;
}

.was-validated .form-control:valid,.form-control.is-valid {
     margin-bottom:0;
}

.invalid-feedback {
    /*margin-top: 0.5rem;*/
}

.disc_valid {
    font-size: 18px;
    text-transform: none;
    font-weight: 400
}

.striped-row:nth-child(odd) {
    background-color: #ffffff; /* Light gray */
}
.striped-row:nth-child(even) {
    background-color: #fafafa; /* Slightly darker gray */
}
.striped-row:hover {
    background-color: #efeeee; /* Highlighted hover color */
    cursor: pointer; /* Optional: Changes cursor to pointer */
    transition: background-color 0.3s ease; /* Smooth color transition */
}

.price {
    color: #ff6600;
}

.form-control.is-valid, .form-control.is-invalid {
    margin-bottom: 0;!important;
}

/* ============================================================
   UI REFRESH 2026 — только форма (шрифты/скругления/тени/hover).
   Никаких изменений палитры: цвета шапки, футера, кнопок, цен,
   аккордеона, табов остаются штатными MDB/бренд.
   ============================================================ */
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', 'Inter', sans-serif;
    letter-spacing: -.01em;
}

/* nav-link: только плавный hover, цвет не трогаем */
.navbar .nav-link { transition: opacity .15s ease; }
.navbar .nav-link:hover, .navbar .nav-link.active { opacity: 1; }

/* кнопки: мягкие формы + аккуратный hover, цвета MDB как есть */
.btn { border-radius: 2rem; font-weight: 600; letter-spacing: .01em; transition: transform .12s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { border-radius: 1.5rem; }

/* btn-group: таблеточный радиус ломает стыки — умеренный ровный радиус,
   без hover-сдвига (иначе кнопки в группе "прыгают" и просвечивают углы) */
.btn-group .btn, .btn-group-vertical .btn { border-radius: var(--ui-radius); }
.btn-group .btn:hover { transform: none; }

/* карточки / товары: скругления + мягкая тень, цвет фона белый как был */
.card, .card-bestseller, .shadow-3 {
    border-radius: var(--ui-radius-lg) !important;
    box-shadow: var(--ui-shadow) !important;
    transition: transform .18s ease, box-shadow .18s ease;
}
.card-bestseller:hover, .multi-carousel-item .card-bestseller:hover {
    transform: translateY(-4px);
    box-shadow: var(--ui-shadow-lg) !important;
}

/* .img-thumbnail: только скругление/тень; hover-zoom scale(2) выше НЕ трогаем */
.img-thumbnail {
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow);
}

/* автокомплит поиска: аккуратный dropdown (форма, не цвет) */
ul.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front {
    border-radius: .5rem !important;
    box-shadow: var(--ui-shadow-lg);
}
li.ui-menu-item { cursor: pointer; }

/* SEO infographic — в тон Best RX Deals Navy (#1e40af, bg #f7f7f7, card/border как description) */
.seo-infographic-wrap {
    max-width: 100%;
}
.seo-infographic {
    display: grid;
    gap: .85rem;
    padding: 1.1rem 1.25rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, .08);
    border-left: 3px solid #1e40af;
    border-radius: var(--ui-radius-lg);
    background: #fff;
    box-shadow: var(--ui-shadow);
}
.seo-infographic__title {
    margin: 0;
    padding-bottom: .45rem;
    width: fit-content;
    max-width: 100%;
    font-family: Poppins, Inter, system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e40af; /* как .text-warning / section headings */
    border-bottom: 2px solid #1e40af;
    position: relative;
}
.seo-infographic__title:after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 36%;
    height: 3px;
    background: #1e40af;
}
.seo-infographic__lead {
    margin: .35rem 0 0;
    color: #6c757d;
    font-size: .92rem;
    line-height: 1.45;
}
.seo-infographic__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
    margin-top: .25rem;
}
.seo-infographic__card {
    padding: .85rem 1rem;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: var(--ui-radius);
    background: #f7f7f7;
}
.seo-infographic__label {
    margin: 0 0 .4rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #1e40af;
}
.seo-infographic__body {
    font-size: .92rem;
    line-height: 1.45;
    color: #212529;
}
.seo-infographic__list {
    margin: 0;
    padding-left: 1.15rem;
}
.seo-infographic__list li {
    margin: .25rem 0;
}
.seo-infographic__list li::marker {
    color: #1e40af;
}
@media (max-width: 576px) {
    .seo-infographic {
        padding: .95rem 1rem;
    }
    .seo-infographic__title {
        font-size: 1.05rem;
    }
    .seo-infographic__grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Homepage hero (HTML/CSS + library doctor) ========== */
.brx-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(280px, 42vw, 420px);
    margin-top: 1rem;
    color: #1e3a8a;
    background: linear-gradient(90deg, #eef4ff 0%, #f8fbff 45%, #ffffff 100%);
    border-radius: 1rem;
}

.brx-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.brx-hero__media picture,
.brx-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.brx-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: inherit;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem);
    padding-left: clamp(48%, 52vw, 56%);
}

.brx-hero__brand {
    margin: 0 0 .65rem;
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: #1e40af;
}

.brx-hero__title {
    margin: 0 0 .75rem;
    max-width: 16ch;
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
    color: #1e3a8a;
}

.brx-hero__lead {
    margin: 0 0 1.35rem;
    max-width: 28rem;
    font-size: clamp(.92rem, 1.4vw, 1.05rem);
    line-height: 1.55;
    color: #334155;
}

.brx-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
}

.brx-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .65rem 1.25rem;
    border-radius: .55rem;
    font-family: Inter, sans-serif;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.brx-hero__btn:hover {
    transform: translateY(-1px);
}

.brx-hero__btn--primary {
    color: #fff;
    background: #1e40af;
    border: 1px solid #1e40af;
}

.brx-hero__btn--primary:hover,
.brx-hero__btn--primary:focus {
    color: #fff;
    background: #1e3a8a;
    border-color: #1e3a8a;
}

.brx-hero__btn--ghost {
    color: #1e40af;
    background: rgba(255, 255, 255, .75);
    border: 1px solid #93c5fd;
}

.brx-hero__btn--ghost:hover,
.brx-hero__btn--ghost:focus {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #1e40af;
}

@media (max-width: 900px) {
    .brx-hero {
        min-height: 0;
        display: grid;
        grid-template-rows: auto auto;
    }
    .brx-hero__media {
        position: relative;
        min-height: 220px;
        order: 1;
    }
    .brx-hero__media img {
        object-position: 20% center;
    }
    .brx-hero__inner {
        order: 2;
        padding: 1.5rem 1.25rem 2rem;
        max-width: none;
        min-height: 0;
    }
}

@media (max-width: 576px) {
    .brx-hero__cta {
        flex-direction: column;
        align-items: stretch;
    }
    .brx-hero__btn {
        width: 100%;
    }
}

/* Best RX Deals — HTML logo */
.brx-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: #1e40af;
    line-height: 1.1;
}
.brx-logo:hover,
.brx-logo:focus {
    color: #1e3a8a;
    text-decoration: none;
}
.brx-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: .55rem;
    background: #1e40af;
    color: #fff;
    font-family: Poppins, Inter, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .02em;
    flex-shrink: 0;
}
.brx-logo__text {
    display: flex;
    flex-direction: column;
    gap: .12rem;
}
.brx-logo__name {
    font-family: Poppins, Inter, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e40af;
    letter-spacing: -.02em;
    white-space: nowrap;
}
.brx-logo__name em {
    font-style: normal;
    color: #60a5fa;
}
.brx-logo__tag {
    font-family: Inter, sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}
.brx-logo--sm .brx-logo__mark {
    width: 2.15rem;
    height: 2.15rem;
    font-size: .8rem;
    border-radius: .4rem;
}
.brx-logo--sm .brx-logo__name {
    font-size: 1rem;
}
.brx-logo--sm .brx-logo__tag {
    display: none;
}
.navbar-dark .brx-logo--nav,
.navbar-dark .brx-logo--nav:hover,
.navbar-dark .brx-logo--nav:focus,
.navbar-dark .brx-logo--sm,
.navbar-dark .brx-logo--sm:hover,
.navbar-dark .brx-logo--sm:focus {
    color: #fff;
}
.navbar-dark .brx-logo--nav .brx-logo__mark,
.navbar-dark .brx-logo--sm .brx-logo__mark {
    background: #60a5fa;
    color: #1e3a8a;
}
.navbar-dark .brx-logo--nav .brx-logo__name,
.navbar-dark .brx-logo--sm .brx-logo__name {
    color: #fff;
}
.navbar-dark .brx-logo--nav .brx-logo__name em,
.navbar-dark .brx-logo--sm .brx-logo__name em {
    color: #93c5fd;
}
.navbar-dark .brx-logo--nav .brx-logo__tag {
    color: rgba(255, 255, 255, .7);
}
.brx-logo--nav .brx-logo__tag {
    font-size: .65rem;
}
@media (max-width: 575.98px) {
    .brx-logo--nav .brx-logo__name {
        font-size: .95rem;
    }
    .brx-logo--nav .brx-logo__mark {
        width: 2.25rem;
        height: 2.25rem;
        font-size: .85rem;
    }
}

/* Compact header rows */
.brx-mainnav {
    min-height: 0;
}
.brx-mainnav__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1rem;
    width: 100%;
}
.brx-mainnav__brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-self: start;
    min-width: 0;
}
.brx-mainnav__menu {
    justify-self: center;
    flex-grow: 0 !important;
}
.brx-mainnav .navbar-nav .nav-link {
    white-space: nowrap;
}
.brx-nav-utils {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    align-items: center;
    justify-self: end;
    margin-left: 0;
    gap: 1.35rem;
}
.brx-nav-utils .nav-link,
.brx-nav-utils .auth-link {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding-left: 0;
    padding-right: 0;
}
.brx-nav-utils .dropdown-toggle::after {
    margin-left: .35rem;
}
.brx-nav-utils__auth {
    gap: .85rem;
}
.brx-nav-utils__sep {
    color: rgba(255, 255, 255, .45);
    font-weight: 400;
}
@media (max-width: 991.98px) {
    .brx-mainnav__inner {
        grid-template-columns: auto 1fr auto;
    }
}
@media (max-width: 767.98px) {
    .brx-mainnav__inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: .5rem .75rem;
    }
    .brx-mainnav__menu {
        flex: 1 0 100%;
        order: 3;
    }
    .brx-nav-utils {
        gap: 1rem;
    }
}
.brx-logo--nav .brx-logo__mark {
    width: 2.15rem;
    height: 2.15rem;
    font-size: .8rem;
    border-radius: .4rem;
}
.brx-logo--nav .brx-logo__name {
    font-size: 1rem;
}

/* Best RX Deals — header middle: phones | subscribe | cart */
.brx-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.25fr) minmax(220px, .9fr);
    align-items: center;
    gap: .85rem 1.25rem;
    padding: .7rem 0;
}
.brx-header-row__subscribe {
    display: flex;
    justify-content: center;
}
.brx-header-row__cart {
    display: flex;
    justify-content: flex-end;
}
.brx-cart {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-align: left;
}
.brx-cart__title {
    font-family: Inter, sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.2;
}
.brx-cart__sum {
    font-family: Inter, sans-serif;
    font-size: .85rem;
    color: #334155;
    line-height: 1.3;
}
.brx-cart__sum .price {
    font-weight: 700;
    color: #1e40af;
}
.brx-cart__btn {
    white-space: nowrap;
}
@media (max-width: 767.98px) {
    .brx-header-row {
        grid-template-columns: 1fr;
    }
    .brx-header-row__subscribe,
    .brx-header-row__cart {
        justify-content: flex-start;
    }
}

/* Best RX Deals — phones block (compact + flags) */
.brx-phones {
    max-width: none;
}
.brx-phones__title {
    margin: 0 0 .35rem;
    font-family: Inter, sans-serif;
    font-size: .85rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.2;
}
.brx-phones__title strong {
    color: #1e40af;
    font-weight: 700;
}
.brx-phones__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .25rem .7rem;
}
.brx-phones__list li {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    white-space: nowrap;
}
.brx-phones__flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(30, 64, 175, .12);
}
.brx-phones__cc {
    min-width: 0;
    font-family: Inter, sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}
.brx-phones__num {
    font-family: Inter, sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: #1e40af;
    text-decoration: none;
    letter-spacing: .01em;
    line-height: 1.2;
}
.brx-phones__num:hover,
.brx-phones__num:focus {
    color: #1e3a8a;
    text-decoration: underline;
}
.brx-phones__more {
    display: inline-block;
    margin-top: .35rem;
    font-family: Inter, sans-serif;
    font-size: .72rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
}
.brx-phones__more:hover,
.brx-phones__more:focus {
    color: #1e40af;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .brx-phones__list {
        flex-direction: column;
        gap: .3rem;
    }
}

/* Best RX Deals — subscribe CTA */
.brx-subscribe {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    max-width: 28rem;
    padding: .65rem .85rem;
    border: 1px solid #93c5fd;
    border-radius: .55rem;
    background: #eff6ff;
    color: #1e40af;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.brx-subscribe:hover,
.brx-subscribe:focus {
    background: #dbeafe;
    border-color: #1e40af;
    color: #1e3a8a;
    text-decoration: none;
}
.brx-subscribe__icon {
    display: inline-flex;
    flex-shrink: 0;
}
.brx-subscribe__body {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.brx-subscribe__title {
    font-family: Inter, sans-serif;
    font-size: .92rem;
    font-weight: 700;
    color: #1e40af;
    line-height: 1.25;
}
.brx-subscribe__btn {
    display: inline-block;
    padding: .15rem .45rem;
    margin-right: .15rem;
    border-radius: .3rem;
    background: #1e40af;
    color: #fff;
    font-weight: 700;
}
.brx-subscribe__sub {
    font-family: Inter, sans-serif;
    font-size: .8rem;
    font-weight: 500;
    color: #3b82f6;
    line-height: 1.3;
}
.brx-subscribe__badge {
    flex-shrink: 0;
    margin-left: .25rem;
    padding: .25rem .5rem;
    border-radius: .3rem;
    background: #1e40af;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.brx-subscribe--sm {
    gap: .55rem;
    padding: .65rem .85rem;
}
.brx-subscribe--sm .brx-subscribe__title {
    font-size: .9rem;
}
.brx-subscribe--sm .brx-subscribe__sub {
    font-size: .72rem;
}
/* Best RX Deals — Men's Health promo banner */
.brx-promo {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 36rem;
    min-height: 10.5rem;
    padding: 1.1rem 1.25rem;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    border-radius: .75rem;
    background:
        radial-gradient(circle at 88% 78%, rgba(30, 64, 175, .12), transparent 42%),
        linear-gradient(135deg, #f8fbff 0%, #eff6ff 55%, #dbeafe 100%);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(30, 64, 175, .08);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.brx-promo:hover,
.brx-promo:focus {
    border-color: #1e40af;
    box-shadow: 0 10px 28px rgba(30, 64, 175, .14);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}
.brx-promo__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    max-width: 18rem;
}
.brx-promo__title {
    font-family: Inter, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ea580c;
}
.brx-promo__title em {
    font-style: normal;
    color: #1e40af;
}
.brx-promo__sub {
    font-family: Inter, sans-serif;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
    color: #334155;
}
.brx-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .55rem;
    padding: .45rem .85rem;
    border-radius: .4rem;
    background: #1e40af;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.brx-promo:hover .brx-promo__cta,
.brx-promo:focus .brx-promo__cta {
    background: #1e3a8a;
}
.brx-promo__cubes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.brx-promo__cube {
    position: absolute;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .45rem;
    background: linear-gradient(145deg, #3b82f6, #1e40af);
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(30, 64, 175, .28);
    transform: rotate(18deg);
}
.brx-promo__cube--1 {
    right: 1.4rem;
    bottom: 1.1rem;
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.35rem;
}
.brx-promo__cube--2 {
    right: 5.2rem;
    top: 1.1rem;
    opacity: .55;
    width: 2rem;
    height: 2rem;
    font-size: .85rem;
    transform: rotate(-12deg);
}
.brx-promo__cube--3 {
    right: .8rem;
    top: .7rem;
    opacity: .35;
    width: 1.55rem;
    height: 1.55rem;
    font-size: .7rem;
    transform: rotate(28deg);
}

/* Best RX Deals — footer phones */
.brx-footer-phones {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .35rem 0;
}
.brx-footer-phones__icon {
    position: relative;
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
}
.brx-footer-phones__badge {
    position: absolute;
    left: -.35rem;
    bottom: -.15rem;
    padding: .2rem .45rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #fb923c, #ea580c);
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.brx-footer-phones__copy {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}
.brx-footer-phones__lead {
    margin: 0 0 .15rem;
    font-family: Inter, sans-serif;
    font-size: .92rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
}
.brx-footer-phones__line {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    align-items: baseline;
    gap: .45rem;
    font-family: Inter, sans-serif;
    color: #fff;
    text-decoration: none;
    line-height: 1.35;
}
.brx-footer-phones__line:hover,
.brx-footer-phones__line:focus {
    color: #bfdbfe;
    text-decoration: none;
}
.brx-footer-phones__cc {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #93c5fd;
}
.brx-footer-phones__num {
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
}

/* Best RX Deals — sidebar Bitcoin promo */
.brx-btc {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    overflow: hidden;
    padding: 1rem .95rem;
    border: 0;
    border-radius: .85rem;
    background: linear-gradient(145deg, #f7931a 0%, #ea580c 100%);
    text-decoration: none !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(234, 88, 12, .35);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.brx-btc:hover,
.brx-btc:focus {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(234, 88, 12, .45);
    color: #fff !important;
}
.brx-btc--sidebar {
    display: none;
}
@media (min-width: 992px) {
    .brx-btc--sidebar {
        display: flex !important;
    }
    .brx-btc-mobile {
        display: none !important;
    }
}
.brx-btc__icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
}
.brx-btc__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
    flex: 1;
    text-align: left;
}
.brx-btc__kicker {
    font-family: Inter, sans-serif;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
}
.brx-btc__title {
    font-family: Inter, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}
.brx-btc__deal {
    font-family: Inter, sans-serif;
    font-size: .84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .95);
    line-height: 1.3;
}
.brx-btc__deal strong {
    color: #fff;
    font-weight: 900;
}
.brx-btc--sm {
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    min-height: 100%;
    padding: .85rem .75rem;
    border-radius: .7rem;
}
.brx-btc--sm .brx-btc__icon {
    width: 2rem;
    height: 2rem;
}
.brx-btc--sm .brx-btc__title {
    font-size: .85rem;
}
.brx-btc--sm .brx-btc__deal {
    font-size: .75rem;
}
.brx-btc--sub {
    background: linear-gradient(145deg, #3b82f6 0%, #1e40af 100%);
    box-shadow: 0 8px 22px rgba(30, 64, 175, .35);
}
.brx-btc--sub .brx-btc__icon {
    color: #fff;
    font-size: 1rem;
}
.brx-btc--sub:hover,
.brx-btc--sub:focus {
    box-shadow: 0 12px 28px rgba(30, 64, 175, .45);
}

/* Best RX Deals — advantages / guarantee */
.brx-perks {
    margin: 1.75rem 0 1.25rem;
    padding: 0 1rem;
}
.brx-perks__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}
.brx-perks__col {
    padding: 1.25rem 1.35rem;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 28px rgba(30, 64, 175, .06);
}
.brx-perks__col--guarantee {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 100% 0%, rgba(96, 165, 250, .18), transparent 45%),
        linear-gradient(160deg, #eff6ff 0%, #ffffff 55%);
    border-color: #93c5fd;
}
.brx-perks__head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.brx-perks__badge {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .75rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.brx-perks__badge--ok {
    color: #15803d;
    background: #dcfce7;
}
.brx-perks__badge--up {
    color: #1e40af;
    background: #dbeafe;
}
.brx-perks__title {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.brx-perks__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}
.brx-perks__list li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .7rem;
    border-radius: .65rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-family: Inter, sans-serif;
    font-size: .92rem;
    font-weight: 600;
    color: #334155;
}
.brx-perks__ico {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: .5rem;
    background: #eff6ff;
    color: #1e40af;
    font-size: .95rem;
    flex-shrink: 0;
}
.brx-perks__text {
    margin: 0 0 1rem;
    font-family: Inter, sans-serif;
    font-size: .95rem;
    line-height: 1.55;
    color: #475569;
}
.brx-perks__text strong {
    color: #1e40af;
    font-weight: 800;
}
.brx-perks__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.brx-perks__chip {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #1e40af;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.brx-perks__foot {
    margin-top: auto;
    padding-top: 1.1rem;
}
.brx-perks__foot-title {
    margin: 0 0 .55rem;
    font-family: Inter, sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1d4ed8;
}
.brx-perks__steps {
    list-style: none;
    margin: 0 0 .9rem;
    padding: 0;
    display: grid;
    gap: .4rem;
}
.brx-perks__steps li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-family: Inter, sans-serif;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.35;
    color: #334155;
}
.brx-perks__steps li span {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: .4rem;
    background: #dbeafe;
    color: #1e40af;
    font-size: .72rem;
    font-weight: 800;
    flex-shrink: 0;
}
.brx-perks__cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .85rem;
    border-radius: .55rem;
    background: #1e40af;
    color: #fff !important;
    font-family: Inter, sans-serif;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color .15s ease, transform .15s ease;
}
.brx-perks__cta:hover,
.brx-perks__cta:focus {
    background: #1e3a8a;
    color: #fff !important;
    transform: translateY(-1px);
}
@media (max-width: 767.98px) {
    .brx-perks__grid {
        grid-template-columns: 1fr;
    }
    .brx-perks__foot {
        margin-top: 1.15rem;
    }
}

/* Best RX Deals — referral / hot offers panels */
.brx-home-stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    max-width: 100%;
    padding-inline: 0.35rem;
}
.brx-panel {
    display: flex;
    align-items: stretch;
    gap: 1.1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.35rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid #bfdbfe;
    background:
        radial-gradient(circle at 0% 50%, rgba(96, 165, 250, .2), transparent 42%),
        linear-gradient(120deg, #eff6ff 0%, #ffffff 48%, #f8fbff 100%);
    box-shadow: 0 10px 28px rgba(30, 64, 175, .07);
}
.brx-panel--referral {
    margin-top: 1.75rem !important;
}
.brx-panel--hot,
.brx-panel--featured {
    border-color: #93c5fd;
    background:
        radial-gradient(circle at 0% 40%, rgba(59, 130, 246, .18), transparent 45%),
        linear-gradient(120deg, #eff6ff 0%, #ffffff 55%);
}
.brx-panel__visual {
    position: relative;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 4.5rem;
    min-height: 4.5rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #1e40af, #3b82f6);
    color: #fff;
    font-size: 1.85rem;
    box-shadow: 0 8px 18px rgba(30, 64, 175, .28);
    overflow: hidden;
}
.brx-panel__visual--hot,
.brx-panel__visual--featured {
    background: linear-gradient(145deg, #1e3a8a, #3b82f6);
    box-shadow: 0 8px 18px rgba(30, 64, 175, .28);
}
.brx-panel__orb {
    position: absolute;
    inset: auto -30% -35% auto;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}
.brx-panel__body {
    min-width: 0;
    flex: 1;
}
.brx-panel__kicker {
    margin: 0 0 .2rem;
    font-family: Inter, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #3b82f6;
}
.brx-panel--hot .brx-panel__kicker,
.brx-panel--featured .brx-panel__kicker {
    color: #1d4ed8;
}
.brx-panel__title {
    margin: 0 0 .45rem;
    font-family: Inter, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.brx-panel__text {
    margin: 0 0 .35rem;
    font-family: Inter, sans-serif;
    font-size: .95rem;
    line-height: 1.5;
    color: #475569;
}
.brx-panel__note {
    margin: 0 0 .85rem;
    font-family: Inter, sans-serif;
    font-size: .88rem;
    font-weight: 700;
    color: #1e40af;
}
.brx-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .95rem;
    border-radius: .55rem;
    background: #1e40af;
    color: #fff !important;
    font-family: Inter, sans-serif;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color .15s ease, transform .15s ease;
}
.brx-panel__cta:hover,
.brx-panel__cta:focus {
    background: #1e3a8a;
    color: #fff !important;
    transform: translateY(-1px);
}
@media (max-width: 575.98px) {
    .brx-home-stack {
        padding-inline: 0.15rem;
    }
    .brx-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.15rem 1.15rem;
        gap: 0.85rem;
    }
    .brx-panel__visual {
        width: 3.5rem;
        min-height: 3.5rem;
        font-size: 1.45rem;
    }
}

/* ===== Mobile bottom bar (ShopLight-style) ===== */
.brx-mobile-bar {
    display: none;
}
@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    }
    .brx-mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 4300;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        width: 100%;
        height: calc(58px + env(safe-area-inset-bottom, 0px));
        min-height: 58px;
        padding: 0 0 env(safe-area-inset-bottom, 0px);
        margin: 0;
        box-sizing: border-box;
        background: #1e3a8a;
        color: #fff;
        border-top: 1px solid rgba(255, 255, 255, .14);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .18);
    }
    .brx-mobile-bar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 58px;
        height: 58px;
        padding: 5px 4px;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #fff;
        text-decoration: none;
        font: inherit;
        line-height: 1;
        cursor: pointer;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
    }
    .brx-mobile-bar__item:hover,
    .brx-mobile-bar__item:focus,
    .brx-mobile-bar__item:active {
        background: rgba(255, 255, 255, .08);
        color: #fff;
        text-decoration: none;
    }
    body.brx-menu-open .brx-mobile-bar__menu {
        background: rgba(255, 255, 255, .12);
    }
    body.brx-menu-open .brx-mobile-bar__label--menu {
        font-size: 0;
    }
    body.brx-menu-open .brx-mobile-bar__label--menu::after {
        content: "Close";
        font-size: 11px;
        font-weight: 700;
        line-height: 1.05;
    }
    .brx-mobile-bar__icon {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        font-size: 1.2rem;
        line-height: 1;
        overflow: visible;
    }
    .brx-mobile-bar__icon--cart {
        overflow: visible;
    }
    /* Live Help status dot (ShopLight-style) */
    .brx-mobile-bar__status {
        position: absolute;
        top: -2px;
        right: -6px;
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #9ca3af;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
        pointer-events: none;
    }
    .brx-mobile-bar__livehelp[data-brx-livechat-status="online"] .brx-mobile-bar__status {
        background: #16a34a;
    }
    .brx-mobile-bar__livehelp[data-brx-livechat-status="offline"] .brx-mobile-bar__status,
    .brx-mobile-bar__livehelp[data-brx-livechat-status="loading"] .brx-mobile-bar__status {
        background: #9ca3af;
    }

    .brx-mobile-bar__badge {
        position: absolute;
        top: -8px;
        right: -12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #dc2626;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        z-index: 2;
    }
    .brx-mobile-bar__label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.05;
        letter-spacing: 0;
    }
    /* Hide floating PHPLive launcher on mobile — Live Help is in the bar */
    .brx-phplive-anchor,
    [id^="phplive_btn_"],
    [id*="phplive_btn_"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        position: fixed !important;
        bottom: -9999px !important;
        right: -9999px !important;
        z-index: -1 !important;
    }
    [id^="phplive_btn_"] *,
    [id*="phplive_btn_"] * {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    /* Mobile header: logo only */
    .brx-mainnav__inner {
        justify-content: flex-start;
    }
    .brx-mainnav__brand {
        width: 100%;
    }
    /* Collapse panel above bottom bar */
    #main_menu.show,
    #main_menu.collapsing {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(58px + env(safe-area-inset-bottom, 0px));
        top: auto;
        max-height: min(78vh, calc(100vh - 58px - env(safe-area-inset-bottom, 0px) - 3rem));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 4290;
        background: #1e40af;
        padding: 1rem 1.15rem 1.35rem;
        border-radius: .85rem .85rem 0 0;
        box-shadow: 0 -12px 32px rgba(15, 23, 42, .28);
    }
    #main_menu.show .navbar-nav,
    #main_menu.collapsing .navbar-nav {
        gap: .15rem;
        margin-bottom: .25rem;
    }
    #main_menu.show .navbar-nav .nav-link,
    #main_menu.collapsing .navbar-nav .nav-link {
        padding: .72rem .35rem !important;
        font-size: 1rem;
        line-height: 1.25;
        float: none !important;
    }
    #main_menu.show .navbar-nav .nav-link .float-start,
    #main_menu.collapsing .navbar-nav .nav-link .float-start {
        float: none !important;
        display: inline !important;
    }
    .brx-mobile-menu-utils {
        margin-top: .85rem;
        padding-top: .9rem;
        border-top: 1px solid rgba(255, 255, 255, .18);
    }
    .brx-mobile-menu-utils__title {
        margin: .55rem 0 .35rem;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .65);
    }
    .brx-mobile-menu-utils__title:first-child {
        margin-top: 0;
    }
    .brx-mobile-menu-utils__langs,
    .brx-mobile-menu-utils__curs,
    .brx-mobile-menu-utils__auth {
        display: flex;
        flex-wrap: wrap;
        gap: .35rem;
        margin-bottom: .55rem;
    }
    .brx-mobile-menu-utils__auth {
        margin-top: .2rem;
        margin-bottom: 0;
        gap: .45rem;
    }
    .brx-mobile-chip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .28rem;
        min-height: 2rem;
        padding: .3rem .5rem;
        border-radius: .4rem;
        background: rgba(255, 255, 255, .12);
        color: #fff !important;
        font-size: .75rem;
        font-weight: 600;
        text-decoration: none !important;
        line-height: 1.1;
    }
    .brx-mobile-chip img {
        width: 14px;
        height: 10px;
        object-fit: cover;
    }
    .brx-mobile-chip.is-current,
    .brx-mobile-chip.active {
        background: rgba(255, 255, 255, .28);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
    }
}
@media (min-width: 768px) {
    .brx-mobile-bar {
        display: none !important;
    }
}

/* MDB form-outline: notch box wraps children — push server errors below the border */
.form-outline > .invalid-feedback {
    position: absolute;
    top: calc(100% + 0.2rem);
    left: 0;
    margin-top: 0;
    z-index: 2;
}
.form-outline:has(> .invalid-feedback) {
    margin-bottom: 2.5rem !important;
}
