/* *****************************************************

    ** DMS theme: Dealer.ms client area **

    Brand tokens and layout overrides on top of the Nexus
    base (theme.css). Loaded last, so everything here wins.
    Rules: DM Sans, 6px radius, blue #066fd1 is the only
    accent, borders over shadows. See WEBSITE_DESIGN_GUIDELINES.md.

***************************************************** */

:root {
    --white: #fff;

    /* Dealer.ms palette */
    --dm-ink: #262f38;
    --dm-ink-2: #4a5663;
    --dm-ink-3: #5f6b7a;
    --dm-line: #e4e8ec;
    --dm-surface-2: #f6f8fa;
    --dm-blue: #066fd1;
    --dm-blue-hover: #0559a8;
    --dm-blue-tint: #eaf3fc;
    --dm-footer: #061c38;
    --dm-footer-line: #12365f;
    --dm-r: 6px;
    --dm-shadow-float: 0 1px 2px rgb(14 21 28 / 6%), 0 12px 32px -6px rgb(14 21 28 / 14%);

    /* Neutral ramp (Nexus variable names, DM values) */
    --neutral-50: #f6f8fa;
    --neutral-100: #f0f3f6;
    --neutral-200: #e4e8ec;
    --neutral-300: #d3d9df;
    --neutral-400: #5f6b7a;
    --neutral-500: #4a5663;
    --neutral-600: #3b4651;
    --neutral-700: #313b45;
    --neutral-800: #262f38;
    --neutral-900: #262f38;
    --neutral-950: #0e151c;

    --primary-50: var(--dm-blue-tint);
    --primary-100: var(--dm-blue-tint);
    --primary-200: #cfe2f7;
    --primary-300: #9cc6ef;
    --primary-400: #2a8ae8;
    --primary-500: var(--dm-blue);
    --primary-600: var(--dm-blue);
    --primary-700: var(--dm-blue-hover);
    --primary-800: #043a75;
    --primary-900: #043a75;
    --primary-950: #06284f;

    /* Primary colors */
    --primary: var(--dm-blue);
    --primary-lifted: var(--dm-blue-hover);
    --primary-accented: #043a75;

    /* Secondary colors */
    --secondary: var(--dm-ink-2);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Status colors */
    --success: #1a9d5c;
    --success-lifted: #15834d;
    --success-accented: #106b40;

    --info: var(--dm-blue);
    --info-lifted: var(--dm-blue-hover);
    --info-accented: #043a75;

    --notice: #6a4bd1;
    --notice-lifted: #5b3fc0;
    --notice-accented: #4a32a3;

    --warning: #e08a00;
    --warning-lifted: #b87000;
    --warning-accented: #8f5700;

    --error: #d94a4a;
    --error-lifted: #b83a3a;
    --error-accented: #912d2d;

    /* Grayscale colors */
    --grayscale: var(--dm-ink);
    --grayscale-lifted: var(--neutral-700);
    --grayscale-accented: var(--neutral-600);

    --neutral: var(--dm-ink-2);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text */
    --text-inverted: var(--white);
    --text-muted: var(--dm-ink-3);
    --text-lifted: var(--dm-ink-2);
    --text-accented: var(--dm-ink-2);
    --text: var(--dm-ink);

    /* Borders */
    --border-muted: var(--dm-line);
    --border: var(--dm-line);
    --border-lifted: var(--neutral-300);
    --border-accented: var(--dm-ink-3);

    /* Backgrounds */
    --bg: var(--white);
    --bg-muted: var(--dm-surface-2);
    --bg-lifted: var(--dm-surface-2);
    --bg-accented: var(--dm-surface-2);
    --bg-inverted: var(--dm-ink);

    --yellow-200: #ffe9a8;
    --yellow-300: #ffc83d;
    --teal-300: #46edd5;
    --teal-400: #0f9bb0;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    --rounding-sm: 4px;
    --rounding-md: var(--dm-r);
    --rounding-lg: var(--dm-r);

    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* ---------- base ---------- */

body {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dm-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 600;
    color: var(--dm-ink);
}

h1, .h1 { letter-spacing: -.03em; line-height: 1.1; }
h2, .h2 { letter-spacing: -.025em; line-height: 1.15; }
h3, .h3 { letter-spacing: -.012em; line-height: 1.25; }

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

code, pre, kbd { font-family: "DM Mono", ui-monospace, monospace; }

:focus-visible { outline: 2px solid var(--dm-blue); outline-offset: 2px; }

/* ---------- shape: 6px on everything ---------- */

.btn, .form-control, .custom-select, .input-group-text,
.card, .dropdown-menu, .modal-content, .badge, .alert,
.list-group, .list-group-item:first-child, .list-group-item:last-child,
.nav-tabs .nav-link, .pagination .page-link, .popover, .tooltip-inner,
.table-container, .dataTables_wrapper .form-control {
    border-radius: var(--dm-r);
}

.badge-pill { border-radius: 999px; }

.card { border: 1px solid var(--dm-line); box-shadow: none; }
.card-header, .card-footer { background: var(--dm-surface-2); border-color: var(--dm-line); }
.card-accent-gold, .card-accent-green, .card-accent-red, .card-accent-blue,
.card-accent-orange, .card-accent-pink, .card-accent-purple, .card-accent-lime,
.card-accent-magenta, .card-accent-teal, .card-accent-turquoise, .card-accent-emerald {
    border-top-width: 1px;
}

.dropdown-menu, .modal-content { border: 1px solid var(--dm-line); box-shadow: var(--dm-shadow-float); }

/* ---------- buttons ---------- */

.btn {
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -.005em;
    padding: .625rem 1.125rem;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { padding: .375rem .75rem; font-size: 14px; }
.btn-lg { padding: .75rem 1.5rem; font-size: 16px; }

.btn-primary, .btn-primary:not(:disabled):not(.disabled).active {
    background: var(--dm-blue);
    border-color: var(--dm-blue);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--dm-blue-hover) !important;
    border-color: var(--dm-blue-hover) !important;
    color: #fff;
}
.btn-primary:focus, .btn-primary.focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--dm-blue); }

.btn-outline-secondary, .btn-default, .btn-secondary {
    background: transparent;
    border: 1px solid var(--dm-ink);
    color: var(--dm-ink);
}
.btn-outline-secondary:hover, .btn-default:hover, .btn-secondary:hover,
.btn-outline-secondary:focus, .btn-default:focus, .btn-secondary:focus {
    background: var(--dm-surface-2);
    border-color: var(--dm-ink);
    color: var(--dm-ink);
}

.btn-link { color: var(--dm-blue); }
.btn-link:hover { color: var(--dm-blue-hover); }

/* ---------- forms ---------- */

.form-control, .custom-select {
    min-height: 44px;
    border: 1px solid var(--dm-line);
    color: var(--dm-ink);
}
.form-control:focus, .custom-select:focus {
    border-color: var(--dm-blue);
    box-shadow: 0 0 0 3px var(--dm-blue-tint);
}
.form-control::placeholder { color: var(--dm-ink-3); }
label, .col-form-label { font-weight: 500; color: var(--dm-ink); }
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--dm-blue);
    border-color: var(--dm-blue);
}

/* ---------- header ---------- */

#header { background: #fff; border-bottom: 1px solid var(--dm-line); position: relative; z-index: 1030; }

#header .topbar { background: var(--dm-ink); padding: 4px 0; }

#header .dm-navbar {
    min-height: 72px;
    padding: 0;
    background: #fff;
}
#header .dm-navbar .container { align-items: center; flex-wrap: wrap; }
#header .navbar-brand { padding: 0; margin: 0 24px 0 0; display: flex; align-items: center; }
#header .navbar-brand .logo-img { height: 34px; width: auto; }

#header .navbar-nav { margin: 0; gap: 2px; }
#header .navbar-nav > li > a {
    position: relative;
    padding: .5rem .75rem;
    font-size: 15px;
    font-weight: 500;
    color: var(--dm-ink);
}
#header .navbar-nav > li > a:hover,
#header .navbar-nav > li.show > a { color: var(--dm-blue); }

#header .dropdown-menu {
    margin-top: 6px;
    padding: 8px;
}
#header .dropdown-item,
#header .dropdown-menu .dropdown-item.px-2 {
    padding: 8px 12px !important;
    border-radius: var(--dm-r);
    font-size: 15px;
    color: var(--dm-ink-2);
    background: transparent;
}
#header .dropdown-menu li.dropdown-item { padding: 0 !important; }
#header .dropdown-menu a.dropdown-item:hover,
#header .dropdown-menu li.dropdown-item:hover { background: var(--dm-blue-tint); color: var(--dm-blue); }

#header .cart-btn { color: var(--dm-ink); padding: .5rem .625rem; }
#header .cart-btn .badge { background: var(--dm-blue); color: #fff; font-family: "DM Sans", system-ui, sans-serif; font-weight: 500; }

#header .dm-actions { display: flex; gap: 8px; align-items: center; margin-left: 8px; }
#header .dm-actions .btn { height: 42px; padding: 0 16px; font-size: 14px; display: inline-flex; align-items: center; }
#header .dm-actions .btn-primary { color: #fff; }

#header .dm-navbar-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
#header .dm-toggle {
    width: 42px; height: 42px; padding: 0;
    border: 1px solid var(--dm-line);
    background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}

@media (min-width: 1200px) {
    #header .dm-navbar .container { flex-wrap: nowrap; }
    #header .dm-navbar .navbar-collapse { flex: 1 1 auto; min-width: 0; }
    #header .navbar-brand { flex: none; margin-right: 16px; }
    #header .navbar-nav > li > a { padding: .5rem .5rem; white-space: nowrap; }
    #header .navbar-nav > li > a::before {
        content: "";
        position: absolute;
        left: 12px; right: 12px; bottom: -12px;
        height: 2px;
        background: var(--dm-blue);
        transform: scaleX(0);
        transition: transform .15s;
    }
    #header .navbar-nav > li > a:hover::before,
    #header .navbar-nav > li.show > a::before { transform: scaleX(1); }
}

@media (max-width: 1199.98px) {
    #header .navbar-collapse {
        flex-basis: 100%;
        margin: 0 -15px;
        padding: 8px 15px 16px;
        border-top: 1px solid var(--dm-line);
        background: #fff;
    }
    #header .navbar-nav { margin-top: 4px; }
    #header .navbar-nav > li { border-bottom: 1px solid var(--dm-line); }
    #header .navbar-nav > li > a { display: block; padding: 14px 4px; font-size: 17px; }
    #header .dm-actions { margin: 16px 0 0; flex-direction: column; align-items: stretch; }
    #header .dm-actions .btn { width: 100%; justify-content: center; height: 44px; }
    #header .dropdown-menu { box-shadow: none; border: 0; padding: 0 0 8px 12px; }
}

.master-breadcrumb { background: var(--dm-surface-2); border-bottom: 1px solid var(--dm-line); }
.master-breadcrumb .breadcrumb { background: transparent; }
.master-breadcrumb .breadcrumb a { color: var(--dm-ink-2); }
.master-breadcrumb .breadcrumb a:hover { color: var(--dm-blue); }

#main-body { background: #fff; min-height: 50vh; }

/* ---------- sidebar ---------- */

.sidebar .card-sidebar .list-group-item.active,
.sidebar .list-group-item.active {
    background: var(--dm-blue-tint);
    border-color: var(--dm-line);
    color: var(--dm-blue);
}

/* ---------- tables ---------- */

.table thead th {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dm-ink-2);
    background: var(--dm-surface-2);
    border-bottom: 1px solid var(--dm-line);
}
.table td, .table th { border-color: var(--dm-line); }

/* ---------- footer ---------- */

