/*
 * briskData client portal refinements.
 * This file intentionally overlays the stock nextgen_clean template so HostBill
 * behavior stays native while the client-facing flow feels current.
 */

:root {
    --bd-display: "Manrope", "Inter", Arial, sans-serif;
    --bd-sans: "Manrope", "Inter", Arial, sans-serif;
    --bd-ui: "Inter", "Manrope", Arial, sans-serif;
    --bd-ink: #0f172a;
    --bd-text: #1e293b;
    --bd-muted: #475569;
    --bd-soft-muted: #64748b;
    --bd-soft: #f7f4ee;
    --bd-soft-green: #eef3ee;
    --bd-surface: #fffdf8;
    --bd-panel: rgba(255, 253, 248, 0.78);
    --bd-panel-strong: rgba(255, 253, 248, 0.96);
    --bd-line: rgba(66, 82, 96, 0.18);
    --bd-line-strong: rgba(66, 82, 96, 0.32);
    --bd-blue: #2563eb;
    --bd-blue-dark: #1d4ed8;
    --bd-amber: #f59e0b;
    --bd-moss: #334155;
    --bd-rust: #f59e0b;
    --bd-shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
    --bd-shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.07);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.tpl_nextgen {
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 30%),
        #f7f4ee;
    color: var(--bd-text);
    font-family: var(--bd-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.tpl_nextgen a {
    color: var(--bd-blue);
}

.tpl_nextgen a:hover,
.tpl_nextgen a:focus {
    color: var(--bd-blue-dark);
}

.tpl_nextgen .container {
    width: calc(100% - 48px);
    max-width: 1320px;
}

.tpl_nextgen .clear {
    clear: both;
}

.tpl_nextgen h1,
.tpl_nextgen h2,
.tpl_nextgen h3,
.tpl_nextgen h4 {
    color: var(--bd-ink);
    font-family: var(--bd-display);
    font-weight: 700;
    letter-spacing: 0;
}

.tpl_nextgen p {
    color: var(--bd-muted);
}

.tpl_nextgen .muted {
    color: var(--bd-soft-muted);
}

.tpl_nextgen .btn,
.tpl_nextgen button.btn,
.tpl_nextgen input.btn {
    background: var(--bd-surface);
    border: 1px solid var(--bd-line);
    border-radius: 0;
    box-shadow: none;
    color: var(--bd-ink);
    font-family: var(--bd-ui);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 20px;
    padding: 8px 14px;
    text-shadow: none;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.tpl_nextgen .btn:hover,
.tpl_nextgen button.btn:hover,
.tpl_nextgen input.btn:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.26);
    color: var(--bd-blue-dark);
}

.tpl_nextgen .btn:active,
.tpl_nextgen button.btn:active,
.tpl_nextgen input.btn:active {
    box-shadow: none;
    transform: none;
}

.tpl_nextgen .btn.btn-primary,
.tpl_nextgen button.btn-primary,
.tpl_nextgen input.btn-primary,
.tpl_nextgen .btn.btn-success,
.tpl_nextgen button.btn-success,
.tpl_nextgen input.btn-success,
.tpl_nextgen button.bd-primary-action,
.tpl_nextgen input.bd-primary-action,
.tpl_nextgen .bd-primary-link {
    background: var(--bd-blue);
    border-color: var(--bd-blue);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0;
    text-shadow: none;
    text-transform: uppercase;
}

.tpl_nextgen .btn.btn-primary:hover,
.tpl_nextgen button.btn-primary:hover,
.tpl_nextgen input.btn-primary:hover,
.tpl_nextgen .btn.btn-success:hover,
.tpl_nextgen button.btn-success:hover,
.tpl_nextgen input.btn-success:hover,
.tpl_nextgen button.bd-primary-action:hover,
.tpl_nextgen input.bd-primary-action:hover,
.tpl_nextgen .bd-primary-link:hover,
.tpl_nextgen .btn.btn-primary:focus,
.tpl_nextgen button.btn-primary:focus,
.tpl_nextgen input.btn-primary:focus,
.tpl_nextgen .btn.btn-success:focus,
.tpl_nextgen button.btn-success:focus,
.tpl_nextgen input.btn-success:focus,
.tpl_nextgen button.bd-primary-action:focus,
.tpl_nextgen input.bd-primary-action:focus,
.tpl_nextgen .bd-primary-link:focus {
    background: var(--bd-blue-dark);
    border-color: var(--bd-blue-dark);
    box-shadow: 0 20px 46px rgba(37, 99, 235, 0.2);
    color: #ffffff;
}