#footer.dm-footer {
    margin-top: 0;
    padding: 64px 0 32px;
    background: var(--dm-footer);
    color: #aab5c0;
}
.dm-footer-logo { height: 32px; width: auto; margin-bottom: 16px; }
.dm-footer-blurb { max-width: 340px; font-size: 15px; line-height: 1.6; color: #aab5c0; }
.dm-footer h6, .dm-footer h2.dm-footer-h {
    margin-bottom: 16px;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}
.dm-footer ul.list-unstyled li { margin-bottom: 10px; }
.dm-footer a { color: #c4ccd5; font-size: 15px; text-decoration: none; }
.dm-footer a:hover { color: #fff; text-decoration: none; }
.dm-footer-social .btn-icon { color: #c4ccd5; padding: 0 12px 0 0; }
.dm-footer-social .btn-icon:hover { color: #fff; }
.dm-footer-social { margin: 28px 0 0; padding: 0; }
.dm-footer-social .list-inline-item { margin: 0 8px 0 0; }
.dm-footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--dm-footer-line);
    border-radius: var(--dm-r);
    color: #aebbc9; font-size: 14px;
    transition: border-color .15s, color .15s;
}
.dm-footer-social a:hover { border-color: #aebbc9; color: #fff; }
.dm-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--dm-footer-line);
}
#footer.dm-footer .copyright { font-size: 14px; color: #aab5c0; }
.dm-footer .copyright a { margin-left: 12px; font-size: 14px; }
.dm-footer .btn-outline-light { border-color: var(--dm-footer-line); color: #c4ccd5; }
.dm-footer .btn-outline-light:hover { background: var(--dm-footer-line); color: #fff; }

/* ---------- client area dashboard tiles ---------- */

.tiles .row { border: 1px solid var(--dm-line); border-radius: var(--dm-r); overflow: hidden; background: #fff; }
.tiles .tile { background: #fff; border-right: 1px solid var(--dm-line); }
.tiles .tile:hover { background: var(--dm-surface-2); }
.tiles .tile .stat { font-family: "DM Sans", system-ui, sans-serif; font-weight: 500; color: var(--dm-ink); }
.tiles .tile .title { font-family: "DM Sans", system-ui, sans-serif; font-weight: 500; letter-spacing: .06em; color: var(--dm-ink-2); }
.tiles .tile .highlight { background: var(--dm-line) !important; }
.tiles .tile:hover .highlight { background: var(--dm-blue) !important; }
.tiles .tile i { color: var(--dm-line); }
.tiles .tile:hover i { font-size: 55px; color: var(--dm-blue-tint); }

/* ---------- order buttons, invoice ---------- */

body .btn-success, body .btn-success:not(:disabled):not(.disabled).active {
    background: var(--dm-blue);
    border-color: var(--dm-blue);
    color: #fff;
}
body .btn-success:hover, body .btn-success:focus, body .btn-success:active {
    background: var(--dm-blue-hover) !important;
    border-color: var(--dm-blue-hover) !important;
    color: #fff;
}
body .btn-default { background: #fff; border: 1px solid var(--dm-line); color: var(--dm-ink); }
body .btn-default:hover { background: var(--dm-surface-2); border-color: var(--neutral-300); color: var(--dm-ink); }

.invoice-container .bg-info { background: var(--dm-ink) !important; }
.invoice-container .card-title { border-radius: var(--dm-r) var(--dm-r) 0 0; }

/* Nexus sass pins several primary actions to --bg-inverted (dark) with high specificity. Force brand blue. */
body #order-standard_cart .btn-order-now,
body #order-standard_cart .text-right .btn-checkout,
body #order-standard_cart .btn-success,
body #order-standard_cart .btn-primary,
body .primary-content .btn-success,
body .primary-content .btn-primary,
body .primary-content .btn-success.btn-lg[name='enable'] {
    background: var(--dm-blue) !important;
    border-color: var(--dm-blue) !important;
    color: #fff !important;
}
body #order-standard_cart .btn-order-now:hover,
body #order-standard_cart .text-right .btn-checkout:hover,
body #order-standard_cart .btn-success:hover,
body #order-standard_cart .btn-primary:hover,
body .primary-content .btn-success:hover,
body .primary-content .btn-primary:hover {
    background: var(--dm-blue-hover) !important;
    border-color: var(--dm-blue-hover) !important;
}

/* checkout: logo only, same distraction-free idea as Nexus */
#header .dm-navbar-minimal .navbar-collapse,
#header .dm-navbar-minimal .dm-navbar-tools { display: none !important; }

/* ---------- status labels: soft tinted chips, 6px radius, mono ---------- */

body .label {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--dm-r);
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.4;
    text-transform: uppercase;
    background: #eef1f4;
    color: var(--dm-ink-2);
}

/* green */
body .label.status-active, body .label.status-open, body .label.status-completed,
body .label.status-paid, body .label.status-accepted, body .label.label-success,
body .label.requestor-type-owner {
    background: #e6f6ee; color: #106b40;
}
/* red */
body .label.status-unpaid, body .label.label-danger {
    background: #fbeaea; color: #912d2d;
}
/* amber */
body .label.status-pending, body .label.status-pending-transfer, body .label.status-suspended,
body .label.status-customer-reply, body .label.status-inprogress, body .label.status-refunded,
body .label.status-pending-registration, body .label.status-redemption, body .label.status-grace,
body .label.label-warning, body .label.requestor-type-registereduser {
    background: #fdf1dc; color: #8f5700;
}
/* blue */
body .label.status-onhold, body .label.label-info, body .label.requestor-type-operator {
    background: var(--dm-blue-tint); color: var(--dm-blue-hover);
}
/* violet */
body .label.status-answered {
    background: #ece9fc; color: #4a32a3;
}
/* dark */
body .label.status-fraud, body .label.status-collections, body .label.status-dead,
body .label.status-lost, body .label.status-delivered, body .label.status-payment-pending {
    background: var(--dm-ink); color: #fff;
}
/* gray: closed, cancelled, terminated, expired, guests, sub-accounts use the base style */

/* ---------- ticket conversation and reply ---------- */

.view-ticket .card-body { border-bottom: 1px solid var(--dm-line); }
.view-ticket .posted-by {
    padding: 10px 16px;
    background: var(--dm-surface-2);
    border-bottom: 1px solid var(--dm-line);
    color: var(--dm-ink-2);
    font-size: 14px;
}
.view-ticket .posted-by .posted-by-name { color: var(--dm-ink); font-weight: 600; }
.view-ticket .requestor-badge { padding: 3px 8px; font-size: 11px; }
.view-ticket .ticket-reply.staff { border-left: 3px solid var(--dm-blue); }
.view-ticket .ticket-reply .message { padding: 16px; color: var(--dm-ink); }

#ticketReplyContainer { margin-top: 24px; }
#ticketReplyContainer .card-title { font-size: 20px; margin-bottom: 16px; }
#ticketReplyContainer .md-editor { border: 1px solid var(--dm-line); border-radius: var(--dm-r); }
#ticketReplyContainer .md-editor.active { border-color: var(--dm-blue); box-shadow: 0 0 0 3px var(--dm-blue-tint); }
#ticketReplyContainer .md-editor > textarea { border: 0; box-shadow: none; }
#ticketReplyContainer .custom-file-label { border-radius: var(--dm-r) 0 0 var(--dm-r); min-height: 44px; line-height: 2; }
#ticketReplyContainer .form-group.text-center { display: flex; gap: 8px; justify-content: flex-start; margin-top: 24px; }

/* inline admin-set status colors (e.g. ticket status in the sidebar): keep them neutral */
body .label[style*="background"] { background: #eef1f4 !important; color: var(--dm-ink-2) !important; }

body .sidebar .btn-success {
    background: var(--dm-blue) !important;
    border-color: var(--dm-blue) !important;
    color: #fff !important;
}
body .sidebar .btn-success:hover { background: var(--dm-blue-hover) !important; border-color: var(--dm-blue-hover) !important; }

.btn-danger { background: var(--error); border-color: var(--error); color: #fff; }
.btn-danger:hover, .btn-danger:focus { background: var(--error-lifted); border-color: var(--error-lifted); color: #fff; }

/* ---------- header: match the website menu ---------- */

#header .navbar-nav > li > a {
    font-size: 16px;
    line-height: 1;
    color: var(--dm-ink-2);
}
#header .navbar-nav > li > a:hover,
#header .navbar-nav > li.show > a { color: var(--dm-ink); }

/* angle chevron like the site (Font Awesome angle-down, angle-up when open) */
#header .navbar-nav .dropdown-toggle::after {
    content: "\f107";
    font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 15px;
    line-height: 1;
    vertical-align: -1px;
    margin-left: 6px;
    border: 0;
}
#header .navbar-nav .show > .dropdown-toggle::after { content: "\f106"; }

@media (min-width: 1200px) {
    /* underline sits about 10px under the text, like the site */
    #header .navbar-nav > li > a::before { bottom: -4px; }
}

/* ---------- width: same 1200px wrap as the website (1152px content + 24px gutters) ---------- */

@media (min-width: 1200px) {
    .container { max-width: 1200px; padding-left: 24px; padding-right: 24px; }
}

/* menu hover is the blue bar only, no text underline */
#header a:hover, #header a:focus,
#header .navbar-brand:hover,
#footer.dm-footer a:hover { text-decoration: none; }

/* header inner edge = content edge (Bootstrap/Nexus give the navbar container 15px, not 24px) */
@media (min-width: 1200px) {
    #header .navbar.dm-navbar > .container { padding-left: 24px !important; padding-right: 24px !important; }
}
@media (max-width: 1199.98px) {
    #header .navbar.dm-navbar > .container { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ---------- home: license picker ---------- */

.dm-home { padding: 64px 0 32px; }
.dm-home-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.dm-eyebrow {
    margin: 0 0 16px;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dm-blue);
}
.dm-home-head h1 { margin: 0 0 16px; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.dm-lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--dm-ink-2); }

.dm-plan {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--dm-line);
    border-radius: var(--dm-r);
}
.dm-plan-featured { border-color: var(--dm-blue); box-shadow: 0 0 0 1px var(--dm-blue); }
.dm-plan-tag {
    position: absolute;
    top: -11px;
    left: 32px;
    padding: 2px 8px;
    background: var(--dm-blue);
    border-radius: var(--dm-r);
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}
.dm-plan-name { margin: 0 0 8px; font-size: 22px; }
.dm-plan-for { margin: 0 0 24px; font-size: 15px; color: var(--dm-ink-2); }
.dm-plan-price { margin: 0 0 24px; font-size: 15px; color: var(--dm-ink-2); }
.dm-plan-price span {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -.03em;
    color: var(--dm-ink);
}
.dm-plan-list { flex: 1; margin: 0 0 32px; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--dm-line); }
.dm-plan-list li { position: relative; margin-bottom: 12px; padding-left: 24px; font-size: 15px; line-height: 1.5; color: var(--dm-ink-2); }
.dm-plan-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 5px;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--dm-blue);
    border-bottom: 2px solid var(--dm-blue);
    transform: rotate(-45deg);
}
.dm-plan .btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; }

.dm-plans-note { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--dm-ink-3); }
.dm-home-links { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: center; margin: 32px 0 0; padding-top: 32px; border-top: 1px solid var(--dm-line); }
.dm-home-links a { font-size: 15px; font-weight: 500; }

@media (min-width: 992px) { .dm-plan-for { min-height: 48px; } }

/* ---------- alerts: soft brand tints ---------- */

.alert { border-width: 1px; border-style: solid; }
.alert-info { background: var(--dm-blue-tint); border-color: #cfe2f7; color: #043a75; }
.alert-success { background: #e6f6ee; border-color: #c9ead9; color: #106b40; }
.alert-warning { background: #fdf1dc; border-color: #f3dcae; color: #8f5700; }
.alert-danger { background: #fbeaea; border-color: #f0cccc; color: #912d2d; }
.alert a:not(.btn) { color: inherit; font-weight: 600; text-decoration: underline; }

/* ---------- list tables (services, invoices, tickets, domains): one framed box, quiet header ---------- */

.table-container { overflow: hidden; border: 1px solid var(--dm-line); border-radius: var(--dm-r); background: #fff; padding: 0 16px 16px; }
.dataTables_wrapper table.table-list {
    margin: 12px 0 !important;
    border: 1px solid var(--dm-line);
    border-radius: var(--dm-r);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
.dataTables_wrapper table.table-list thead th,
table.table-list thead th {
    padding: 12px 16px;
    background: var(--dm-surface-2);
    border: 0;
    border-bottom: 1px solid var(--dm-line);
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    color: var(--dm-ink-2);
    white-space: nowrap;
}
.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc { background: var(--dm-surface-2); color: var(--dm-ink); }
.dataTables_wrapper table.table-list thead th:first-child { padding: 0 0 0 8px; width: 8px; }
.dataTables_wrapper table.table-list thead th,
.dataTables_wrapper table.table-list thead th:first-child,
.dataTables_wrapper table.table-list thead th:visible:last-child { border-radius: 0; }
.dataTables_wrapper table.table-list tr:last-child td:first-child,
.dataTables_wrapper table.table-list tr:last-child td:visible:last-child { border-radius: 0; }

/* sort arrows: small and muted, only the active one is dark */
table.table-list thead th.sorting::before, table.table-list thead th.sorting::after,
table.table-list thead th.sorting_asc::before, table.table-list thead th.sorting_asc::after,
table.table-list thead th.sorting_desc::before, table.table-list thead th.sorting_desc::after {
    font-size: 8px;
    opacity: .25;
    right: 10px;
}
table.table-list thead th.sorting_asc::before, table.table-list thead th.sorting_desc::after { opacity: .9; }

table.table-list tbody td { padding: 14px 16px; border-top: 1px solid var(--dm-line); font-size: 14px; color: var(--dm-ink); }
table.table-list tbody tr:first-child td { border-top: 0; }
.table-list > tbody > tr:hover > td { background: var(--dm-surface-2); }

.dataTables_wrapper .dataTables_info { padding: 12px 0 0; font-size: 14px; color: var(--dm-ink-2); }
.dataTables_wrapper .dataTables_length { padding-top: 8px; font-size: 14px; color: var(--dm-ink-2); }
.dataTables_wrapper .dataTables_length select { min-height: 36px; margin: 0 6px; }
.dataTables_wrapper .dataTables_filter label .form-control { min-height: 40px; }

/* pagination */
.pagination { font-size: 14px; gap: 4px; margin: 8px 0 0; }
.pagination .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dm-line);
    border-radius: var(--dm-r) !important;
    color: var(--dm-ink-2);
    background: #fff;
    font-weight: 500;
}
.pagination .page-link:hover { background: var(--dm-surface-2); color: var(--dm-ink); }
body .pagination .page-item.active .page-link { background: var(--dm-blue); border-color: var(--dm-blue); color: #fff; }
.pagination .page-item.disabled .page-link { color: var(--dm-ink-3); background: #fff; opacity: .6; }
.pagination .page-item { margin: 0; }

/* ---------- store: product group page ---------- */

body #order-standard_cart .header-lined { margin: 0 0 32px; padding: 0 0 24px; border-bottom: 1px solid var(--dm-line); }
body #order-standard_cart .header-lined h1 {
    margin: 0;
    font-size: clamp(30px, 3.6vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--dm-ink);
}

/* WHMCS wraps the products in rows of two: flatten the rows so .products is one grid */
body #order-standard_cart .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0 15px;
}
body #order-standard_cart .products .row.row-eq-height { display: contents; }
body #order-standard_cart .products .row.row-eq-height > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; }
body #order-standard_cart .products .row.row-eq-height::before,
body #order-standard_cart .products .row.row-eq-height::after { display: none; }

body #order-standard_cart .products .product {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--dm-line);
    border-radius: var(--dm-r);
    box-shadow: none;
}
body #order-standard_cart .products .product:hover { border-color: var(--dm-ink-3); }
body #order-standard_cart .products .product header {
    margin: 0 0 12px;
    padding: 0;
    background: none;
    border: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.012em;
    color: var(--dm-ink);
}
body #order-standard_cart .products .product .product-desc {
    flex: 1;
    margin: 0 0 24px;
    padding: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--dm-ink-2);
}
body #order-standard_cart .products .product .product-desc p { margin: 0; }
body #order-standard_cart .products .product footer { margin: 0; padding: 20px 0 0; background: none; border-top: 1px solid var(--dm-line); text-align: left; }
body #order-standard_cart .products .product .product-pricing { margin: 0 0 16px; font-size: 14px; color: var(--dm-ink-2); }
body #order-standard_cart .products .product .product-pricing .price {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -.03em;
    color: var(--dm-ink);
}
body #order-standard_cart .products .product .btn-order-now {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    font-size: 15px;
}
body #order-standard_cart .products .product .btn-order-now i { display: none; }

/* store cards: Nexus pads the description 20px and sizes the name span itself */
body #order-standard_cart .products .product .product-desc { padding: 0 !important; background: none; }
body #order-standard_cart .products .product header span { font-size: 20px; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }
body #order-standard_cart .products .product { padding: 28px !important; }
body #order-standard_cart .products .product header { margin: 0 0 12px !important; padding: 0 !important; }