.tpl_nextgen .btn .caret,
.tpl_nextgen .btn-primary .caret,
.tpl_nextgen .btn-success .caret {
    border-top-color: currentColor;
    border-bottom-color: currentColor;
}

.tpl_nextgen input[type="text"],
.tpl_nextgen input[type="password"],
.tpl_nextgen input[type="email"],
.tpl_nextgen input[type="tel"],
.tpl_nextgen input[type="number"],
.tpl_nextgen select,
.tpl_nextgen textarea {
    border: 1px solid #c8d4df;
    border-radius: 0;
    box-shadow: none;
    color: var(--bd-ink);
    min-height: 34px;
}

.tpl_nextgen input:focus,
.tpl_nextgen select:focus,
.tpl_nextgen textarea:focus {
    border-color: var(--bd-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
    outline: none;
}

.tpl_nextgen a:focus-visible,
.tpl_nextgen button:focus-visible,
.tpl_nextgen input:focus-visible,
.tpl_nextgen select:focus-visible,
.tpl_nextgen textarea:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.46);
    outline-offset: 2px;
}

#wrapper {
    padding: 20px 0 34px;
}

#headpart {
    background: rgba(247, 244, 238, 0.82);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0;
    height: auto;
    margin-bottom: 18px;
    padding: 14px 22px;
}

#mainpart {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.bd-logo-link {
    flex: 0 0 auto;
    line-height: 0;
}

.bd-logo {
    display: block;
    height: auto;
    max-width: 175px;
    width: 175px;
}

.headersection {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 0;
}

.headersection.right {
    float: none;
    order: 2;
}

.headersection .btn-group,
.cart-dropdown {
    display: inline-flex;
    vertical-align: middle;
}

.cart-dropdown + .btn-group,
.btn-group + .cart-dropdown {
    margin-left: 0;
}

#mainmenu-container {
    height: auto;
    margin-bottom: 28px;
    position: relative;
}

#mainmenu {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#mainmenu .nav-tabs {
    align-items: stretch;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

#mainmenu .nav-tabs > li {
    float: none;
    margin: 0;
}

#mainmenu .nav-tabs > li > a,
#mainmenu .nav-tabs > li:first-child > a {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid transparent;
    border-radius: 0;
    color: #475569;
    font-family: var(--bd-ui);
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    margin: 0;
    padding: 9px 14px;
    text-shadow: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

#mainmenu .nav-tabs > li > a:hover,
#mainmenu .dropdown.open .dropdown-toggle,
#mainmenu .nav-tabs > .active > a,
#mainmenu .nav-tabs > .active > a:hover {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: none;
    color: #0f172a;
    text-shadow: none;
}

#mainmenu .nav-tabs > li > a:hover {
    transform: none;
}

#mainmenu .nav-tabs > li:hover + li > a {
    border-left-color: var(--bd-line);
}

#mainmenu .nav-tabs .dropdown-toggle .caret,
#mainmenu .nav-pills .dropdown-toggle .caret,
#mainmenu .nav-tabs .open .dropdown-toggle .caret,
#mainmenu .nav-pills .open .dropdown-toggle .caret {
    border-bottom-color: currentColor;
    border-top-color: currentColor;
    margin-left: 6px;
    margin-top: 9px;
}

#mainmenu .dropdown-menu,
.cart-dropdown .dropdown-menu,
.headersection .dropdown-menu {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    min-height: 0;
    padding-top: 10px;
    text-shadow: none;
}