/* remaining stock button colors */
body .btn-info { background: var(--dm-blue); border-color: var(--dm-blue); color: #fff; }
body .btn-info:hover, body .btn-info:focus { background: var(--dm-blue-hover); border-color: var(--dm-blue-hover); color: #fff; }
body .btn-warning { background: #fdf1dc; border-color: #f3dcae; color: #8f5700; }
body .btn-warning:hover, body .btn-warning:focus { background: #f9e5bf; border-color: #e9cb94; color: #8f5700; }

/* client area home panels: title row and padding */
#main-body .card[class*="card-accent-"] > .card-header { padding: 12px 12px 12px 20px; }
#main-body .card[class*="card-accent-"] > .card-header .card-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-height: 32px; font-size: 15px; line-height: 1.3;
}
#main-body .card[class*="card-accent-"] > .card-header .card-title > .float-right {
  float: none; order: 2; margin-left: auto;
}
#main-body .card[class*="card-accent-"] > .card-header .card-title > i { width: 18px; text-align: center; color: var(--dm-ink-3); }
#main-body .card[class*="card-accent-"] > .card-body { padding: 16px 20px; }
#main-body .card[class*="card-accent-"] > .card-body p:last-child { margin-bottom: 0; }
#main-body .card[class*="card-accent-"] > .card-footer:not(:has(*)):not(:has(a)) { display: none; }

/* submit ticket: department cards */
.dm-dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.dm-dept {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; border: 1px solid var(--dm-line); border-radius: var(--dm-r);
  background: #fff; color: var(--dm-ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.dm-dept:hover { border-color: var(--dm-blue); box-shadow: 0 1px 2px rgb(14 21 28 / 6%), 0 8px 20px -8px rgb(14 21 28 / 14%); text-decoration: none; color: var(--dm-ink); }
.dm-dept-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--dm-r);
  background: var(--dm-blue-tint); color: var(--dm-blue); font-size: 16px;
}
.dm-dept-text { flex: 1; min-width: 0; }
.dm-dept-text strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.dm-dept-text small { display: block; font-size: 14px; line-height: 1.5; color: var(--dm-ink-2); }
.dm-dept-go { flex: none; margin-top: 14px; font-size: 12px; color: var(--dm-ink-3); }
.dm-dept:hover .dm-dept-go { color: var(--dm-blue); }

/* downloads page: plugin download banner */
.dm-getplugin {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px; margin-bottom: 24px;
  background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-r);
}
.dm-getplugin-text { flex: 1; min-width: 260px; max-width: 640px; }
.dm-getplugin .dm-eyebrow { margin-bottom: 8px; color: var(--dm-blue); }
.dm-getplugin h2 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }
.dm-getplugin-text p:last-child { margin: 0; font-size: 15px; line-height: 1.55; color: var(--dm-ink-2); }
.dm-getplugin .btn { flex: none; }

/* license details page (module output on productdetails) */
#tabOverview > .card > .card-body { padding: 28px; }
#tabOverview > .card > .card-body > .alert-success { display: none; }
#tabOverview > .card > .card-body .dm-getplugin { margin-bottom: 28px; }
#tabOverview > .card > .card-body h4 {
  margin: 0 0 6px; font-family: "DM Sans", system-ui, sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--dm-ink-3);
}
#tabOverview > .card > .card-body .col-md-8 .mb-2 { margin-bottom: 20px !important; }
#tabOverview > .card > .card-body .col-md-8 input.form-control[readonly] { font-family: "DM Mono", monospace; font-size: 14px; }
#tabOverview > .card > .card-body .col-md-8 textarea.form-control[readonly] { min-height: 0; height: 44px; resize: none; }
#tabOverview > .card > .card-body .col-md-8 p { margin: 0; }
#tabOverview > .card > .card-body .col-md-4 { text-align: right; }
#tabOverview > .card > .card-body .col-md-4 .btn-danger {
  display: inline-block; width: auto; padding: 8px 16px; font-size: 14px; line-height: 1.4;
  background: #fff !important; color: #b3261e !important; border: 1px solid #efc4c0 !important;
}
#tabOverview > .card > .card-body .col-md-4 .btn-danger:hover { background: #fdf1f0 !important; border-color: #b3261e !important; }
#tabOverview > .card > .card-body .col-md-4 .btn-danger i,
#tabOverview > .card > .card-body .col-md-4 .btn-danger br { display: none; }
#tabOverview > .card > .card-body > .row.mb-2 { margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--dm-line); }
#tabOverview > .card > .card-body > .row.mb-2 > [class*="col-"] { text-align: left !important; margin-bottom: 16px; font-size: 15px; color: var(--dm-ink); }
#tabOverview > .card > .card-body .dm-getplugin { padding: 0 0 24px; margin-bottom: 24px; border: 0; border-bottom: 1px solid var(--dm-line); border-radius: 0; background: transparent; }

/* *****************************************************
   v3: closer match to the dealer.ms header, menus, footer and buttons
   (measured from the live site: 44px buttons, 15px/600 labels,
   16px/500 menu, 44px logo, DM Sans footer headings)
***************************************************** */

/* ---------- buttons, sitewide ---------- */
.btn { font-weight: 600; }
.btn-primary { box-shadow: 0 6px 14px -8px rgb(6 111 209 / .8); }
.btn-primary:hover { box-shadow: 0 8px 18px -8px rgb(6 111 209 / .9); }
.btn-primary:focus, .btn-primary.focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--dm-blue); }

/* ---------- header ---------- */
#header .dm-navbar { min-height: 73px; }
#header .navbar-brand .logo-img { height: 44px; width: auto; }
#header .navbar-brand { margin-right: 36px; }
#header .navbar-nav > li > a { color: var(--dm-ink-2); font-size: 16px; font-weight: 500; }
#header .navbar-nav > li > a:hover,
#header .navbar-nav > li.show > a,
#header .navbar-nav > li.dm-open > a { color: var(--dm-blue); }
#header .dm-actions { gap: 10px; margin-left: 14px; }
#header .dm-actions .btn { height: 44px; padding: 0 22px; font-size: 15px; font-weight: 600; }
#header .dm-actions .btn-outline-secondary { border-color: var(--dm-ink); color: var(--dm-ink); background: #fff; }
#header .dm-actions .btn-outline-secondary:hover,
#header .dm-actions .btn-outline-secondary:focus { background: var(--dm-ink); border-color: var(--dm-ink); color: #fff; }
#header .dm-actions .btn-primary:hover,
#header .dm-actions .btn-primary:focus { background: var(--dm-blue-hover); border-color: var(--dm-blue-hover); color: #fff; }
#header .dm-actions .btn::before { display: none; }

@media (min-width: 1200px) {
    #header .navbar-nav > li > a { padding: .5rem .625rem; }
    #header .navbar-nav > li > a::before { left: .625rem; right: .625rem; bottom: -6px; }
    #header .navbar-nav > li.dm-open > a::before { transform: scaleX(1); }

    /* menus open on hover, like the site; the ::before bridge keeps them open while the pointer moves down */
    #header .dm-mega:hover > .dropdown-menu,
    #header .dm-drop:hover > .dropdown-menu { display: block; }
    #header .dm-mega > .dropdown-menu::before,
    #header .dm-drop > .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
    #header .dm-drop > .dropdown-menu { margin-top: 14px; min-width: 220px; }

    /* panels sit centred under their menu item; the script in dm-site-menu.tpl sets --dm-shift to keep them on screen */
    #header .dm-mega { position: relative; }
    #header .dm-mega-panel {
        left: 50%;
        right: auto;
        width: 680px;
        margin-top: 14px;
        padding: 0;
        transform: translateX(calc(-50% + var(--dm-shift, 0px)));
        border-radius: var(--dm-r);
        overflow: visible;
    }
    #header .dm-mega-panel--wide { width: 880px; }
    #header .dm-mega-panel--xl { width: 950px; }
}