#mainmenu .dropdown-menu .cntn,
.cart-dropdown .cntn {
    background: var(--bd-panel-strong);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    padding: 12px 0;
}

#mainmenu .dropdown-menu a,
#mainmenu .dropdown-menu li a,
.cart-dropdown .dropdown-menu a,
.cart-dropdown li a {
    color: #475569;
    font-size: 13px;
    text-shadow: none;
}

#mainmenu .dropdown-menu li > a:hover,
#mainmenu .dropdown-menu .active > a,
#mainmenu .dropdown-menu .active > a:hover,
.cart-dropdown li > a:hover,
.cart-dropdown .active > a,
.cart-dropdown .active > a:hover {
    background: rgba(37, 99, 235, 0.06);
    box-shadow: none;
    color: #0f172a;
}

.headersection .dropdown-menu {
    background: var(--bd-panel-strong);
    border: 1px solid var(--bd-line);
    border-radius: 0;
    box-shadow: var(--bd-shadow);
    padding: 8px 0;
}

.headersection .dropdown-menu li > a {
    color: var(--bd-ink);
    padding: 8px 14px;
}

.headersection .dropdown-menu li > a:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--bd-blue-dark);
}

.cart-dropdown .dropdown-toggle::before,
.cart-dropdown .dropdown-toggle::after {
    display: none !important;
}

section {
    min-height: 360px;
}

#cont {
    color: var(--bd-ink);
    min-height: 340px;
}

#cart #cont.left {
    float: left;
}

.wbox,
.bordered-section,
.dashboardblock,
.greenbox,
.orderbox {
    border: 1px solid var(--bd-line);
    border-radius: 0;
    box-shadow: none;
}

.wbox_header,
.header-title,
.serv_head1 {
    background: var(--bd-panel);
    border: 1px solid var(--bd-line);
    border-bottom-color: var(--bd-line-strong);
    border-radius: 0;
    box-shadow: none;
    color: var(--bd-ink);
    text-shadow: none;
}

.wbox_content,
.right-content,
.left-content,
.bordered-section {
    background: var(--bd-surface);
}

.header-title h2,
.header-title h3,
.wbox_header h1,
.wbox_header h2,
.wbox_header h3 {
    color: var(--bd-ink);
    text-shadow: none;
}

.dashboardblock {
    background: var(--bd-surface);
    color: var(--bd-ink);
    overflow: hidden;
}

.dashboardblock:hover {
    background: var(--bd-surface);
    box-shadow: 0 10px 24px rgba(15, 33, 52, 0.08);
}

.dashboardblock h4 a {
    color: var(--bd-ink);
}

.dashboardblock:hover h4 a {
    color: var(--bd-blue);
    text-decoration: none;
}

.bd-kicker {
    color: var(--bd-blue-dark);
    display: inline-block;
    font-family: var(--bd-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 8px;
    padding: 0 0 0 34px;
    position: relative;
    text-transform: uppercase;
    z-index: 2;
}

.bd-kicker::before {
    background: currentColor;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    top: 50%;
    width: 24px;
}

.bd-portal-hero {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.58)),
        linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(37, 99, 235, 0.08)),
        linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 28px);
    background-size: auto, auto, 56px 56px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.36fr);
    margin-bottom: 18px;
    min-height: 278px;
    overflow: hidden;
    padding: 34px 34px 30px;
    position: relative;
}

.bd-portal-hero::before,
.bd-portal-hero::after,
.bd-hero-grid {
    content: "";
    pointer-events: none;
    position: absolute;
}

.bd-portal-hero::before {
    background: rgba(15, 23, 42, 0.08);
    bottom: 28px;
    height: 1px;
    left: 34px;
    right: 34px;
}

.bd-portal-hero::after {
    background:
        linear-gradient(90deg, transparent 0 48%, rgba(37, 99, 235, 0.13) 48% 52%, transparent 52%),
        linear-gradient(0deg, transparent 0 48%, rgba(245, 158, 11, 0.14) 48% 52%, transparent 52%);
    height: 170px;
    opacity: 0.55;
    right: -28px;
    top: -28px;
    transform: rotate(-8deg);
    width: 170px;
}

.bd-hero-grid {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 70px 70px;
    inset: 0;
    mask-image: linear-gradient(to bottom, black 0%, transparent 88%);
    z-index: 0;
}

.bd-portal-copy,
.bd-hero-notes,
.bd-primary-link,
.bd-secondary-link {
    position: relative;
    z-index: 2;
}

.bd-portal-copy {
    animation: bdSettle 0.55s ease both;
    max-width: 780px;
}

.bd-portal-copy h2 {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.03;
    margin: 0 0 14px;
    max-width: 720px;
}

.bd-portal-copy p:last-of-type {
    color: #475569;
    font-size: 17px;
    margin-bottom: 0;
    max-width: 640px;
}

.bd-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.bd-primary-link,
.bd-secondary-link {
    border-radius: 0;
    display: inline-block;
    flex: 0 0 auto;
    font-family: var(--bd-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 14px 22px;
    text-decoration: none;
    text-transform: uppercase;
}

.bd-primary-link:hover,
.bd-secondary-link:hover {
    text-decoration: none;
}

.bd-secondary-link {
    background: rgba(255, 253, 248, 0.78);
    border: 1px solid var(--bd-line-strong);
    color: var(--bd-ink);
}

.bd-secondary-link:hover,
.bd-secondary-link:focus {
    background: #fffdf8;
    color: var(--bd-blue-dark);
}

.bd-hero-notes {
    align-self: stretch;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
    display: grid;
    gap: 0;
    margin-top: 0;
    padding: 8px 16px;
}

.bd-hero-notes div {
    align-items: center;
    color: var(--bd-muted);
    display: grid;
    font-size: 13px;
    gap: 10px;
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 14px 0;
}

.bd-hero-notes div + div {
    border-top: 1px solid var(--bd-line);
}

.bd-hero-notes span {
    color: var(--bd-muted);
    display: block;
}

.bd-hero-notes strong {
    color: var(--bd-ink);
    display: block;
    font-family: var(--bd-ui);
    font-weight: 700;
}

.bd-note-icon {
    color: var(--bd-blue);
    font-size: 21px;
}

.bd-portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-left: 0;
}

.bd-portal-actions > .span4 {
    flex: 1 1 260px;
    float: none;
    margin-left: 0;
    width: auto;
}

.box-feature.bd-action-card {
    animation: bdSettle 0.55s ease both;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0;
    display: block;
    min-height: 214px;
    padding: 26px 24px;
    position: relative;
    text-align: left;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.bd-portal-actions > .span4:nth-child(2) .bd-action-card {
    animation-delay: 0.06s;
}

.bd-portal-actions > .span4:nth-child(3) .bd-action-card {
    animation-delay: 0.12s;
}

.box-feature.bd-action-card::after {
    background: var(--bd-line);
    bottom: 18px;
    content: "";
    height: 1px;
    left: 24px;
    position: absolute;
    right: 24px;
}

.box-feature.bd-action-card:hover,
.box-feature.bd-action-card:focus {
    background: #fffdf8;
    border-color: var(--bd-line-strong);
    box-shadow: var(--bd-shadow-soft);
    text-decoration: none;
    transform: translateY(-2px);
}

.box-feature.bd-action-primary {
    border-top-color: rgba(37, 99, 235, 0.42);
}

.bd-action-number {
    color: var(--bd-blue-dark);
    display: block;
    font-family: var(--bd-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 16px;
}

.bd-action-icon {
    align-items: center;
    background: rgba(37, 99, 235, 0.08);
    color: var(--bd-blue);
    display: inline-flex;
    font-size: 28px;
    height: 44px;
    justify-content: center;
    margin-bottom: 18px;
    width: 44px;
}

.box-feature.bd-action-card .silver,
.box-feature.bd-action-card .iconfont-silver::before {
    color: var(--bd-blue) !important;
    display: none;
}

.box-feature.bd-action-card h1 {
    color: var(--bd-ink);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bd-line);
}

.box-feature.bd-action-card p {
    color: var(--bd-muted);
    font-size: 14px;
    margin: 0 0 18px;
}

#announcements {
    background: var(--bd-panel);
    border: 1px solid var(--bd-line);
    border-radius: 0;
    margin-top: 20px;
    padding: 22px 24px;
}