/* mega menu content */
.dm-mega-tag { margin: 0; padding: 22px 48px; border-bottom: 1px solid var(--dm-line); }
#header .dm-mega-tag a { font-size: 15px; font-weight: 600; color: var(--dm-blue); }
#header .dm-mega-tag a:hover { color: var(--dm-blue-hover); }
.dm-mega-cols { display: flex; gap: 48px; padding: 24px 48px 30px; }
.dm-mega-col { flex: 1 1 0; min-width: 0; }
.dm-mega-h {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--dm-ink);
}
.dm-mega-col a + .dm-mega-h { margin-top: 18px; }
#header .dm-mega-col a {
    display: block;
    padding: 5px 0;
    font-size: 15px;
    line-height: 1.35;
    color: #5a6a85;
    white-space: nowrap;
}
#header .dm-mega-col a:hover { color: var(--dm-blue); }
.dm-mega-soon {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 4px;
    background: #fff4d6;
    color: #8a5a00;
    font-size: 11px;
    font-weight: 600;
    vertical-align: 1px;
}
#header .dm-mega-card {
    position: relative;
    display: flex;
    flex: 0 0 300px;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
    padding: 22px;
    overflow: hidden;
    border-radius: var(--dm-r);
    background: #0a2a52;
    color: #fff;
}
#header .dm-mega-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; background: radial-gradient(closest-side, rgb(6 111 209 / .55), transparent); pointer-events: none; }
#header .dm-mega-card > * { position: relative; z-index: 1; }
#header .dm-mega-card strong { margin-top: 12px; }
/* theme screenshots that fade and scroll, same as the site menu */
.dm-autoshots { position: relative; display: block; width: 100%; aspect-ratio: 800 / 350; overflow: hidden; border-radius: 10px; background: #0a2a52; }
.dm-autoshots img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; animation: dm-autoshot-fade 56s linear infinite both, dm-autoshot-pan 56s linear infinite both; animation-delay: var(--d, 0s); }
.dm-autoshots img:nth-child(2) { --d: 8s; } .dm-autoshots img:nth-child(3) { --d: 16s; } .dm-autoshots img:nth-child(4) { --d: 24s; }
.dm-autoshots img:nth-child(5) { --d: 32s; } .dm-autoshots img:nth-child(6) { --d: 40s; } .dm-autoshots img:nth-child(7) { --d: 48s; }
@keyframes dm-autoshot-fade { 0% { opacity: 0; } 1.5% { opacity: 1; } 13% { opacity: 1; } 14.3%, 100% { opacity: 0; } }
@keyframes dm-autoshot-pan { 0% { object-position: 50% 0; } 14.3%, 100% { object-position: 50% 100%; } }
.dm-autoshots--2 img { animation-name: dm-autoshot-fade2, dm-autoshot-pan2; animation-duration: 16s, 16s; }
@keyframes dm-autoshot-fade2 { 0% { opacity: 0; } 4% { opacity: 1; } 46% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes dm-autoshot-pan2 { 0% { object-position: 50% 0; } 50%, 100% { object-position: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { .dm-autoshots img { animation: none; } .dm-autoshots img:first-child { opacity: 1; } }
#header .dm-mega-card strong { font-size: 17px; font-weight: 600; color: #fff; }
#header .dm-mega-card span { font-size: 14.5px; line-height: 1.55; color: #c4ccd5; }
#header .dm-mega-card em { margin-top: 10px; font-style: normal; font-size: 14.5px; font-weight: 600; color: #6db3f5; }
#header .dm-mega-card em::after { content: " \2192"; }
#header .dm-mega-card:hover em { color: #fff; }
.dm-mega-foot { margin: 0; padding: 0 48px 26px; }
#header .dm-mega-more { font-size: 14.5px; font-weight: 600; color: var(--dm-blue); }
#header .dm-mega-more::after { content: " \2192"; }

@media (max-width: 1199.98px) {
    #header .navbar-brand { margin-right: 0; }
    #header .navbar-brand .logo-img { height: 38px; }
    #header .dm-mega-panel { width: auto; transform: none; }
    .dm-mega-tag, #header .dm-mega-card, .dm-mega-foot { display: none; }
    .dm-mega-cols { display: block; padding: 0 0 8px 12px; }
    .dm-mega-h { margin: 10px 0 4px; font-size: 12px; letter-spacing: .08em; color: var(--dm-ink-3); }
    #header .dm-mega-col a { padding: 8px 0; font-size: 16px; white-space: normal; }
}

/* ---------- footer: same layout as dealer.ms ---------- */
#footer.dm-footer { padding: 72px 0 40px; }
.dm-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr));
    gap: 40px;
}
.dm-footer-logo { height: 44px; margin-bottom: 18px; }
.dm-footer-blurb { max-width: 240px; margin: 0; font-size: 14.5px; line-height: 1.6; color: #aab5c0; }
#footer.dm-footer h6, #footer.dm-footer h2.dm-footer-h {
    margin: 0 0 14px;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #fff;
}
.dm-footer ul.list-unstyled { margin: 0; }
.dm-footer ul.list-unstyled li { margin: 0; }
#footer.dm-footer ul.list-unstyled a { display: inline-block; padding: 4px 0; font-size: 14.5px; line-height: 1.8; color: #aab5c0; }
#footer.dm-footer ul.list-unstyled a:hover { color: #fff; }
.dm-footer-social { margin-top: 26px; }
.dm-footer-social .list-inline-item { margin-right: 10px; }
.dm-footer-social a { width: 51px; height: 51px; font-size: 16px; color: #69727d; }
.dm-footer-social a:hover { border-color: #aab5c0; color: #fff; }
.dm-footer-bottom { margin-top: 40px; padding-top: 24px; }
#footer.dm-footer .copyright { font-size: 13.5px; }
.dm-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
#footer.dm-footer .dm-footer-legal a { font-size: 13.5px; color: #aab5c0; }
#footer.dm-footer .dm-footer-legal a:hover { color: #fff; }
.dm-footer-legal a + a::before { content: "\00B7"; display: inline-block; margin: 0 8px; color: #69727d; }
.dm-footer .dm-locale {
    margin-left: 18px;
    padding: 5px 10px;
    border: 1px solid var(--dm-footer-line);
    background: transparent;
    color: #c4ccd5;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
}
.dm-footer .dm-locale:hover { border-color: #aab5c0; color: #fff; }
.dm-footer .dm-locale .iti-flag { display: inline-block; margin-right: 4px; vertical-align: -1px; }

@media (max-width: 991.98px) {
    .dm-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .dm-footer-brand { grid-column: 1 / -1; }
    .dm-footer-blurb { max-width: 420px; }
}
@media (max-width: 575.98px) {
    #footer.dm-footer { padding: 56px 0 32px; }
    .dm-footer-bottom { flex-direction: column; align-items: flex-start; }
    .dm-footer .dm-locale { margin: 12px 0 0; }
}

/* ---------- cookie banner (same as dealer.ms) ---------- */
.dm-cc{position:fixed;left:24px;bottom:24px;z-index:99999;width:min(420px,calc(100vw - 32px));padding:20px 22px;background:#fff;border:1px solid var(--dm-line);border-radius:var(--dm-r);box-shadow:0 18px 40px -16px rgb(15 23 42 / .35);font-family:"DM Sans",system-ui,sans-serif;color:var(--dm-ink-2)}
.dm-cc[hidden]{display:none}
.dm-cc__text{margin:0 0 16px;font-size:14.5px;line-height:1.55}
.dm-cc__text strong{display:block;margin-bottom:4px;font-size:15.5px;font-weight:700;color:var(--dm-ink)}
.dm-cc__text a{color:var(--dm-blue);text-decoration:underline;text-underline-offset:2px}
.dm-cc__actions{display:flex;gap:10px}
.dm-cc__btn{flex:1;height:42px;padding:0 16px;border-radius:var(--dm-r);font:600 15px/1 "DM Sans",system-ui,sans-serif;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
#dm-cc .dm-cc__btn--ghost{background:#fff;border:1px solid var(--dm-ink);color:var(--dm-ink)}
#dm-cc .dm-cc__btn--ghost:hover{background:var(--dm-ink);color:#fff}
#dm-cc .dm-cc__btn--primary{background:var(--dm-blue);border:1px solid var(--dm-blue);color:#fff}
#dm-cc .dm-cc__btn--primary:hover{background:var(--dm-blue-hover);border-color:var(--dm-blue-hover)}
.dm-cc__btn:focus-visible{outline:2px solid var(--dm-blue);outline-offset:2px}
@media (max-width:767px){.dm-cc{left:16px;right:16px;bottom:16px;width:auto;padding:18px}}

/* ---------- login ---------- */
.dm-auth { padding: 24px 0 40px; }
.dm-auth-card { max-width: 460px; margin: 0 auto; }
.dm-auth-card .card-body { padding: 40px 40px 32px; }
.dm-eyebrow { margin: 0 0 10px; font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .09em; line-height: 1.6; text-transform: uppercase; color: var(--dm-blue); }
.dm-auth-title { margin: 0 0 8px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.dm-auth-lead { margin: 0 0 28px; font-size: 15.5px; color: var(--dm-ink-2); }
.dm-auth .form-group { margin-bottom: 20px; }
.dm-auth label { margin-bottom: 6px; font-size: 14.5px; font-weight: 600; }
.dm-auth-forgot { margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.dm-auth .input-group .form-control { border-right: 0; }
.dm-auth .btn-reveal-pw { min-height: 44px; border: 1px solid var(--dm-line); border-left: 0; background: #fff; color: var(--dm-ink-3); box-shadow: none; }
.dm-auth .btn-reveal-pw:hover { background: #fff; color: var(--dm-ink); border-color: var(--dm-line); }
.dm-auth .input-group:focus-within .form-control,
.dm-auth .input-group:focus-within .btn-reveal-pw { border-color: var(--dm-blue); }
.dm-auth-remember { margin: 0 0 24px; }
.dm-auth-remember .custom-control-label { font-size: 14.5px; font-weight: 500; color: var(--dm-ink-2); }
.dm-auth-submit { height: 48px; font-size: 16px; }
.dm-auth-foot { padding: 18px 40px; font-size: 14.5px; color: var(--dm-ink-2); text-align: center; }
.dm-auth-foot a { font-weight: 600; }
@media (max-width: 575.98px) { .dm-auth-card .card-body { padding: 32px 24px 24px; } .dm-auth-foot { padding: 16px 24px; } }

/* ---------- contact (pre-sales) ---------- */
.dm-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: start; padding: 24px 0 48px; }
.dm-contact-title { margin: 0 0 14px; font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.dm-contact-lead { margin: 0 0 32px; font-size: 17px; line-height: 1.6; color: var(--dm-ink-2); }
.dm-contact-ways { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dm-line); }
.dm-contact-ways li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--dm-line); }
.dm-contact-ways strong { font-size: 16px; font-weight: 600; color: var(--dm-ink); }
.dm-contact-ways span { font-size: 15px; line-height: 1.55; color: var(--dm-ink-2); }
.dm-contact-ways a { font-size: 14.5px; font-weight: 600; }
.dm-contact-ways a::after { content: " \2192"; }
.dm-contact-card .card-body { padding: 36px; }
.dm-contact label { margin-bottom: 6px; font-size: 14.5px; font-weight: 600; }
.dm-contact .form-group { margin-bottom: 20px; }
.dm-contact-submit { height: 48px; margin-top: 4px; font-size: 16px; }
.dm-contact-note { margin: 14px 0 0; font-size: 13.5px; color: var(--dm-ink-3); text-align: center; }
@media (max-width: 991.98px) { .dm-contact { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 575.98px) { .dm-contact-card .card-body { padding: 24px; } }

/* store product list: styled in orderforms/dms_modern/css/style.css (it loads after this file) */

/* knowledgebase: article excerpts were drawn in the page background color */
.list-group-item.kb-article-item small { display: block; margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--dm-ink-3); }
.dm-auth-head { margin-bottom: 4px; }

/* ---------- invoice: quiet card headers like the rest of the site ---------- */
.invoice-container .card-header { padding: 12px 16px; background: var(--dm-surface-2); border-bottom: 1px solid var(--dm-line); }
.invoice-container .card-header .card-title { font-size: 16px; font-weight: 600; color: var(--dm-ink); }
.invoice-container .table thead td { font-size: 13px; font-weight: 600; color: var(--dm-ink-2); }

/* ---------- email verification bar: brand tint, outline button ---------- */
.verification-banner.email-verification { background: var(--dm-blue-tint); border-bottom: 1px solid #cfe2f7; color: var(--dm-ink); }
.verification-banner.email-verification .fa-exclamation-triangle { color: var(--dm-blue); }
.verification-banner .btn-resend-verify-email { height: 38px; background: #fff; border: 1px solid var(--dm-blue); color: var(--dm-blue); font-weight: 600; box-shadow: none; }
.verification-banner .btn-resend-verify-email:hover { background: var(--dm-blue); color: #fff; }
code.dm-license-key { display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 4px; background: var(--dm-surface-2); color: var(--dm-ink-2); font-size: 13px; user-select: all; }

/* *****************************************************
   v3.1 polish
***************************************************** */

/* menu text 15px, the same as the website menu (its items are 15px/500) */
#header .navbar-nav > li > a { font-size: 15px; }
@media (max-width: 1199.98px) { #header .navbar-nav > li > a { font-size: 17px; } }

/* signed-in top bar: slim, website navy, everything on one line */
#header .topbar { min-height: 36px; padding: 0; background: #0a2a52; }
#header .topbar .container > .d-flex { align-items: center; min-height: 36px; }
#header .topbar .btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 8px;
    border: 0; background: transparent; box-shadow: none;
    font-size: 13.5px; font-weight: 500; line-height: 1; color: #c4ccd5;
}
#header .topbar .btn:hover, #header .topbar .btn:focus { color: #fff; background: transparent; }
#header .topbar #accountNotifications { padding-left: 0; }
#header .topbar .active-client { display: flex; flex-wrap: nowrap; align-items: center; }
#header .topbar .active-client .input-group-prepend { display: flex; align-items: center; }
#header .topbar .active-client .input-group-text { height: auto; padding: 0 4px 0 0; border: 0; background: transparent; font-size: 13.5px; line-height: 1; color: #8fa0b3; }
#header .topbar .btn-active-client span { border-bottom: 1px dashed rgb(255 255 255 / .35); color: #fff; font-weight: 600; }
#header .topbar .btn-group { align-items: center; }

/* alerts that carry a button (unpaid invoice and similar): text and button on one line, button inside the box */
.alert:has(> .float-right .btn) { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; }
.alert > .float-right { float: none !important; flex: none; }
.alert .btn-xs.btn-default { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; background: #fff; border: 1px solid currentColor; font-size: 14px; font-weight: 600; box-shadow: none; }
@media (max-width: 575.98px) { .alert:has(> .float-right .btn) { flex-direction: column-reverse; align-items: flex-start; } }

/* email verification bar: outline button (the base theme sets this button dark with a stronger rule) */
#header ~ .verification-banner .btn.btn-resend-verify-email,
.verification-banner.email-verification .btn.btn-default.btn-resend-verify-email {
    height: 38px; background: #fff !important; border: 1px solid var(--dm-blue) !important; color: var(--dm-blue) !important; font-weight: 600; box-shadow: none;
}
.verification-banner.email-verification .btn.btn-default.btn-resend-verify-email:hover { background: var(--dm-blue) !important; color: #fff !important; }
.verification-banner.email-verification .close { color: var(--dm-ink-3); opacity: 1; }

/* license page: the module prints its own big red Cancel next to the key; the sidebar already has Request Cancellation */
.float-md-right:has(> .row form[action*="action=cancel"]) { display: none; }

/* footer bottom row: copyright and the legal links on one line */
.dm-footer-bottom { align-items: center; }
#footer.dm-footer .copyright, .dm-footer-legal { min-height: 30px; display: flex; align-items: center; line-height: 1.4; }

/* ---------- one type scale everywhere: sidebars and the order pages (standard_cart sizes its text in em off a 14px base) ---------- */
.sidebar .card-title, .sidebar .panel-title, .cart-sidebar .card-title, .cart-sidebar .panel-title { font-size: 15px; font-weight: 600; color: var(--dm-ink); }
.sidebar .list-group-item, .cart-sidebar .list-group-item { font-size: 15px; }
.sidebar .card-body, .cart-sidebar .card-body { font-size: 15px; }

#order-standard_cart { font-size: 16px; }
#order-standard_cart .header-lined h1, #order-standard_cart .cart-body h1 { font-size: 34px; font-weight: 600; letter-spacing: -.025em; }
#order-standard_cart .secondary-cart-body > p,
#order-standard_cart .cart-body > p,
#order-standard_cart .already-registered p,
#order-standard_cart .product-info p { font-size: 15px; line-height: 1.6; color: var(--dm-ink-2); }
#order-standard_cart .product-info { padding: 20px 22px; border: 1px solid var(--dm-line); border-radius: var(--dm-r); background: #fff; }
#order-standard_cart .product-info .product-title { margin-bottom: 8px; font-size: 20px; font-weight: 600; color: var(--dm-ink); }
#order-standard_cart label, #order-standard_cart .field-container label { font-size: 14.5px; font-weight: 600; color: var(--dm-ink); }
#order-standard_cart label.radio, #order-standard_cart label.radio-inline, #order-standard_cart label.checkbox-inline,
#order-standard_cart .apply-credit-container label { font-size: 15px; font-weight: 500; }
#order-standard_cart .alert { font-size: 15px; }
#order-standard_cart .small, #order-standard_cart small, #order-standard_cart p.small { font-size: 13.5px; }
#order-standard_cart .sub-heading span { font-size: 15px; font-weight: 600; color: var(--dm-ink); }

/* order summary box */
#order-standard_cart .order-summary { font-size: 15px; border-radius: var(--dm-r); }
#order-standard_cart .order-summary h2 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
#order-standard_cart .summary-container .product-name { font-size: 16px; font-weight: 600; }
#order-standard_cart .summary-container .product-group { font-size: 13.5px; }
#order-standard_cart .summary-container .clearfix span,
#order-standard_cart .summary-totals .clearfix span,
#order-standard_cart .summary-container .subtotal span { font-size: 14.5px; }
#order-standard_cart .summary-container .recurring-totals span,
#order-standard_cart .summary-container .recurring-totals .cost { font-size: 14px; }
#order-standard_cart .total-due-today span:not(.amt) { font-size: 13.5px; color: var(--dm-ink-3); }
#order-standard_cart .total-due-today .amt { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }

/* cart items */
#order-standard_cart .view-cart-items-header { font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
#order-standard_cart .view-cart-items .item-title { font-size: 16px; font-weight: 600; }
#order-standard_cart .view-cart-items .item-group { font-size: 14px; }
#order-standard_cart .view-cart-items .item-price .cycle { font-size: 13.5px; }
#order-standard_cart .nav-tabs .nav-link { font-size: 15px; }

/* domain search */
#order-standard_cart .domain-promo-box, #order-standard_cart .domain-promo-box p { font-size: 15px; }
#order-standard_cart .domain-promo-box p.small { font-size: 13.5px; }
#order-standard_cart .domain-suggestions-warning p { font-size: 13px; }
#order-standard_cart .btn-add-to-cart { font-size: 14px; font-weight: 600; }
#order-standard_cart .tld-filters .badge { font-size: 13.5px; font-weight: 500; }
#order-standard_cart .domain-pricing .col-4 small, #order-standard_cart .domain-pricing small { font-size: 13px; }

/* client area home: list footers and small notes at the same size as elsewhere */
.client-home-cards .card-footer .btn-view-more, .client-home-panels .btn-view-more { font-size: 14px; }
.client-home-cards .list-group-item small, .client-home-panels .list-group-item small { font-size: 13.5px; }
/* the base theme gives .copyright a 30px top margin */
#footer.dm-footer .dm-footer-bottom .copyright { margin: 0 !important; }

/* ---------- client area home: the dealer.ms Pricing plans and credits (markup from dealer.ms/wp-json/dms/v1/client-plans) ---------- */
.dmcp { padding: 56px 0 8px; }
.dmcp .dm-eyebrow { margin: 0 0 12px; }
.dmcp-head { max-width: 760px; margin-bottom: 32px; }
.dmcp-head h1 { margin: 0 0 16px; font-size: clamp(34px, 4.2vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.dmcp-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--dm-ink-2); }

/* Monthly / Yearly switch */
.dm-billing { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-bottom: 36px; padding: 4px; border: 1px solid var(--dm-line); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgb(10 42 82 / .06); }
.dm-billing button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--dm-ink-2); font: 600 15px/1 "DM Sans", sans-serif; cursor: pointer; transition: color .25s; box-shadow: none; }
.dm-billing button small { padding: 3px 8px; border-radius: 999px; background: var(--dm-blue-tint); color: var(--dm-blue); font-size: 12px; font-weight: 600; transition: background .25s, color .25s; }
.dm-billing button.is-on { color: #fff; }
.dm-billing button.is-on small { background: rgb(255 255 255 / .2); color: #fff; }
.dm-billing button:focus-visible { outline: 2px solid var(--dm-blue); outline-offset: 2px; }
.dm-billing-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--dm-blue); box-shadow: 0 4px 12px -4px rgb(6 111 209 / .55); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
html.dm-yearly .dm-billing-pill { transform: translateX(100%); }
.dm-swap { display: inline-grid; }
.dm-swap > span { grid-area: 1 / 1; transition: opacity .25s, transform .25s; }
.dm-swap-y { opacity: 0; transform: translateY(6px); pointer-events: none; }
html.dm-yearly .dm-swap-m { opacity: 0; transform: translateY(-6px); pointer-events: none; }
html.dm-yearly .dm-swap-y { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 480px) { .dm-billing button { min-width: 0; padding: 0 12px; font-size: 14px; } .dm-billing button small { display: none; } }

/* three plans in one framed row, like the website */
.dmcp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; background: #fff; border: 1px solid #cfe2f7; border-radius: var(--dm-r); }
.dmcp-plan { display: flex; flex-direction: column; padding: 32px 30px; }
.dmcp-plan + .dmcp-plan { border-left: 1px solid var(--dm-line); }
.dmcp-plan--standard { background: var(--dm-blue-tint); }
.dmcp-plan--pro { background: linear-gradient(180deg, #fff8e1 0%, #fff3cf 100%); }
.dmcp-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.dmcp-plan-name { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.dmcp-tag { font-size: 12px; font-weight: 600; color: var(--dm-blue); }
.dmcp-for { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--dm-ink-2); }
.dmcp-price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 15px; color: var(--dm-ink-2); }
.dmcp-price strong { font-size: 56px; font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--dm-ink); }
.dmcp-plan--standard .dmcp-price strong { color: var(--dm-blue); }
.dmcp-plan--pro .dmcp-price strong { color: #9a6200; }
.dmcp-note { min-height: 42px; margin: 0 0 22px; font-size: 13.5px; line-height: 1.5; color: var(--dm-ink-2); }
.dmcp-buy { display: flex; align-items: center; justify-content: center; height: 44px; margin-bottom: 26px; font-size: 15px; font-weight: 600; }
.dmcp .dmcp-btn-pro { background: #1f1a0f; border: 1px solid #1f1a0f; color: #ffe9b0; box-shadow: none; }
.dmcp .dmcp-btn-pro:hover, .dmcp .dmcp-btn-pro:focus { background: #9a6200; border-color: #9a6200; color: #fff; }
.dmcp-list { padding-top: 22px; border-top: 1px solid var(--dm-line); }
.dmcp-plan--pro .dmcp-list { border-top-color: #f0d9a0; }
.dmcp-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--dm-blue); }
.dmcp-plan--pro .dmcp-eyebrow { color: #9a6200; }
.dmcp-facts + .dmcp-eyebrow { margin-top: 26px; }

/* check lists */
.dmcp-facts, .dmcp-facts ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dmcp-facts li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.5; color: var(--dm-ink-2); }
.dmcp-facts li strong { font-weight: 600; color: var(--dm-ink); }
.dmcp-facts li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 4px; background: var(--dm-blue-tint) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23066fd1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.dmcp-plan--standard .dmcp-facts li::before { background-color: #cfe2f8; }
.dmcp-plan--pro .dmcp-facts li::before { background: #fde7b0 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%239a6200' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.dmcp-facts--compact, .dmcp-facts--compact ul { gap: 8px; }
.dmcp-facts--compact li { font-size: 14.5px; }

/* "All 17 Starter extensions" expander */
.dmcp-facts li.dm-ext-more { display: block; }
.dmcp-facts li.dm-ext-more::before { display: none; }
.dm-ext-more summary { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; list-style: none; font-weight: 600; color: var(--dm-ink); }
.dm-ext-more summary::-webkit-details-marker { display: none; }
.dm-ext-more summary::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 4px; background: var(--dm-blue-tint) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.5v7M4.5 8h7' fill='none' stroke='%23066fd1' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.dmcp-plan--standard .dm-ext-more summary::before { background-color: #cfe2f8; }
.dmcp-plan--pro .dm-ext-more summary::before { background: #fde7b0 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.5v7M4.5 8h7' fill='none' stroke='%239a6200' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.dm-ext-more summary::after { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; margin-left: -4px; background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5l3.5 3.5 3.5-3.5' fill='none' stroke='%236b7686' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .2s; }
.dm-ext-more details[open] summary::after { transform: rotate(180deg); }
.dm-ext-more summary:hover span { text-decoration: underline; text-underline-offset: 3px; }
.dm-ext-more__list { margin: 10px 0 4px 8px; padding-left: 21px; border-left: 2px solid rgb(15 23 42 / .1); }
.dmcp-facts .dm-ext-more__list ul { display: grid; gap: 6px; }
.dmcp-facts .dm-ext-more__list li { display: block; font-size: 14px; line-height: 1.45; }
.dmcp-facts .dm-ext-more__list li::before { display: none; }
.dm-ext-more__group { display: block; margin: 14px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dm-ink-2); }
.dm-ext-more__group:first-child { margin-top: 2px; }
.dm-nowrap { white-space: nowrap; }

.dmcp-small { margin: 18px 0 0; font-size: 14px; font-style: italic; color: var(--dm-ink-3); }

/* credits */
.dmcp-credits { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--dm-line); }
.dmcp-credits h2 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.025em; }
.dmcp-credits .dmcp-lead { max-width: 760px; margin-bottom: 32px; }
.dmcp-table { margin-bottom: 18px; overflow-x: auto; background: #fff; border: 1px solid #cfe2f7; border-radius: var(--dm-r); }
.dmcp-table table { width: 100%; min-width: 560px; margin: 0; border-collapse: collapse; table-layout: fixed; }
.dmcp-table thead th { width: auto; padding: 22px 20px 18px; border-bottom: 1px solid var(--dm-line); background: #fff; font-family: "DM Sans", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0; text-align: center; text-transform: none; color: var(--dm-ink); }
.dmcp-table thead th:first-child { width: 30%; }
.dmcp-table thead th em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--dm-blue); }
.dmcp-table tbody th { padding: 22px 20px; border-bottom: 1px solid var(--dm-line); text-align: left; font-size: 16px; font-weight: 600; color: var(--dm-ink); }
.dmcp-table tbody th small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; line-height: 1.4; color: var(--dm-ink-2); }
.dmcp-table tbody td { padding: 22px 4px; border-bottom: 1px solid var(--dm-line); text-align: center; vertical-align: middle; font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--dm-ink); }
.dmcp-table .is-featured { background: var(--dm-blue-tint); }
.dmcp-table .is-pro { background: linear-gradient(180deg, #fff8e1, #fff3cf); }
.dmcp-table thead th.is-pro { color: #9a6200; }
.dmcp-table tbody td.is-pro { color: #7a4d00; }
.dmcp-table tbody tr:last-child th, .dmcp-table tbody tr:last-child td { border-bottom: 0; }
.dmcp-table--packs thead th:first-child { text-align: left; }
.dmcp-table--packs tbody td { font-size: 22px; }
.dmcp-table--packs td strong { display: block; font-weight: 700; }
.dmcp-table--packs td small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--dm-ink-2); }
.dmcp-credit-notes { margin-top: 24px; }

@media (max-width: 991.98px) {
    .dmcp-plans { grid-template-columns: 1fr; }
    .dmcp-plan + .dmcp-plan { border-left: 0; border-top: 1px solid var(--dm-line); }
    .dmcp-note { min-height: 0; }
}
@media (max-width: 767.98px) {
    .dmcp { padding-top: 32px; }
    .dmcp-plan { padding: 28px 22px; }
    .dmcp-table table { min-width: 0; }
    .dmcp-table thead th, .dmcp-table tbody th, .dmcp-table tbody td { padding: 14px 8px; }
    .dmcp-table thead th { font-size: 13px; }
    .dmcp-table tbody th { font-size: 14px; }
    .dmcp-table tbody th small { font-size: 12px; }
    .dmcp-table tbody td, .dmcp-table--packs tbody td { font-size: 17px; }
    .dmcp-table--packs td small { font-size: 11.5px; }
    .dmcp-credits { margin-top: 48px; padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) { .dm-swap > span, .dm-billing-pill, .dm-billing button { transition: none; } }
/* dashboard service list: show the whole status ("Active", not "ACT…") */
.div-service-item .div-service-status { flex: none; width: auto; max-width: none; }
.div-service-item .div-service-status .label { display: inline-block; max-width: none; overflow: visible; text-overflow: clip; white-space: nowrap; }

/* ---------- v3.2: no monospace labels; table heads and status chips use the website's type ---------- */
/* status chips look like the website pills ("Most popular", "Every plan") */
body .label { padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1.6; text-transform: none; }
/* table headings: plain DM Sans, like the credits tables on the website */
.table thead th,
.dataTables_wrapper table.table-list thead th,
table.table-list thead th,
#order-standard_cart .view-cart-items-header {
    font-family: "DM Sans", system-ui, sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--dm-ink-2);
}
.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc { color: var(--dm-ink); }
.tiles .tile .title { font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.tiles .tile .stat { font-weight: 700; letter-spacing: -.02em; }

/* checkboxes and radios in the website blue (native ones and the iCheck ones the order pages use) */
input[type="checkbox"], input[type="radio"] { accent-color: var(--dm-blue); }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]),
.form-check label, label.checkbox, label.radio, label.checkbox-inline, label.radio-inline { font-weight: 400; color: var(--dm-ink-2); }
label:has(> input[type="checkbox"]) strong, label:has(> input[type="radio"]) strong { font-weight: 600; color: var(--dm-ink); }
.iradio_square-blue, .icheckbox_square-blue {
    width: 20px !important; height: 20px !important; flex: none;
    border: 2px solid #b9c3cd !important; border-radius: 50%;
    background: #fff !important; vertical-align: -5px; margin-right: 6px;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.icheckbox_square-blue { border-radius: 4px; }
.iradio_square-blue.hover, .icheckbox_square-blue.hover { border-color: var(--dm-blue) !important; }
.iradio_square-blue.checked { border-color: var(--dm-blue) !important; background: var(--dm-blue) !important; box-shadow: inset 0 0 0 3px #fff; }
.icheckbox_square-blue.checked {
    border-color: var(--dm-blue) !important;
    background: var(--dm-blue) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat !important;
}
.iradio_square-blue.disabled, .icheckbox_square-blue.disabled { opacity: .5; }

/* domain search box on the order pages: text was touching the edge */
#order-standard_cart textarea, #order-standard_cart .domain-checker-container textarea { padding: 12px 14px; border-radius: var(--dm-r); line-height: 1.5; }

/* sidebars: the selected item gets a blue bar on the left, like the header menu's blue underline */
.sidebar .list-group-item.active, .cart-sidebar .list-group-item.active,
.sidebar .card-sidebar .list-group-item.active {
    position: relative; background: var(--dm-blue-tint); border-color: var(--dm-line); color: var(--dm-blue); font-weight: 600;
}
.sidebar .list-group-item.active::before, .cart-sidebar .list-group-item.active::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--dm-blue);
}
.sidebar .list-group-item.active .badge, .cart-sidebar .list-group-item.active .badge { background: var(--dm-blue); color: #fff; }
.sidebar .list-group-item:not(.active):hover, .cart-sidebar .list-group-item:not(.active):hover { background: var(--dm-surface-2); color: var(--dm-ink); }

/* ---------- dashboard panels: website-style card headers and blue action links ---------- */
.client-home-cards .card { overflow: hidden; }
.client-home-cards .card-header { padding: 16px 22px; background: #fff; border-bottom: 1px solid var(--dm-line); }
.client-home-cards .card-header .card-title { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: var(--dm-ink); }
.client-home-cards .card-header .card-title > i {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 32px; height: 32px; border-radius: var(--dm-r);
    background: var(--dm-blue-tint); color: var(--dm-blue); font-size: 15px;
}
.client-home-cards .card-header .float-right { order: 2; margin-left: auto; }
/* the header button ("My Services", "View All", "Open New Ticket") is a blue text link with an arrow, like the website */
.client-home-cards .card-header .btn {
    display: inline-flex; align-items: center; gap: 6px; height: auto; padding: 4px 0;
    border: 0 !important; background: transparent !important; box-shadow: none;
    font-size: 14.5px; font-weight: 600; color: var(--dm-blue) !important;
}
.client-home-cards .card-header .btn i { display: none; }
.client-home-cards .card-header .btn::after { content: "\2192"; transition: transform .15s; }
.client-home-cards .card-header .btn:hover { color: var(--dm-blue-hover) !important; }
.client-home-cards .card-header .btn:hover::after { transform: translateX(3px); }
.client-home-cards .card-body { padding: 18px 22px; font-size: 15px; line-height: 1.6; color: var(--dm-ink-2); }
.client-home-cards .card-footer:empty { display: none; }
.client-home-cards .card-footer { padding: 10px 22px; background: #fff; }
.client-home-cards .list-group-item { padding: 14px 22px; }
/* buttons inside the panels: outlined in blue so they stand out from the white card */
.client-home-cards .list-group .btn-default, .client-home-cards .card-body .btn-default,
.client-home-cards .div-service-item .btn {
    border: 1px solid var(--dm-blue); background: #fff; color: var(--dm-blue); font-weight: 600; box-shadow: none;
}
.client-home-cards .list-group .btn-default:hover, .client-home-cards .card-body .btn-default:hover,
.client-home-cards .div-service-item .btn:hover { background: var(--dm-blue); color: #fff; }
/* stat tiles: lift and turn blue on hover */
.tiles .tile { transition: background .15s; }
.tiles .tile:hover { background: var(--dm-blue-tint); }
.tiles .tile:hover .stat, .tiles .tile:hover .title { color: var(--dm-blue); }
.tiles .tile i { color: #dfe5eb; }
/* the base theme turns checked radios and checkboxes grey with a filter */
body .icheckbox_square-blue.checked, body .iradio_square-blue.checked { filter: none !important; }
/* footer bottom row spaced like dealer.ms: 17px from the divider to the links, about 57px below */
.dm-footer-bottom { padding-top: 11px !important; }
#footer.dm-footer { padding-bottom: 50px; }

/* *****************************************************
   v3.3 consistency pass
***************************************************** */

/* dashboard panel icons: a proper square tile around the icon */
.client-home-cards .card-header .card-title > i {
    width: 32px !important; height: 32px !important; min-width: 32px; line-height: 32px;
    text-align: center; color: var(--dm-blue) !important; font-size: 14px;
}

/* dashboard "Register a New Domain": full-width field, buttons the same height as the field */
.client-home-cards .card[menuitemname="Register a New Domain"] .card-body form,
.client-home-cards .card[menuitemname="Register a New Domain"] .input-group { display: flex; flex-wrap: nowrap; width: 100%; }
.client-home-cards .card[menuitemname="Register a New Domain"] .input-group .form-control { flex: 1 1 auto; min-width: 0; height: 44px; border-radius: var(--dm-r) 0 0 var(--dm-r); }
.client-home-cards .card[menuitemname="Register a New Domain"] .btn { height: 44px; padding: 0 16px; border-radius: 0; box-shadow: none; }
.client-home-cards .card[menuitemname="Register a New Domain"] .btn:last-child { border-radius: 0 var(--dm-r) var(--dm-r) 0; }
.client-home-cards .card[menuitemname="Register a New Domain"] .btn-success { background: var(--dm-blue); border-color: var(--dm-blue); }

/* every badge in the website colours (the knowledgebase "3 Articles" was aqua) */
.badge-info, .badge-primary, .kb-category .badge, .card .card-body .badge-info { background: var(--dm-blue-tint); color: var(--dm-blue); font-weight: 600; }
.badge { font-weight: 600; border-radius: 4px; }

/* knowledgebase and other search bars: field and button stay the same height while typing */
.kb-search .form-control, .input-group-lg > .form-control { height: 48px !important; padding: 0 16px; font-size: 16px; }
.kb-search .btn, .input-group-lg > .input-group-append > .btn { height: 48px !important; min-width: 96px; padding: 0 22px !important; font-size: 15px; box-shadow: none; }
.kb-search .form-control:focus { box-shadow: none; border-color: var(--dm-blue); }

/* data tables: room above the search field and the "Showing" line */
.dataTables_wrapper { padding-top: 6px; }
.dataTables_wrapper .dataTables_filter { margin: 6px 0 12px; }
.dataTables_wrapper .dataTables_info { padding-top: 14px !important; }

/* sidebars: one size everywhere (the order pages' sidebar is more specific, hence body #order-standard_cart) */
.sidebar .list-group-item, body #order-standard_cart .cart-sidebar .list-group-item { padding: 10px 16px; font-size: 15px; line-height: 1.4; }
.sidebar .card-title, .sidebar .panel-title,
body #order-standard_cart .cart-sidebar .card-title, body #order-standard_cart .cart-sidebar .panel-title { font-size: 15px; font-weight: 600; color: var(--dm-ink); }
body #order-standard_cart .cart-sidebar { font-size: 15px; }

/* order page notes ("Have questions? Contact our sales team") at the normal alert size */
body #order-standard_cart .alert.info-text-sm, body #order-standard_cart .alert { font-size: 15px; line-height: 1.55; text-align: left; }

/* page titles on the order pages: one size */
body #order-standard_cart .header-lined h1, body #order-standard_cart h1 { margin-bottom: 8px; font-size: 32px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
body #order-standard_cart .header-lined { margin-bottom: 20px; padding-bottom: 0; border: 0; }

/* register a domain: brand blue search band instead of the yellow globe */
body #order-standard_cart .domain-checker-container {
    background: linear-gradient(135deg, #06284f 0%, #0a3d7a 45%, #066fd1 100%) !important;
    border-radius: var(--dm-r);
}
body #order-standard_cart .domain-checker-bg { background-image: none !important; }
body #order-standard_cart .domain-checker-container .multiselect.dropdown-toggle { background: transparent; border: 0; box-shadow: none; color: var(--dm-ink); font-weight: 600; }
/* extension price table: thin blue rule instead of thick black bars */
body #order-standard_cart .domain-pricing .tld-pricing-header .col-4,
body #order-standard_cart .domain-pricing .col-xs-4 { border-bottom-width: 2px !important; border-bottom-color: var(--dm-line) !important; }
body #order-standard_cart .domain-pricing .tld-pricing-header .col-4:first-child,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-xs-4:first-child { border-bottom-color: var(--dm-blue) !important; }
body #order-standard_cart .tld-filters .badge { padding: 6px 12px; background: var(--dm-blue-tint); color: var(--dm-blue); }
body #order-standard_cart .tld-filters .badge.badge-success, body #order-standard_cart .tld-filters .badge.active,
body #order-standard_cart .tld-filters .badge.badge-secondary { background: var(--dm-blue); color: #fff; }
/* the two promo boxes under it */
body #order-standard_cart .domain-promo-box { padding: 24px; border: 1px solid var(--dm-line); border-radius: var(--dm-r); background: #fff; }
body #order-standard_cart .domain-promo-box h3 { font-size: 20px; font-weight: 600; color: var(--dm-ink); }
body #order-standard_cart .domain-promo-box .text-warning,
body #order-standard_cart .domain-promo-box .text-primary { color: var(--dm-ink-2) !important; font-weight: 500; }
body #order-standard_cart .domain-promo-box .btn-warning,
body #order-standard_cart .domain-promo-box .btn-primary { height: 44px; display: inline-flex; align-items: center; padding: 0 20px; background: var(--dm-blue); border: 1px solid var(--dm-blue); color: #fff; font-weight: 600; box-shadow: 0 6px 14px -8px rgb(6 111 209 / .8); }
body #order-standard_cart .domain-promo-box i { color: var(--dm-blue); }

/* text colour utilities the base theme sets to bright yellow / aqua */
.text-warning { color: #8f5700 !important; }
.text-info { color: var(--dm-blue) !important; }

/* phones: domain search button goes under the box instead of over the text */
@media (max-width: 767.98px) {
    body #order-standard_cart .domain-checker-container .domain-check-availability { position: static !important; display: block; width: 100%; height: 44px; margin-top: 10px; transform: none !important; }
    body #order-standard_cart .domain-checker-container .col-10 { flex: 0 0 100%; max-width: 100%; margin-left: 0; }
    body #order-standard_cart .domain-checker-container { padding: 20px 16px; }
}
/* phones: tables scroll sideways inside their card instead of being cut off */
.dataTables_wrapper .table-container, .dataTables_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* invoice page: no sideways scroll on phones */
.invoice-container { max-width: 100%; }
@media (max-width: 575.98px) { .invoice-container { margin-left: 0 !important; margin-right: 0 !important; border-left: 0; border-right: 0; border-radius: 0; } }
/* phones: lists show the essentials (name and status; invoice number, total and status) */
@media (max-width: 575.98px) {
    #tableServicesList th:nth-child(3), #tableServicesList td:nth-child(3),
    #tableServicesList th:nth-child(4), #tableServicesList td:nth-child(4),
    #tableInvoicesList th:nth-child(2), #tableInvoicesList td:nth-child(2),
    #tableInvoicesList th:nth-child(5), #tableInvoicesList td:nth-child(5) { display: none; }
}
#tableServicesList, #tableInvoicesList { width: 100% !important; }
@media (max-width: 575.98px) { code.dm-license-key { word-break: break-all; white-space: normal; } }
code.dm-license-key { white-space: nowrap; }

/* *****************************************************
   v3.4
***************************************************** */

/* domain search: Search button keeps its sparkle icon on the same line */
body #order-standard_cart .domain-checker-container .domain-check-availability {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: auto; min-width: 116px; height: 48px; padding: 0 22px; white-space: nowrap; font-size: 15px;
}
body #order-standard_cart .domain-checker-container .domain-check-availability i { margin: 0; font-size: 14px; }
/* Include TLDs / Maximum Length / Safe Search: small outlined chips under the field */
body #order-standard_cart .domain-checker-container .btn-group { margin: 12px 8px 0 0; }
body #order-standard_cart .domain-checker-container .multiselect.dropdown-toggle {
    height: 36px; margin: 0; padding: 0 12px; border: 1px solid var(--dm-line); border-radius: var(--dm-r);
    background: #fff; font-size: 14px; font-weight: 500; color: var(--dm-ink-2);
}
body #order-standard_cart .domain-checker-container .multiselect.dropdown-toggle:hover { border-color: var(--dm-blue); color: var(--dm-blue); }
body #order-standard_cart .domain-checker-container .multiselect-container { padding: 6px 0; font-size: 14px; }
body #order-standard_cart .domain-checker-container .multiselect-container label { padding: 6px 14px; font-size: 14px; font-weight: 400; color: var(--dm-ink-2); }
body #order-standard_cart .domain-checker-container label:has(input[type="checkbox"]) { margin: 12px 0 0 4px; font-size: 14px; color: var(--dm-ink-2); }
body #order-standard_cart .domain-checker-container .input-group-box { padding: 16px; border-radius: var(--dm-r); }
body #order-standard_cart .domain-checker-container textarea { font-size: 16px; }

/* extension price table: roomier rows, bigger type */
body #order-standard_cart .domain-pricing { font-size: 15px; }
body #order-standard_cart .domain-pricing .tld-pricing-header { font-size: 14px; font-weight: 600; }
body #order-standard_cart .domain-pricing .tld-pricing-header > div { padding: 12px 8px; }
body #order-standard_cart .domain-pricing .tld-row { padding: 10px 0; border-bottom: 1px solid var(--dm-line); }
body #order-standard_cart .domain-pricing .tld-row.highlighted { background: var(--dm-surface-2); }
body #order-standard_cart .domain-pricing .tld-row strong { font-size: 17px; font-weight: 700; color: var(--dm-ink); }
body #order-standard_cart .domain-pricing .tld-row .col-4, body #order-standard_cart .domain-pricing .tld-row .col-xs-4 { font-size: 16px; font-weight: 600; color: var(--dm-ink); border-bottom: 0 !important; }
body #order-standard_cart .domain-pricing .tld-row small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--dm-ink-3); }
body #order-standard_cart .domain-pricing .bg-white { overflow: hidden; border: 1px solid var(--dm-line); border-radius: var(--dm-r); }
body #order-standard_cart .domain-pricing h4, body #order-standard_cart .domain-pricing .tld-filters + * { font-size: 18px; }

/* dashboard lists (Recent Support Tickets, Recent News): same inner spacing as the other cards */
.client-home-cards .card .list-group .list-group-item { padding: 14px 22px !important; font-size: 15px; line-height: 1.5; color: var(--dm-ink-2); }
.client-home-cards .card .list-group .list-group-item small { display: block; margin: 4px 0 0; font-size: 13.5px; color: var(--dm-ink-3); }

/* checkout security note: lock and text centred on one line */
.alert.checkout-security-msg { display: flex; align-items: center; gap: 14px; padding: 14px 20px !important; }
.alert.checkout-security-msg > i { position: static !important; flex: none; margin: 0; font-size: 20px; }
.alert.checkout-security-msg .clearfix { display: none; }

/* user management: space between Manage Permissions and Remove Access */
.table td .btn-manage-permissions { margin: 0 8px 8px 0; }
.table td .btn-remove-user { margin-bottom: 8px; }
body #order-standard_cart .domain-pricing .tld-row .two-row-center { border-right: 0 !important; }
body #order-standard_cart .tld-filters a.badge.badge-success, body #order-standard_cart .tld-filters a.badge.badge-secondary.badge-success { background: var(--dm-blue) !important; color: #fff !important; }
body #order-standard_cart .tld-filters a.badge { background: var(--dm-blue-tint); color: var(--dm-blue); }
@media (min-width: 768px) { body #order-standard_cart .domain-checker-container textarea { padding-right: 140px; } }
@media (max-width: 767.98px) {
    /* phones: domain search button full width under the field (overrides the desktop size above) */
    body #order-standard_cart .domain-checker-container .domain-check-availability { display: flex !important; width: 100% !important; margin-top: 10px; }
    body #order-standard_cart .domain-checker-container textarea { min-height: 120px; padding-right: 14px; }
}
@media (max-width: 575.98px) {
    /* any product list that shows license keys: name and status only */
    table.table-list:has(.dm-license-key) th:nth-child(3), table.table-list:has(.dm-license-key) td:nth-child(3),
    table.table-list:has(.dm-license-key) th:nth-child(4), table.table-list:has(.dm-license-key) td:nth-child(4) { display: none; }
    table.table-list:has(.dm-license-key) { width: 100% !important; }
    /* user management: each user as a stacked block with the buttons side by side */
    .table:has(.btn-manage-permissions) thead { display: none; }
    .table:has(.btn-manage-permissions) tr, .table:has(.btn-manage-permissions) td { display: block; width: 100%; }
    .table:has(.btn-manage-permissions) td { padding: 10px 12px; border: 0; }
    .table:has(.btn-manage-permissions) td:last-child { padding-top: 0; }
    .table:has(.btn-manage-permissions) tr { border-bottom: 1px solid var(--dm-line); }
}
@media (max-width: 575.98px) {
    .table:has(.btn-manage-permissions) th, .table:has(.btn-manage-permissions) tr:has(> th) { display: none; }
    table.table-list th:first-child.sorting_disabled, table.table-list:has(.dm-license-key) td:first-child { display: none; }
    .dataTables_wrapper table.table-list th, .dataTables_wrapper table.table-list td { padding-left: 10px !important; padding-right: 10px !important; }
}
@media (max-width: 575.98px) { code.dm-license-key { white-space: normal; word-break: break-all; } }

/* *****************************************************
   v3.5 domain search layout, domain chooser on product pages
***************************************************** */

/* register a domain: field and Search side by side, filters on the row below (no overlap at any width) */
body #order-standard_cart .domain-checker-container .input-group-box {
    display: grid !important;
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "field field field search" "tld len safe safe";
    align-items: center;
    gap: 12px;
}
body #order-standard_cart .domain-checker-container .input-group-box > textarea { grid-area: field; width: 100% !important; min-height: 96px; padding-right: 14px !important; border-radius: var(--dm-r) !important; }
body #order-standard_cart .domain-checker-container .input-group-box > .domain-check-availability {
    grid-area: search; align-self: start; position: static !important; transform: none !important; margin: 0 !important;
}
body #order-standard_cart .domain-checker-container .input-group-box > select { display: none; }
body #order-standard_cart .domain-checker-container .input-group-box > div:nth-of-type(1) { grid-area: tld; margin: 0; }
body #order-standard_cart .domain-checker-container .input-group-box > div:nth-of-type(2) { grid-area: len; margin: 0; }
body #order-standard_cart .domain-checker-container .input-group-box > label { grid-area: safe; display: inline-flex; align-items: center; gap: 8px; height: 36px; margin: 0 !important; font-size: 14px; }
body #order-standard_cart .domain-checker-container .input-group-box > label input { margin: 0; }
@media (max-width: 767.98px) {
    body #order-standard_cart .domain-checker-container .input-group-box { grid-template-columns: auto auto 1fr; grid-template-areas: "field field field" "search search search" "tld len len" "safe safe safe"; }
    body #order-standard_cart .domain-checker-container .input-group-box > .domain-check-availability { width: 100% !important; }
    body #order-standard_cart .domain-checker-container .input-group-box > textarea { min-height: 120px; }
}

/* every filter dropdown on the order pages (Include TLDs, Maximum Length): the same outlined chip */
body #order-standard_cart .multiselect.dropdown-toggle {
    height: 36px; margin: 0 8px 0 0; padding: 0 12px; border: 1px solid var(--dm-line); border-radius: var(--dm-r);
    background: #fff; box-shadow: none; font-size: 14px; font-weight: 500; color: var(--dm-ink-2);
}
body #order-standard_cart .multiselect.dropdown-toggle:hover { border-color: var(--dm-blue); color: var(--dm-blue); }
body #order-standard_cart .multiselect-container label { padding: 6px 14px; font-size: 14px; font-weight: 400; color: var(--dm-ink-2); }

/* product pages, "Choose a Domain": roomier options, readable labels, 48px fields */
body #order-standard_cart .domain-selection-options .option { padding: 16px 22px; border-color: var(--dm-line); }
body #order-standard_cart .domain-selection-options .option + .option { border-top: 1px solid var(--dm-line); }
body #order-standard_cart .domain-selection-options .option > label { margin: 0; font-size: 15.5px; font-weight: 500; color: var(--dm-ink); }
body #order-standard_cart .domain-selection-options .option-selected { background: #fbfdff; }
body #order-standard_cart .domain-selection-options .domain-input-group { margin-top: 14px; }
body #order-standard_cart .domain-selection-options .form-control,
body #order-standard_cart .domain-selection-options select.form-control { height: 48px; font-size: 16px; }
body #order-standard_cart .domain-selection-options textarea { min-height: 96px; padding: 12px 14px; font-size: 16px; line-height: 1.5; border-radius: var(--dm-r); }
body #order-standard_cart .domain-selection-options .input-group-text { height: 48px; padding: 0 14px; background: var(--dm-surface-2); border-color: var(--dm-line); font-size: 15px; color: var(--dm-ink-2); }
body #order-standard_cart .domain-selection-options .btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; white-space: nowrap; font-size: 15px;
}
body #order-standard_cart .domain-selection-options .btn-primary i { margin: 0; }
body #order-standard_cart .domain-selection-options label:has(input.no-icheck) { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin: 0; font-size: 14px; }

/* v3.5: product-page domain chooser - Check button lines up with the field on phones, space before the filters */
body #order-standard_cart #domainregister > .row + .row { margin-top:12px; }
@media (max-width:575.98px){
  body #order-standard_cart #domainregister #btnCheckAvailability { margin:12px 0 0 -2px !important; width:calc(100% + 4px); }
}
/* v3.5: signed-in header gained a Store menu; on small laptops drop the Open a Ticket button (it is also under Support) */
@media (min-width:1200px) and (max-width:1359.98px){ #header .dm-actions .dm-act-ticket { display:none; } }

/* v3.6: domain search box tall enough for the whole placeholder, so no scrollbar shows until you type a lot */
body #order-standard_cart .domain-checker-container .input-group-box > textarea,
body #order-standard_cart #domainregister textarea { height:148px; min-height:148px; }
@media (max-width:991.98px){
  body #order-standard_cart .domain-checker-container .input-group-box > textarea,
  body #order-standard_cart #domainregister textarea { height:196px; min-height:196px; }
}

/* v3.6: Order Summary - one card style for Configure (confproduct), Review & Checkout (view) and domain config.
   White card like the website's pricing cards: left-aligned title, flex rows, big total on the right. */
body #order-standard_cart .order-summary { background:#fff; border:1px solid var(--dm-line); border-radius:var(--dm-r); padding:0; margin:0 0 16px; box-shadow:none; overflow:hidden; color:var(--dm-ink-2); }
body #order-standard_cart .order-summary h2 { margin:0; padding:18px 24px; background:#fff; border-bottom:1px solid var(--dm-line); color:var(--dm-ink); font-size:18px; font-weight:600; line-height:1.3; text-align:left; letter-spacing:-.005em; }
body #order-standard_cart .order-summary .summary-container { margin:0; padding:20px 24px 24px; background:#fff; border:0; font-size:15px; }
body #order-standard_cart .summary-container .product-name { display:block; color:var(--dm-ink); font-size:16.5px; font-weight:600; line-height:1.35; }
body #order-standard_cart .summary-container .product-group { display:block; margin:3px 0 12px; color:var(--dm-ink-3); font-size:13.5px; font-style:normal; }
body #order-standard_cart .summary-container .clearfix { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:5px 0; }
body #order-standard_cart .summary-container .clearfix::before,
body #order-standard_cart .summary-container .clearfix::after { display:none; }
body #order-standard_cart .summary-container .clearfix > span,
body #order-standard_cart .summary-container .clearfix > .float-left,
body #order-standard_cart .summary-container .clearfix > .float-right { float:none !important; color:var(--dm-ink-2); font-size:15px; }
body #order-standard_cart .summary-container .clearfix > .float-right { color:var(--dm-ink); font-weight:500; text-align:right; white-space:nowrap; }
body #order-standard_cart .summary-container .recurring-charges,
body #order-standard_cart .summary-container .recurring-charges .cost { font-style:normal; font-size:15px; line-height:1.5; }
body #order-standard_cart .summary-container .summary-totals,
body #order-standard_cart .summary-container .recurring-totals { margin-top:10px; padding-top:10px; border-top:1px solid var(--dm-line); }
body #order-standard_cart .summary-container .subtotal { border:0; }
body #order-standard_cart .order-summary .total-due-today { margin:14px 0 0; padding:16px 0 0; border-top:1px solid var(--dm-line); text-align:right; }
body #order-standard_cart .order-summary .total-due-today .amt { display:block; color:var(--dm-ink); font-size:34px; font-weight:700; line-height:1.1; letter-spacing:-.02em; }
body #order-standard_cart .order-summary .total-due-today span:not(.amt) { display:block; margin-top:4px; color:var(--dm-ink-3); font-size:13.5px; }
body #order-standard_cart .order-summary .text-right,
body #order-standard_cart #orderSummary > .text-center { text-align:center !important; }
body #order-standard_cart .order-summary .btn-checkout,
body #order-standard_cart #btnCompleteProductConfig { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; height:48px; padding:0 22px; font-size:16px; font-weight:600; border-radius:var(--dm-r); }
body #order-standard_cart .order-summary .btn-checkout { margin-top:20px; }
body #order-standard_cart #btnCompleteProductConfig i.fa-arrow-circle-right::before { content:"\f061"; }  /* plain arrow, same as Checkout */
body #order-standard_cart .order-summary .btn-continue-shopping { display:inline-block; margin-top:10px; color:var(--dm-blue); font-size:15px; font-weight:600; }
body #order-standard_cart .order-summary .btn-continue-shopping:hover { color:var(--dm-blue-hover); text-decoration:none; }
body #order-standard_cart .order-summary .loader { background:rgb(255 255 255 / .8); color:var(--dm-blue); }

/* "Have questions? Contact our sales team" is help, not a warning: show it in the quiet blue info style */
body #order-standard_cart .alert-warning.info-text-sm { background:var(--dm-blue-tint); border-color:#cfe2f7; color:#043a75; }
body #order-standard_cart .alert-warning.info-text-sm .alert-link,
body #order-standard_cart .alert-warning.info-text-sm i { color:var(--dm-blue); }
body #order-standard_cart .summary-container .summary-totals { border-bottom:0; padding-bottom:0; margin-bottom:0; }
body #order-standard_cart .order-summary h2 { border:0; border-bottom:1px solid var(--dm-line); border-radius:0; }

/* v3.6: Checkout page */
/* secure-environment note: was flex, which split "( IP )" into separate pieces and the theme pulled the lock -48px off the box */
body #order-standard_cart .alert.checkout-security-msg { display:block !important; position:relative; padding:14px 20px 14px 54px !important; background:var(--dm-blue-tint); border-color:#cfe2f7; color:#043a75; font-size:15px; line-height:1.55; text-align:left; }
body #order-standard_cart .alert.checkout-security-msg > i { position:absolute !important; left:20px; top:50%; transform:translateY(-50%); margin:0 !important; font-size:18px !important; line-height:1 !important; color:var(--dm-blue); }
body #order-standard_cart .alert.checkout-security-msg strong { color:inherit; font-weight:600; }
/* icons inside the fields sit in the vertical middle of the 44px+ inputs */
body #order-standard_cart .prepend-icon .field-icon { top:0; bottom:0; left:14px; display:flex; align-items:center; margin:0; line-height:1; font-size:15px; color:var(--dm-ink-3); }
body #order-standard_cart .prepend-icon .field-icon i { font-size:15px; line-height:1; }
body #order-standard_cart .prepend-icon .field { padding-left:40px; }
/* total due: website blue tint instead of green */
body #order-standard_cart #totalDueToday { background:var(--dm-blue-tint); border-color:#cfe2f7; color:var(--dm-ink); font-size:17px; padding:14px 20px; }
body #order-standard_cart #totalDueToday strong, body #order-standard_cart #totalDueToday span { color:var(--dm-ink); font-weight:700; }
/* small helper text up to the site's 15px */
body #order-standard_cart p.small.text-muted, body #order-standard_cart #passwordStrengthTextLabel { font-size:15px; color:var(--dm-ink-3); }
body #order-standard_cart .generate-password { height:40px; padding:0 16px; font-size:15px; font-weight:600; }
body #order-standard_cart .selected-dial-code { font-size:15px; }
body #order-standard_cart #btnCompleteOrder { display:inline-flex; align-items:center; gap:8px; height:48px; padding:0 28px; font-size:16px; font-weight:600; }
body #order-standard_cart #btnCompleteOrder i.fa-arrow-circle-right::before { content:"\f061"; }
body #order-standard_cart .prepend-icon .field-icon { height:auto !important; }
@media (max-width:575.98px){
  /* "Already Registered?" goes above the intro line instead of squeezing it into a narrow column */
  body #order-standard_cart .already-registered > .float-right { float:none !important; margin:0 0 12px !important; padding:0 !important; }
  body #order-standard_cart .already-registered .btn { width:100%; margin:0 !important; }
}
/* phones: the old "Choose Another Category" / "Actions" dropdowns above every cart page are gone.
   The store tabs and the header's Store menu cover the same links. */
@media (max-width:991.98px){ body #order-standard_cart .sidebar-collapsed { display:none !important; } }
body #order-standard_cart #paymentGatewaysContainer > p.small.text-muted, body #order-standard_cart #paymentGatewaysContainer p.text-muted { text-align:center; }

/* v3.7: phones/tablets - logo row keeps its spacing when the menu opens.
   The navbar centred the row vertically, so once the open menu made it tall the logo jumped to the top edge. */
@media (max-width:1199.98px){
  #header .dm-navbar { align-items:flex-start; padding:0; }
  #header .dm-navbar > .container { min-height:73px; padding-top:15px !important; padding-bottom:15px !important; align-items:center; align-content:flex-start; }
  #header .dm-navbar .navbar-brand { margin:0; }
}

/* v3.7: sticky footer that fits our taller header and footer.
   Nexus sized #main-body as 100vh - 326px (its own header + footer), which pushed our footer below the screen on tall windows. */
body { display:flex; flex-direction:column; min-height:100vh; }
body > * { flex-shrink:0; }
body > section#main-body { flex:1 0 auto; min-height:0 !important; }

/* v3.7: Yes/No switches (marketing opt-in at checkout and in Account Details).
   The plugin's sliding strip rounds to odd pixels at browser zoom, so the knob drifted and the next part peeked in.
   We hide its strip and draw the switch ourselves: a 60x30 pill, a 24px knob 3px from each edge, and the Yes/No text.
   The plugin's label still covers the whole switch, so clicking and keyboard focus work as before. */
body .bootstrap-switch {
  position:relative; display:inline-block; box-sizing:border-box !important;
  width:60px !important; height:30px; min-width:0 !important; padding:0; overflow:hidden; vertical-align:middle;
  border:0 !important; border-radius:15px !important; background:#c3cfdc; box-shadow:none; cursor:pointer;
  transition:background-color .2s ease;
}
body .bootstrap-switch.bootstrap-switch-on { background:var(--dm-blue); }
body .bootstrap-switch.bootstrap-switch-focused { box-shadow:0 0 0 3px rgb(6 111 209 / .25); }
body .bootstrap-switch.bootstrap-switch-disabled,
body .bootstrap-switch.bootstrap-switch-readonly { opacity:.55; cursor:default; }
/* the plugin's strip: kept for clicks, made invisible, pinned in place */
body .bootstrap-switch .bootstrap-switch-container {
  position:absolute !important; inset:0; width:100% !important; height:100%; margin:0 !important;
  display:block !important; opacity:0; transform:none !important; transition:none !important;
}
body .bootstrap-switch .bootstrap-switch-handle-on,
body .bootstrap-switch .bootstrap-switch-handle-off { display:none !important; }
body .bootstrap-switch .bootstrap-switch-label { position:absolute !important; inset:0; display:block !important; width:100% !important; height:100% !important; padding:0 !important; margin:0; }
body .bootstrap-switch .bootstrap-switch-container > input { position:absolute !important; opacity:0; width:1px; height:1px; pointer-events:none; }
/* knob */
body .bootstrap-switch::before {
  content:""; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%;
  background:#fff; box-shadow:0 1px 3px rgb(10 40 90 / .3); transition:left .2s ease; pointer-events:none; z-index:1;
}
body .bootstrap-switch.bootstrap-switch-on::before { left:33px; }
/* Yes / No text, on the side away from the knob */
body .bootstrap-switch::after {
  content:"No"; position:absolute; top:0; bottom:0; right:0; width:33px;
  display:flex; align-items:center; justify-content:center;
  font:600 12px/1 "DM Sans", sans-serif; letter-spacing:.02em; color:var(--dm-ink); pointer-events:none;
}
body .bootstrap-switch.bootstrap-switch-on::after { content:"Yes"; left:0; right:auto; color:#fff; }
@media (prefers-reduced-motion:reduce){ body .bootstrap-switch, body .bootstrap-switch::before { transition:none; } }

body .marketing-email-optin { margin-top:8px; }
body .marketing-email-optin h4 { margin-bottom:6px; font-size:18px; font-weight:600; }
body .marketing-email-optin p { color:var(--dm-ink-2); font-size:15px; }
/* knob: even shadow all round (the 1px drop shadow made it look low), and keep the switch on whole pixels */
body .bootstrap-switch::before { box-shadow:0 0 0 .5px rgb(10 40 90 / .18), 0 0 3px rgb(10 40 90 / .22); }
body .marketing-email-optin .bootstrap-switch { display:block; vertical-align:top; transform:translateZ(0); }
body .bootstrap-switch::after { line-height:30px; display:block; text-align:center; }

/* dashboard: My Licenses card */
.dm-licenses .dm-lic-table th { padding: 10px 22px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--dm-ink-3); background: var(--dm-surface-2); border-top: 1px solid var(--dm-line); border-bottom: 1px solid var(--dm-line); }
.dm-licenses .dm-lic-table td { padding: 14px 22px; vertical-align: middle; border-top: 0; border-bottom: 1px solid var(--dm-line); font-size: 14px; }
.dm-licenses .dm-lic-table tr:last-child td { border-bottom: 0; }
.dm-licenses .dm-lic-table td > div { margin-top: 4px; }
.dm-licenses .dm-lic-table .label { margin-left: 6px; vertical-align: middle; }
.dm-licenses form { margin: 0; }

/* v3.9: let the page grow with its content. The theme fixes html/body to the window height, so on long pages the
   footer hung outside the page box (hidden in Chrome, visible as a gap or cut-off footer in other browsers). */
html { height: auto; }
body { height: auto !important; min-height: 100vh; }

/* ---------- accessibility (audit, November 2026) ---------- */
/* small blue text on light-blue backgrounds uses the darker brand blue, so it reads at 4.5:1 or better */
.dmcp-plan--standard .dmcp-eyebrow, .dmcp-tag, .dmcp-table thead th em, .dm-billing button small,
.badge-info, .badge-primary, .kb-category .badge, .card .card-body .badge-info,
.sidebar .card-sidebar .list-group-item.active, .sidebar .list-group-item.active, .cart-sidebar .list-group-item.active { color: var(--dm-blue-hover); }
.dm-billing button.is-on small, .dm-billing button.is-hover small { color: #fff; }
.sidebar .list-group-item.active .badge, .cart-sidebar .list-group-item.active .badge { color: #fff; }
/* links inside sentences are underlined, so they don't rely on colour alone */
#main-body p a:not(.btn), .dmcp-small a, .dm-contact-note a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* "Skip to content" link: hidden until it gets keyboard focus */
.dm-skip:focus { position: fixed; top: 12px; left: 12px; z-index: 2000; width: auto; height: auto; padding: 10px 16px; clip: auto; border-radius: 8px; background: #fff; color: var(--dm-blue); font-weight: 600; box-shadow: 0 4px 16px rgb(10 42 82 / .2); }
#main-body:focus { outline: 0; }

/* small grey notes (WHMCS default #999) use the site's readable grey */
#main-body p.small { color: var(--dm-ink-3) !important; }
/* keyboard focus is always visible on buttons, including the header and plan buttons */
.btn:focus-visible, a.btn:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--dm-blue) !important; outline-offset: 2px; }

/* v3.8: header sizing matched to dealer.ms and DealerThemes.com (Nov 19, 2026)
   Desktop (menu open in the bar, 1200+): 80px row, 44px logo = 18px above and below.
   Tablet (768-1199): 72px row, 44px logo.  Phones (767 and below): 72px row, 36px logo = 18px above and below.
   Overrides the earlier 73px row and 38px small-screen logo. */
#header .dm-navbar { min-height: 80px; }
#header .navbar-brand .logo-img { height: 44px; width: auto; }
@media (max-width: 1199.98px) {
    #header .dm-navbar { min-height: 0; }
    #header .dm-navbar > .container { min-height: 72px; padding-top: 14px !important; padding-bottom: 14px !important; }
    #header .navbar-brand .logo-img { height: 44px; }
}
@media (max-width: 767.98px) {
    #header .dm-navbar > .container { padding-top: 15px !important; padding-bottom: 15px !important; }
    #header .navbar-brand .logo-img { height: 36px; }
}
@media (max-width: 374px) { #header .navbar-brand .logo-img { height: 32px; } }
@media (max-width: 359px) { #header .navbar-brand .logo-img { height: 30px; } }

/* v3.9: sticky header, same as dealer.ms (Nov 19, 2026)
   The whole header sticks; when the admin/notifications topbar is shown (logged in), the script in
   includes/head.tpl sets --dm-topbar-h so the topbar scrolls away and only the logo row stays pinned. */
#header { position: sticky; top: calc(-1 * var(--dm-topbar-h, 0px)); z-index: 1030; }
/* links to a section, the skip link and focused form fields land below the header, not under it */
html { scroll-padding-top: 100px; }
@media (max-width: 1199.98px) {
    html { scroll-padding-top: 88px; }
    /* the open phone/tablet menu scrolls inside the header so its bottom links can always be reached */
    #header .navbar-collapse.show,
    #header .navbar-collapse.collapsing {
        max-height: calc(100vh - 73px);
        max-height: calc(100dvh - 73px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}
/* shadow under the header once the page has scrolled 8px, none at the top (same as dealer.ms and DealerThemes.com) */
#header { transition: box-shadow .2s; }
#header.dm-scrolled { box-shadow: 0 8px 24px -14px rgb(10 42 82 / .35); }

/* *****************************************************
   v4.0: phone and tablet menu, the same design as dealer.ms (Nov 19, 2026)
   Measured from the live dealer.ms header at 375px and 820px:
   - bar: the blue button (and on tablets the outline one) next to the menu button
   - menu button: 42px tile (38px on phones), hamburger that turns into an X, dark when open
   - menu: a full-height white panel under the header, 60px rows in 18px/500,
     36px round chevron that turns blue and flips when a group is open,
     links in 16px/500 with a thin line on the left, "All ..." links in blue,
     the two buttons pinned at the bottom
   The script in includes/head.tpl keeps the panel under the header and stops the page scrolling behind it.
***************************************************** */
@media (min-width: 1200px) { #header .dm-m-all { display: none; } }

@media (max-width: 1199.98px) {
    /* ---------- bar ---------- */
    #header .dm-navbar-tools { gap: 10px; margin-left: auto; }
    #header .dm-bar-btn {
        display: inline-flex; align-items: center; justify-content: center;
        height: 42px; padding: 0 22px; border-radius: var(--dm-r);
        font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
    }
    #header .dm-bar-btn.btn-primary { color: #fff; box-shadow: 0 6px 14px -8px rgb(6 111 209 / .8); }
    #header .dm-bar-btn.btn-outline-secondary { border-color: var(--dm-ink); color: var(--dm-ink); background: #fff; }
    #header .dm-bar-btn.btn-outline-secondary:hover,
    #header .dm-bar-btn.btn-outline-secondary:focus { background: var(--dm-ink); border-color: var(--dm-ink); color: #fff; }

    /* ---------- menu button ---------- */
    #header .dm-toggle {
        width: 42px; height: 42px; padding: 0; margin: 0;
        border: 1px solid var(--dm-line); border-radius: var(--dm-r);
        background: #fff; color: var(--dm-ink);
        transition: background-color .15s, border-color .15s, color .15s;
    }
    #header .dm-toggle:hover,
    #header .dm-toggle:focus-visible { background: var(--dm-blue-tint); border-color: var(--dm-blue); color: var(--dm-ink); }
    #header .dm-toggle[aria-expanded="true"] { background: var(--dm-ink); border-color: var(--dm-ink); color: #fff; }
    #header .dm-toggle svg { display: block; width: 22px; height: 22px; }
    #header .dm-toggle .dm-toggle-close,
    #header .dm-toggle[aria-expanded="true"] .dm-toggle-open { display: none; }
    #header .dm-toggle[aria-expanded="true"] .dm-toggle-close { display: block; }

    /* ---------- the panel ---------- */
    #header #mainNavbar.show,
    #header #mainNavbar.collapsing {
        position: fixed;
        top: var(--dm-header-h, 73px);
        left: 0; right: 0; bottom: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        height: auto !important;
        max-height: none;
        margin: 0;
        padding: 8px 20px max(24px, env(safe-area-inset-bottom));
        border-top: 0;
        background: #fff;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transition: none !important;
        animation: dm-menu-in .22s cubic-bezier(.2, .7, .2, 1) both;
    }
    @keyframes dm-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
    html.dm-menu-open, html.dm-menu-open body { overflow: hidden; }

    #header #mainNavbar .navbar-nav { flex-direction: column; flex-wrap: nowrap; gap: 0; width: 100%; margin: 0 !important; padding: 0; }
    #header #mainNavbar > .navbar-nav:last-child { flex: 1 0 auto; }

    /* ---------- top-level rows ---------- */
    #header #mainNavbar .navbar-nav > li { width: 100%; border-bottom: 1px solid var(--dm-line); }
    #header #mainNavbar .navbar-nav > li > a {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        min-height: 60px; padding: 0;
        font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em;
        color: var(--dm-ink); text-align: left;
        -webkit-tap-highlight-color: transparent;
    }
    #header #mainNavbar .navbar-nav > li > a::before { display: none; }
    #header #mainNavbar .navbar-nav > li.show > a { color: var(--dm-blue); }
    /* round chevron, blue and flipped while its group is open */
    #header #mainNavbar .navbar-nav > li > .dropdown-toggle::after {
        content: "" !important;
        flex: none;
        width: 36px; height: 36px; margin: 0; border: 0; border-radius: 50%;
        background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23262f38' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
        font-size: 0; vertical-align: middle;
        transition: background-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1);
    }
    #header #mainNavbar .navbar-nav > li.show > .dropdown-toggle::after {
        background-color: var(--dm-blue);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        transform: rotate(180deg);
    }
    #header #mainNavbar .navbar-nav > li > .dropdown-toggle:active::after { transform: scale(.94); }
    #header #mainNavbar .navbar-nav > li.show > .dropdown-toggle:active::after { transform: rotate(180deg) scale(.94); }

    /* ---------- open group: stacked link lists ---------- */
    #header #mainNavbar .dropdown-menu {
        position: static; float: none; width: auto; min-width: 0;
        margin: 0; padding: 0 0 14px; transform: none;
        background: transparent; border: 0; border-radius: 0; box-shadow: none;
    }
    #header #mainNavbar .dropdown-menu.show { animation: dm-group-in .25s cubic-bezier(.2, .7, .2, 1) both; }
    @keyframes dm-group-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
    #header #mainNavbar .dropdown-menu::before { display: none; }
    #header #mainNavbar .dm-mega-panel { width: auto; transform: none; }
    #header #mainNavbar .dm-mega-cols { display: block; padding: 0; }
    #header #mainNavbar .dm-mega-h {
        margin: 18px 0 6px;
        font-size: 11.5px; font-weight: 700; line-height: 1; letter-spacing: .1em; text-transform: uppercase;
        color: var(--dm-ink-3);
    }
    #header #mainNavbar .dm-mega-col a,
    #header #mainNavbar .dropdown-menu a.dropdown-item {
        display: flex; align-items: center; gap: 8px;
        min-height: 46px; margin: 0; padding: 0 0 0 12px !important;
        border-left: 2px solid var(--dm-line); border-radius: 0; background: transparent;
        font-size: 16px; font-weight: 500; line-height: 1.3; white-space: normal;
        color: #5a6a85;
        transition: border-color .15s, padding-left .15s, color .15s;
    }
    #header #mainNavbar .dm-mega-col a:hover,
    #header #mainNavbar .dropdown-menu a.dropdown-item:hover,
    #header #mainNavbar .dm-mega-col a:active,
    #header #mainNavbar .dropdown-menu a.dropdown-item:active { border-left-color: var(--dm-blue); color: var(--dm-blue); background: transparent; }
    #header #mainNavbar .dm-mega-col a:active,
    #header #mainNavbar .dropdown-menu a.dropdown-item:active { padding-left: 16px !important; }
    #header #mainNavbar .dropdown-menu li.dropdown-item { padding: 0 !important; margin: 0; background: transparent; }
    #header #mainNavbar .dropdown-menu li.dropdown-item:hover { background: transparent; }
    #header #mainNavbar .dropdown-divider { height: 0; margin: 10px 0; border: 0; }
    #header #mainNavbar .dropdown-menu > li:first-child > a.dropdown-item { margin-top: 4px; }
    #header .dm-m-all {
        display: flex; align-items: center; gap: 8px;
        min-height: 44px; margin: 4px 0 2px;
        font-size: 15px; font-weight: 600; color: var(--dm-blue);
    }
    #header .dm-m-all::after { content: "\2192"; }
    #header .dm-m-all:hover { color: var(--dm-blue-hover); }

    /* ---------- the two buttons, pinned at the bottom ---------- */
    #header #mainNavbar .navbar-nav > li.dm-actions {
        display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
        margin: auto 0 0; padding-top: 20px; border-bottom: 0;
    }
    #header #mainNavbar .dm-actions .btn {
        display: flex; align-items: center; justify-content: center;
        width: 100%; height: 48px; min-height: 0; padding: 0 16px; border-radius: var(--dm-r);
        font-size: 15px; line-height: 1; letter-spacing: normal;
    }
    #header #mainNavbar .dm-actions .btn-outline-secondary { font-weight: 500; border: 1px solid var(--dm-ink); background: #fff; color: var(--dm-ink); }
    #header #mainNavbar .dm-actions .btn-outline-secondary:hover,
    #header #mainNavbar .dm-actions .btn-outline-secondary:focus { background: var(--dm-ink); color: #fff; }
    #header #mainNavbar .dm-actions .btn-primary { font-weight: 600; color: #fff; box-shadow: 0 6px 14px -8px rgb(6 111 209 / .8); }
}

@media (max-width: 767.98px) {
    #header .dm-navbar-tools { gap: 8px; }
    #header .dm-bar-btn { height: 38px; padding: 0 14px; font-size: 14px; }
    #header .dm-bar-btn--alt { display: none; }
    #header .dm-toggle { width: 38px; height: 38px; }
    #header #mainNavbar.show,
    #header #mainNavbar.collapsing { padding: 4px 16px max(20px, env(safe-area-inset-bottom)); }
    #header #mainNavbar .navbar-nav > li.dm-actions { grid-template-columns: 1fr; }
}
/* narrow phones with something in the cart: the cart icon takes the blue button's place so the bar still fits */
@media (max-width: 419.98px) { #header .dm-has-cart .dm-bar-btn { display: none; } }

/* v4.1: narrowest phones (and phone-width windows with a scrollbar): the logo row never wraps.
   The open menu is a fixed panel, so the row can stay on one line; the logo shrinks a little
   (keeping its shape) instead of pushing the buttons onto a second line, the same as dealer.ms. */
@media (max-width: 1199.98px) {
    #header .dm-navbar > .container { flex-wrap: nowrap; }
    #header .dm-navbar .navbar-brand { flex: 0 1 auto; min-width: 0; }
    #header .navbar-brand .logo-img { max-width: 100%; object-fit: contain; object-position: left center; }
    #header .dm-navbar-tools { flex: none; }
}