ul#progress {
    background: transparent;
    border: 1px solid var(--bd-line);
    border-radius: 0;
    counter-reset: bd-step;
    display: flex;
    gap: 0;
    height: auto;
    list-style: none;
    margin: 0 0 18px;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

ul#progress li,
ul#progress li.firstone,
ul#progress li.lastone,
ul#progress li.asw3,
ul#progress li.asw5 {
    align-items: center;
    background: var(--bd-surface) !important;
    border-right: 1px solid var(--bd-line);
    color: var(--bd-muted);
    counter-increment: bd-step;
    display: flex;
    flex: 1 1 0;
    font-size: 12px;
    font-family: var(--bd-ui);
    font-weight: 700;
    height: auto;
    justify-content: center;
    line-height: 1.25;
    min-height: 54px;
    min-width: 0;
    padding: 10px 12px;
    text-align: center;
    text-indent: 0;
    text-transform: uppercase;
}

ul#progress li::before {
    align-items: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(37, 99, 235, 0.08));
    border: 1px solid var(--bd-line);
    border-radius: 0;
    color: var(--bd-blue);
    content: counter(bd-step);
    display: inline-flex;
    flex: 0 0 24px;
    height: 24px;
    justify-content: center;
    margin-right: 8px;
    width: 24px;
}

ul#progress li.ison1::before {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

ul#progress li:last-child {
    border-right: 0;
}

ul#progress li.ison1,
ul#progress li.fison2,
ul#progress li.ison2 {
    color: var(--bd-ink);
}

ul#progress li.ison1::before,
ul#progress li.fison2::before,
ul#progress li.ison2::before {
    background: var(--bd-blue);
    border-color: var(--bd-blue);
    color: #ffffff;
}

ul#progress a {
    color: inherit;
    text-decoration: none;
}

ul#progress a:hover {
    text-decoration: underline;
}

#sidemenu {
    background: var(--bd-panel);
    border: 1px solid var(--bd-line);
    border-radius: 0;
    float: right;
    padding: 14px;
    width: 300px;
}

#floater {
    width: 300px;
}

#cart_contents {
    border-bottom-color: var(--bd-line);
}

.cart_total {
    color: var(--bd-ink);
    font-size: 34px;
    letter-spacing: 0;
}

footer {
    border-top: 1px solid var(--bd-line);
    color: var(--bd-soft-muted);
    font-family: var(--bd-ui);
    font-size: 12px;
    margin-top: 44px;
    padding: 20px 0 0;
    text-shadow: none;
}

footer a {
    color: var(--bd-soft-muted);
}

footer a:hover {
    color: var(--bd-blue);
}

@keyframes bdSettle {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 979px) {
    .tpl_nextgen .container {
        width: calc(100% - 32px);
    }

    #mainpart {
        align-items: flex-start;
        flex-direction: column;
    }

    .headersection {
        justify-content: flex-start;
        width: 100%;
    }

    .headersection.right {
        order: 3;
    }

    #mainmenu .nav-tabs {
        gap: 6px;
    }

    #mainmenu .nav-tabs > li > a {
        padding: 8px 12px;
    }

    .bd-portal-hero {
        grid-template-columns: 1fr;
    }

    .bd-hero-notes {
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    #wrapper {
        padding-top: 12px;
    }

    .tpl_nextgen .container {
        width: calc(100% - 24px);
    }

    #headpart {
        padding: 16px;
    }

    #headpart h1 {
        font-size: 22px;
    }

    .headersection .btn,
    .cart-dropdown .btn {
        padding: 7px 10px;
    }

    #mainmenu-container {
        margin-bottom: 16px;
    }

    #mainmenu .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    #mainmenu .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    #mainmenu .nav-tabs > li {
        flex: 0 0 auto;
    }

    #mainmenu .nav-tabs > li > a,
    #mainmenu .nav-tabs > li:first-child > a {
        display: block;
        text-align: center;
        white-space: nowrap;
    }

    #mainmenu .dropdown {
        position: static;
    }

    #mainmenu .dropdown-menu,
    .cart-dropdown .dropdown-menu,
    .headersection .dropdown-menu {
        left: 12px;
        max-height: 58vh;
        max-width: 360px;
        overflow-y: auto;
        padding-top: 6px;
        right: auto;
        width: calc(100vw - 24px);
        -webkit-overflow-scrolling: touch;
    }

    .cart-dropdown .dropdown-menu,
    .headersection .dropdown-menu {
        left: auto;
        right: 12px;
    }

    #mainmenu .dropdown-menu .cntn,
    .cart-dropdown .cntn {
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
        max-height: 56vh;
        overflow-y: auto;
        padding: 10px;
    }

    #mainmenu .dropdown-menu .row,
    #mainmenu .dropdown-menu [class*="span"],
    .cart-dropdown .dropdown-menu .row,
    .cart-dropdown .dropdown-menu [class*="span"] {
        float: none;
        margin-left: 0;
        width: auto;
    }

    #mainmenu .dropdown-menu .span3,
    #mainmenu .dropdown-menu center,
    #mainmenu .dropdown-menu .iconwrap,
    #mainmenu .dropdown-menu p.silver {
        display: none;
    }

    #mainmenu .dropdown-menu ul {
        list-style: none;
        margin: 0 0 8px;
        padding: 0;
    }

    #mainmenu .dropdown-menu li.nav-header {
        color: var(--bd-soft-muted);
        font-family: var(--bd-ui);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        padding: 6px 10px 4px;
        text-transform: uppercase;
    }

    #mainmenu .dropdown-menu a,
    #mainmenu .dropdown-menu li a,
    .cart-dropdown .dropdown-menu a,
    .cart-dropdown li a,
    .headersection .dropdown-menu li > a {
        font-size: 13px;
        line-height: 1.3;
        padding: 7px 10px;
        white-space: normal;
    }

    #mainmenu .dropdown-menu .btn,
    .cart-dropdown .dropdown-menu .btn {
        display: block;
        margin-top: 8px;
        width: 100%;
    }

    section {
        min-height: 0;
    }

    #cont,
    #cart #cont.left {
        float: none;
        min-height: 0;
        width: 100% !important;
    }

    #sidemenu,
    #floater {
        float: none;
        margin-bottom: 16px;
        width: 100%;
    }

    .bd-portal-hero {
        gap: 18px;
        padding: 22px 20px;
    }

    .bd-portal-copy h2 {
        font-size: 32px;
    }

    .bd-hero-notes {
        padding: 6px 14px;
    }

    .bd-primary-link,
    .bd-secondary-link {
        text-align: center;
        width: 100%;
    }

    .box-feature.bd-action-card {
        min-height: 0;
        padding: 22px 20px;
    }

    ul#progress {
        flex-direction: column;
    }

    ul#progress li,
    ul#progress li.firstone,
    ul#progress li.lastone,
    ul#progress li.asw3,
    ul#progress li.asw5 {
        border-bottom: 1px solid var(--bd-line);
        border-right: 0;
        justify-content: flex-start;
        min-height: 48px;
        text-align: left;
    }

    ul#progress li:last-child {
        border-bottom: 0;
    }

    footer .left,
    footer .right {
        float: none;
        display: block;
        margin-bottom: 8px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .headersection {
        display: flex;
        flex-wrap: wrap;
    }

    .headersection .btn-group,
    .cart-dropdown {
        flex: 1 1 auto;
        width: auto;
    }

    .headersection .btn,
    .cart-dropdown .btn {
        width: 100%;
    }

    .headersection .btn {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpl_nextgen *,
    .tpl_nextgen *::before,
    .tpl_nextgen *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
