/* Web Host Pro: shared Lagom dark surfaces, fields, and cart refinements. */
html.lagom-dark-mode body.lagom {
    --ui-block-bg: #253b45;
    --ui-block-bg-form: #253b45;
    --panel-bg: #253b45;
    --panel-footer-bg: #253b45;
    --input-bg: #e6ecee;
    --input-hover-bg: #e6ecee;
    --input-focus-bg: #e6ecee;
    --primary-block-input-bg: #e6ecee;
    --secondary-block-input-bg: #e6ecee;
    --input-color-placeholder: #666;
    --input-hover-placeholder-color: #666;
    --input-focus-placeholder-color: #666;
    --input-group-addon-bg: #e6ecee;
    --input-group-addon-color: #242424;
}
html.lagom-dark-mode body.lagom.page-order :is(.panel, .panel-heading, .panel-body, .panel-footer, .panel-form, .panel-summary, .panel-switch, [data-promotion-box-add]) {
    background: #253b45 !important;
}
/* The configuration details belong to the surrounding cart card. */
body.lagom.page-order .panel-cart .cart-item-config {
    background: transparent !important;
}
/* Cover native fields and Lagom's enhanced select/phone controls. */
html.lagom-dark-mode body.lagom :is(.form-control, textarea, select, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], .selectize-input, .selectize-dropdown, .select2-selection, .select2-dropdown, .bootstrap-select > .dropdown-toggle, .input-group-addon, .selected-flag, .panel-cart .dropdown-toggle) {
    --input-color: #242424;
    --input-hover-color: #242424;
    --input-focus-color: #242424;
    background-color: #e6ecee !important;
    color: #242424 !important;
    color-scheme: light;
}
html.lagom-dark-mode body.lagom :is(input, textarea)::placeholder {
    color: #666 !important;
    opacity: 1;
}
html.lagom-dark-mode body.lagom :is(.selectize-input input, .select2-selection__rendered) {
    color: #242424 !important;
}

/* Keep inset form surfaces inside the cart cards' rounded corners. */
body.lagom .panel-form {
    border-radius: var(--panel-summary-border-radius, 12px);
}
body.lagom .panel-form > .panel-body:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
body.lagom .panel-form > .panel-body:last-child {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}
/* Visible unchecked, checked and disabled controls on the dark cart surface. */
html.lagom-dark-mode body.lagom {
    --icheck-bg: #e6ecee;
    --icheck-border-width: 2px;
    --icheck-border: 2px solid #e6ecee;
    --icheck-hover-border-color: #fa8705;
    --icheck-active-bg: #fa8705;
    --icheck-active-border-color: #fa8705;
    --icheck-active-icon-color: #242424;
    --icheck-disabled-bg: #91a0a6;
    --icheck-disabled-border-color: #91a0a6;
}
html.lagom-dark-mode body.lagom :is(.iradio_square-blue, .radio-styled).checked::before {
    background: #242424;
}
html.lagom-dark-mode body.lagom :is(.checkbox-styled, .radio-styled, .icheckbox_square-blue, .iradio_square-blue):focus-visible,
html.lagom-dark-mode body.lagom :is(.checkbox-styled, .radio-styled, .icheckbox_square-blue, .iradio_square-blue):has(input:focus-visible),
html.lagom-dark-mode body.lagom [data-virtual-input]:focus-visible {
    outline: 2px solid #fa8705;
    outline-offset: 3px;
}

/* Keep configuration options on the summary card's own surface. */
html.lagom-dark-mode body.lagom .panel-summary-configuration .summary-list-configoptions {
    background: transparent !important;
}

/* Inset the cart's sidebar navigation within its colored cards. */
body.lagom.page-order .panel-sidebar:is([menuitemname="Categories"], [menuitemname="Actions"]) {
    padding: 16px;
}
body.lagom.page-order .panel-sidebar:is([menuitemname="Categories"], [menuitemname="Actions"]) > .panel-heading {
    padding: 8px 16px 16px;
}
body.lagom.page-order .panel-sidebar:is([menuitemname="Categories"], [menuitemname="Actions"]) > .list-group {
    margin: 0;
    padding: 0;
}
body.lagom.page-order .panel-sidebar:is([menuitemname="Categories"], [menuitemname="Actions"]) > .list-group > .list-group-item {
    padding: 12px 16px;
}

/* Product plan cards share the cart's dark surface. */
html.lagom-dark-mode body.lagom .package {
    --package-bg: #253b45;
    background: #253b45 !important;
}
/* Use one dark divider color throughout cart and configuration sections. */
body.lagom.page-order {
    --ui-block-divider-color: #4f7181;
    --ui-block-divider-border: 1px solid #4f7181;
    --ui-block-secondary-divider-border-color: #4f7181;
    --panel-border-divider-color: #4f7181;
    --list-group-item-border-color: #4f7181;
    --table-border-color: #4f7181;
    --hr-border-color: #4f7181;
    --dropdown-divider-bg: #4f7181;
    --primary-block-divider-color: #4f7181;
    --secondary-block-divider-color: #4f7181;
}
body.lagom.page-order .panel-summary .panel-footer::after {
    background-color: #4f7181 !important;
}

/* Selectize owns the layout of its input; avoid nested full-size form fields. */
html.lagom-dark-mode body.lagom .selectize-control.form-control {
    height: auto;
    padding: 0;
    background: transparent !important;
    border: 0;
}
html.lagom-dark-mode body.lagom .selectize-control .selectize-input.items {
    gap: 4px;
    padding: 8px 32px 8px 12px;
    min-height: var(--ui-height-base);
}
html.lagom-dark-mode body.lagom .selectize-control .selectize-input.items > div {
    margin: 0;
}
html.lagom-dark-mode body.lagom .selectize-control .selectize-input.items > input[type="text"] {
    height: 22px !important;
    min-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 22px;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}
html.lagom-dark-mode body.lagom .selectize-control:focus-within .selectize-input {
    outline: 2px solid #fa8705;
    outline-offset: 2px;
}
html.lagom-dark-mode body.lagom .selectize-control .selectize-dropdown {
    background: transparent !important;
}
html.lagom-dark-mode body.lagom .selectize-control .selectize-dropdown-content {
    background: #e6ecee !important;
    color: #242424;
}
html.lagom-dark-mode body.lagom .selectize-control .selectize-dropdown .option {
    color: #242424;
}
html.lagom-dark-mode body.lagom .selectize-control .selectize-dropdown .option:is(.active, .selected, :hover) {
    background: #d3dfe4;
    color: #242424;
}
/* Domain extension price tables and featured extensions match other cart cards. */
html.lagom-dark-mode body.lagom .domain-pricing :is(.featured-tld, .tld-table),
html.lagom-dark-mode body.lagom .domain-pricing .tld-table :is(table, thead, tbody, tr, th, td) {
    background: #253b45 !important;
}

/* Compact login branding, centered between the page top and login card. */
body.lagom.page-login.page-login-default .main-body:not(.main-body-has-sidebar) {
    display: block;
    padding-top: 0;
    padding-bottom: 32px;
}
body.lagom.page-login.page-login-default .main-body:not(.main-body-has-sidebar) > .container {
    justify-content: flex-start;
}
body.lagom.page-login.page-login-default .login-header {
    padding: 24px 0;
    margin-bottom: 0;
}
body.lagom.page-login.page-login-default .login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
}
body.lagom.page-login.page-login-default .login-header .logo > img {
    width: 260px !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 64px !important;
    object-fit: contain;
}

/* Shared neutral cards throughout the account manager, preserving status colors. */
html.lagom-dark-mode body.lagom {
    --panel-default-bg: #253b45;
    --panel-default-heading-bg: #253b45;
    --panel-hover-bg: #253b45;
    --panel-active-bg: #253b45;
    --login-bg: #253b45;
    --list-group-bg: #253b45;
    --list-group-item-disabled-bg: #253b45;
    --panel-sidebar-list-group-bg: #253b45;
    --panel-home-domain-bg: #253b45;
    --table-container-bg: #253b45;
    --table-container-header-bg: #253b45;
    --table-container-pagination-bg: #253b45;
    --tile-bg: #253b45;
    --tile-bg-color: #253b45;
    --tile-hover-bg: #253b45;
    --feature-boxed-bg: #253b45;
    --well-bg: #253b45;
    --modal-content-bg: #253b45;
}
html.lagom-dark-mode body.lagom .search-box:has(#inputKnowledgebaseSearch) {
    background: #253b45 !important;
}
/* Sidebar navigation cards need an inset heading and aligned link rows. */
body.lagom .panel-sidebar:not(.panel-summary):not(.panel-client-details) {
    padding: 16px;
}
body.lagom .panel-sidebar:not(.panel-summary):not(.panel-client-details) > .panel-heading {
    padding: 8px 16px 16px;
}
body.lagom .panel-sidebar:not(.panel-summary):not(.panel-client-details) > .list-group {
    margin: 0;
    padding: 0;
}
body.lagom .panel-sidebar:not(.panel-summary):not(.panel-client-details) > .list-group > .list-group-item {
    padding: 12px 16px;
}
/* Clip the pricing table's cells to the rounded outside card corners. */
body.lagom .domain-pricing .tld-table {
    border-radius: var(--panel-summary-border-radius, 12px);
    overflow: hidden;
}

/* Round the first and last announcement rows with their containing card. */
body.lagom .announcements-list {
    border-radius: var(--panel-summary-border-radius, 12px);
}
body.lagom .announcements-list > .list-group-item:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
body.lagom .announcements-list > .list-group-item:last-child {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}
/* Give primary and neutral actions one clearly visible button treatment. */
body.lagom :is(.btn-default, .btn-primary, .btn-primary-faded, .btn-secondary, .btn-light):not(.btn-link):not(.btn-outline):not(:disabled):not(.disabled) {
    background: #fa8705 !important;
    border-color: #fa8705 !important;
    color: #242424 !important;
}
body.lagom :is(.btn-default, .btn-primary, .btn-primary-faded, .btn-secondary, .btn-light):not(.btn-link):not(.btn-outline):not(:disabled):not(.disabled):is(:hover, :focus-visible) {
    background: #ffab3d !important;
    border-color: #ffab3d !important;
    color: #242424 !important;
}
body.lagom :is(.btn-default, .btn-primary, .btn-primary-faded, .btn-secondary, .btn-light):not(.btn-link):not(.btn-outline):not(:disabled):not(.disabled):active {
    background: #d97403 !important;
    border-color: #d97403 !important;
}
body.lagom :is(.btn-default, .btn-primary, .btn-primary-faded, .btn-secondary, .btn-light):not(.btn-link):not(.btn-outline):focus-visible {
    outline: 2px solid #ffab3d !important;
    outline-offset: 3px;
}

/* One outer radius for client-area cards, including grouped checkout panels. */
body.lagom {
    --whp-card-radius: 12px;
    --panel-border-radius: var(--whp-card-radius);
    --panel-summary-border-radius: var(--whp-card-radius);
    --login-border-radius: var(--whp-card-radius);
    --list-group-border-radius: var(--whp-card-radius);
    --table-container-border-radius: var(--whp-card-radius);
    --tile-border-radius: var(--whp-card-radius);
    --package-border-radius: var(--whp-card-radius);
    --feature-boxed-border-radius: var(--whp-card-radius);
    --modal-content-border-radius: var(--whp-card-radius);
}
body.lagom :is(.panel-form, .panel-switch, [data-promotion-box-add], .well) {
    border-radius: var(--whp-card-radius);
}
body.lagom :is(.panel, .panel-form) > :is(.panel-heading, .panel-body, .panel-tabs):first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
body.lagom :is(.panel, .panel-form) > :is(.panel-body, .panel-footer, .panel-collapse):last-child,
body.lagom .panel-collapse > .panel-body:last-child {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}
body.lagom .panel-group-condensed > .panel:first-child {
    border-top-left-radius: var(--whp-card-radius);
    border-top-right-radius: var(--whp-card-radius);
}
body.lagom .panel-group-condensed > .panel:last-child {
    border-bottom-left-radius: var(--whp-card-radius);
    border-bottom-right-radius: var(--whp-card-radius);
}
body.lagom .panel > .panel-heading:only-child {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}
body.lagom .panel-form > .cc-input-container {
    border-radius: inherit;
}
body.lagom .cc-input-container > .panel-body {
    border-radius: inherit;
}
body.lagom .cc-input-container > .panel-tabs ~ .panel-body {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
body.lagom .panel-cart > .panel-footer {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
@media (max-width: 767px) {
    body.lagom .panel-cart > .panel-body,
    body.lagom .panel-cart > .panel-body > .cart-item:first-child {
        border-top-left-radius: var(--whp-card-radius);
        border-top-right-radius: var(--whp-card-radius);
    }
}

/* Inset card separators without moving content or clipping controls. */
body.lagom {
    --whp-divider-inset: var(--ui-block-padding-base, 24px);
    --whp-card-divider: #4f7181;
}
html body.lagom :is(.panel-default > .panel-heading, .panel-cart > .cart-heading, .panel-cart .cart-item:not(:last-child), .panel .list-group-item:not(:last-child), .announcements-list > .list-group-item:not(:last-of-type)) {
    border-bottom-color: transparent !important;
    background-image: linear-gradient(var(--whp-card-divider), var(--whp-card-divider)) !important;
    background-size: calc(100% - var(--whp-divider-inset) - var(--whp-divider-inset)) 1px !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
}
html body.lagom :is(.panel:not(.panel-sidebar):not(.panel-summary) > .panel-footer, .panel-group-condensed > .panel + .panel) {
    border-top-color: transparent !important;
    background-image: linear-gradient(var(--whp-card-divider), var(--whp-card-divider)) !important;
    background-size: calc(100% - var(--whp-divider-inset) - var(--whp-divider-inset)) 1px !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}
/* Child surfaces must leave the grouped panel's inset separator visible. */
body.lagom .panel-group-condensed > .panel + .panel {
    background-origin: border-box !important;
}

/* A collapsed final option leaves its heading as the visible card bottom. */
body.lagom .panel-group-condensed > .panel:last-child:has(> .panel-collapse.collapse:not(.show)) > .panel-heading {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

/* Registration extensions use the same readable colors as other fields. */
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .tld-select {
    background-color: #e6ecee;
    color: #242424;
}
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .tld-select [data-dropdown-select-value-view] {
    color: #242424;
}
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .tld-select .caret {
    color: #242424;
    border-top-color: #242424;
}

/* Restore the custom contact layout in the current client-area palette. */
body.lagom .whp-contact-layout {
    background: #263640;
    border: 0;
    border-radius: var(--whp-card-radius);
    box-shadow: none;
}
body.lagom .whp-contact-form {
    min-width: 0;
    background: #253b45;
    border: 0;
    border-radius: var(--whp-card-radius);
    box-shadow: none;
}
body.lagom .whp-contact-info {
    min-width: 0;
}
body.lagom .whp-contact-layout :is(h1, h2, h3, label) {
    color: #fff;
}
body.lagom .whp-contact-layout :is(.whp-contact-lead, .whp-contact-option p, .whp-contact-trust, .whp-contact-form-heading p) {
    color: #b8cbd3;
}
body.lagom .whp-contact-option {
    border-top-color: #4f7181;
}
body.lagom .whp-contact-option a:focus-visible {
    outline: 2px solid #ffab3d;
    outline-offset: 4px;
}
body.lagom .whp-contact-form .form-actions {
    margin-bottom: 0;
}
@media (max-width: 600px) {
    body.lagom .whp-contact-layout {
        width: 100%;
        margin: 0 auto 32px;
        padding: 24px 16px;
        gap: 24px;
    }
    body.lagom .whp-contact-form {
        padding: 24px 16px;
    }
}

/* Keep extension search inside the dropdown, including its focus indicator. */
body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search {
    max-height: none;
}
body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search .dropdown-header {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 8px;
}
body.lagom :is(#domainregister, #domaintransfer) .dropdown-header .input-group-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 4;
    pointer-events: none;
}
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search {
    background: #253b45;
}
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .dropdown-header .form-control {
    width: 100%;
    min-width: 0;
    padding-left: 38px;
    border-radius: var(--input-border-radius, 6px);
    background: #e6ecee !important;
    color: #242424;
}
body.lagom :is(#domainregister, #domaintransfer) .dropdown-header .form-control:focus {
    outline: 2px solid #fa8705;
    outline-offset: -2px;
    box-shadow: none;
}

/* Separate the floating extension picker from the card behind it. */
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search {
    background: #294653 !important;
    --dropdown-bg: #294653;
    --dropdown-link-hover-bg: #355665;
    border-radius: 12px;
}
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search .dropdown-menu-items {
    background: #294653;
}

/* Compact extension menu with clearance above the domain controls. */
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search {
    background: #353738 !important;
    --dropdown-bg: #353738;
}
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search :is(.dropdown-header, .dropdown-menu-items) {
    background: #353738;
}
body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search .dropdown-menu-items {
    max-height: 180px;
}
body.lagom :is(#domainregister, #domaintransfer) .dropup > .dropdown-menu-search {
    margin-bottom: 12px;
}
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search .dropdown-header .form-control {
    height: 40px;
    min-height: 40px;
    background: #353738 !important;
    color: #fff !important;
    caret-color: #fff;
}
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search .dropdown-header .form-control::placeholder {
    color: #c5cdd0 !important;
}

/* Give the domain choices more breathing room below the card's top edge. */
body.lagom #frmProductDomain .panel-domain-option {
    padding-top: 64px;
    padding-bottom: 0;
}

/* Paint extension highlights on the full row rather than its text link. */
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search .dropdown-menu-item {
    width: 100%;
    margin-inline: 0;
    border-radius: 0;
}
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search .dropdown-menu-item > a {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    border-radius: 0;
    box-sizing: border-box;
    background: transparent !important;
}
html.lagom-dark-mode body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search .dropdown-menu-item:is(:hover, :focus-within, .active) {
    background: #4b4e50;
}
body.lagom :is(#domainregister, #domaintransfer) .dropdown-menu-search .dropdown-menu-items {
    scrollbar-width: thin;
    scrollbar-color: #8b9296 #353738;
}

/* Selected product labels share the client-area card rounding. */
body.lagom .main-header-label-desc {
    border-radius: var(--whp-card-radius, 12px);
}

/* AI filters open above the search field, with room between the controls. */
body.lagom [data-domain-search-ai] > .dropdown-multi-level > .dropdown-menu {
    top: auto !important;
    bottom: calc(100% + 12px) !important;
    margin-top: 0;
    margin-bottom: 0;
}
body.lagom [data-domain-search-ai] > .dropdown-multi-level > .dropdown-menu > .dropdown > .dropdown-menu {
    top: auto !important;
    bottom: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
}

/* AI filter menus match the compact gray extension chooser. */
html.lagom-dark-mode body.lagom [data-domain-search-ai] .dropdown-multi-level .dropdown-menu {
    --dropdown-bg: #353738;
    --dropdown-link-hover-bg: #4b4e50;
    background: #353738 !important;
    border-radius: var(--whp-card-radius, 12px);
}
html.lagom-dark-mode body.lagom [data-domain-search-ai] .dropdown-multi-level .dropdown-menu :is(.dropdown-header, .dropdown-menu-items) {
    background: #353738;
}
html.lagom-dark-mode body.lagom [data-domain-search-ai] .dropdown-multi-level .dropdown-header .form-control {
    background: #353738 !important;
    color: #fff !important;
    caret-color: #fff;
}
html.lagom-dark-mode body.lagom [data-domain-search-ai] .dropdown-multi-level .dropdown-header .form-control::placeholder {
    color: #c5cdd0 !important;
}
body.lagom [data-domain-search-ai] .dropdown-multi-level .dropdown-divider {
    margin-inline: 16px;
    width: auto;
    background: #4f7181;
}
body.lagom [data-domain-search-ai] .dropdown-multi-level .dropdown-menu > :is(.dropdown-header, .dropdown-menu-items):first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
body.lagom [data-domain-search-ai] .dropdown-multi-level .dropdown-menu > .dropdown-menu-items:last-child {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

/* Leave more breathing room below the domain search controls. */
body.lagom #frmProductDomain .panel-domain-search {
    padding-top: 24px;
    padding-bottom: 104px;
}

/* Quantity pricing labels sit on a light field surface, so use dark text. */
html.lagom-dark-mode body.lagom .panel-configure-option .form-control-qty + div {
    --input-color: #242424;
    color: #242424 !important;
}
html.lagom-dark-mode body.lagom .panel-configure-option .form-control-qty + div * {
    color: inherit;
}

/* Keep the content compact while giving the outer card generous padding. */
body.lagom.page-configureproductdomain .main-body {
    padding-top: 24px;
}
body.lagom #frmProductDomain .panel-domain-option .content > label.radio:last-child {
    margin-bottom: 0;
}
@media (max-width: 767px) {
    body.lagom #frmProductDomain .panel-domain-option {
        padding-top: 48px;
    }
    body.lagom #frmProductDomain .panel-domain-search {
        padding-bottom: 88px;
    }
}

/* Space between the domain-selection card and the footer. */
body.lagom.page-configureproductdomain .main-body {
    padding-bottom: 80px;
}
@media (max-width: 767px) {
    body.lagom.page-configureproductdomain .main-body {
        padding-bottom: 64px;
    }
}

/* Registration has a full navigation header, so leave room above its card. */
body.lagom.page-login.page-clientregister .main-body:not(.main-body-has-sidebar) {
    padding-top: 48px;
    padding-bottom: 64px;
}
@media (max-width: 767px) {
    body.lagom.page-login.page-clientregister .main-body:not(.main-body-has-sidebar) {
        padding-top: 32px;
        padding-bottom: 48px;
    }
}

/* Account-home sidebar only: centered contact action and wider separators. */




/* The affiliate promotion uses the same surface as other account cards. */
html.lagom-dark-mode body.lagom.page-clientareahome .panel-affilaite-program {
    --panel-info-bg: #253b45;
    --panel-info-heading-bg: #253b45;
    --panel-footer-bg: #253b45;
    background: #253b45;
}
html.lagom-dark-mode body.lagom.page-clientareahome .panel-affilaite-program > :is(.panel-heading, .panel-body, .panel-footer) {
    background-color: #253b45;
}

/* Finish shared account card surfaces without changing alert/status colors. */
html.lagom-dark-mode body.lagom {
    --ui-block-border-radius: var(--whp-card-radius, 12px);
    --ui-block-border-radius-lg: var(--whp-card-radius, 12px);
    --product-details-bg: #253b45;
    --site-banner-tile-bg: #253b45;
    --table-container-table-bg-filter: #253b45;
    --table-container-table-bg-pagination: #253b45;
}
body.lagom .kbarticles .list-group,
body.lagom .kb-categories .list-group--boxes .list-group-item {
    border-radius: var(--whp-card-radius, 12px);
}
/* Navigation separators use the same inset treatment as card dividers. */
body.lagom .app-nav-menu .dropdown-menu :is(.nav-divider, .divider, .dropdown-divider) {
    margin-inline: 16px !important;
    width: auto;
}

/* Affiliate copy uses neutral account-card text rather than info blue. */
html.lagom-dark-mode body.lagom.page-clientareahome .panel-affilaite-program {
    --panel-info-text: var(--text-heading-color);
    color: inherit;
}
html.lagom-dark-mode body.lagom.page-clientareahome .panel-affilaite-program > .panel-heading,
html.lagom-dark-mode body.lagom.page-clientareahome .panel-affilaite-program > .panel-heading > .panel-title {
    color: var(--text-heading-color);
}

/* Focus the whole domain-search field, without a seam beside the globe icon. */
body.lagom.page-clientareadomains .main-sidebar .panel-register .input-group > .form-control {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}
body.lagom.page-clientareadomains .main-sidebar .panel-register .input-group:focus-within {
    border-color: #fa8705;
    outline: 2px solid #fa8705;
    outline-offset: 2px;
}
/* Match the wider account-home sidebar separators on the Domains page. */



/* Wider inset separators throughout the client-area sidebars. */
body.lagom :is(.main-sidebar, .sidebar) .panel-sidebar {
    --whp-divider-inset: 12px;
}
body.lagom :is(.main-sidebar, .sidebar) .panel-sidebar > .panel-footer::after {
    left: 12px;
    right: 12px;
    width: auto;
}

/* Sidebar domain search matches the other neutral account cards. */
html.lagom-dark-mode body.lagom :is(.main-sidebar, .sidebar) .panel-sidebar.panel-register {
    background: #253b45 !important;
    border-radius: var(--whp-card-radius, 12px);
}
html.lagom-dark-mode body.lagom :is(.main-sidebar, .sidebar) .panel-register > :is(.panel-heading, .panel-body, .panel-footer) {
    background: transparent;
    color: var(--text-heading-color);
}
html.lagom-dark-mode body.lagom :is(.main-sidebar, .sidebar) .panel-register .input-group {
    background: #e6ecee;
    color: #242424;
}

/* Navigation separators share the card-divider color on desktop and mobile. */
body.lagom .app-nav-menu .dropdown-menu {
    --dropdown-divider-bg: #4f7181;
}
body.lagom .app-nav-menu .dropdown-menu :is(.nav-divider, .divider) {
    border-top-color: #4f7181;
}
body.lagom .app-nav-menu .dropdown-menu .dropdown-divider,
body.lagom .app-nav-menu .dropdown-menu .nav-divider::before {
    background-color: #4f7181;
}

/* Consistent client-area dropdown surfaces, including account and Store menus. */
html.lagom-dark-mode body.lagom .dropdown-menu {
    --dropdown-bg: #353738;
    --dropdown-link-color: #d9d9d9;
    --dropdown-link-hover-color: #fff;
    --dropdown-link-hover-bg: #4b4e50;
    --mob-dropdown-nav-list-bg: #353738;
    background-color: #353738 !important;
    border-radius: var(--whp-card-radius, 12px) !important;
}
@media (min-width: 992px) {
    body.lagom.lagom-layout-top .app-nav-menu .menu > li.dropdown-mega .whp-store-two-columns {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    body.lagom.lagom-layout-top .app-nav-menu .menu > li.dropdown-mega .whp-store-two-columns > .dropdown-menu-parent {
        width: auto;
        min-width: 0;
        margin-top: 0;
    }
}

/* The contact action aligns with the contact list rather than a centered button. */
body.lagom .panel-sidebar.panel-client-contacts > .panel-footer {
    display: block;
    padding: 0;
}
body.lagom .panel-sidebar.panel-client-contacts .whp-add-contact {
    display: block;
    width: 100%;
    padding: 12px 16px;
    color: var(--panel-sidebar-link-color, #d9d9d9);
    background: transparent;
    text-align: left;
    text-decoration: none;
}
body.lagom .panel-sidebar.panel-client-contacts .whp-add-contact > i {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: var(--spacing-1x, 4px);
    text-align: center;
}
body.lagom .panel-sidebar.panel-client-contacts .whp-add-contact:hover {
    color: #fa8705;
}
body.lagom .panel-sidebar.panel-client-contacts .whp-add-contact:focus-visible {
    outline: 2px solid #ffab3d;
    outline-offset: -2px;
}

/* Keep hosting category icons legible and aligned in every navigation layout. */
body.lagom :is(.app-nav-menu, .top-nav, .panel-sidebar, .main-sidebar, .sidebar, .categories-sidebar) a > .whp-hosting-icon {
    display: inline-block;
    flex: 0 0 16px;
    width: 16px;
    height: auto;
    font-size: 16px;
    text-align: center;
    margin-right: 8px;
}

/* Match the profile card to account surfaces while preserving Logout styling. */
html.lagom-dark-mode body.lagom .panel-sidebar.panel-client-details {
    background: #253b45 !important;
    border-radius: var(--whp-card-radius, 12px);
}
html.lagom-dark-mode body.lagom .panel-client-details > :is(.panel-heading, .panel-body, .panel-footer) {
    background: transparent;
}
body.lagom .panel-client-details .panel-footer .btn:not(.btn-outline):not([href*="logout"]):not(:disabled):not(.disabled) {
    background: #fa8705 !important;
    border-color: #fa8705 !important;
    color: #242424 !important;
}
body.lagom .panel-client-details .panel-footer .btn:not(.btn-outline):not([href*="logout"]):not(:disabled):not(.disabled):is(:hover, :focus-visible) {
    background: #ffab3d !important;
    border-color: #ffab3d !important;
}

/* Reserve enough room for the globe, separate from the domain input. */
body.lagom .panel-sidebar.panel-register .input-group > .input-group-addon {
    flex: 0 0 44px;
    width: 44px;
    padding: 0 !important;
    background: transparent !important;
}
body.lagom .panel-sidebar.panel-register .input-group > .input-group-addon i {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    overflow: visible;
}
body.lagom .panel-sidebar.panel-register .input-group > .form-control {
    flex: 1 1 0%;
    min-width: 0;
    margin-left: 0;
}

/* Affiliate balances and referral links share the neutral account palette. */
html.lagom-dark-mode body.lagom.page-affiliates .main-sidebar .panel-sidebar-primary,
html.lagom-dark-mode body.lagom.page-affiliates .search-box:has(#referralLink) {
    --primary-block-divider-color: #4f7181;
    background: #253b45 !important;
    border: 0;
    border-radius: var(--whp-card-radius, 12px);
    box-shadow: none;
}
html.lagom-dark-mode body.lagom.page-affiliates .main-sidebar .panel-sidebar-primary > :is(.panel-heading, .panel-body, .panel-footer) {
    background: transparent;
}
body.lagom.page-affiliates .search-box:has(#referralLink) {
    padding: 32px;
}
html.lagom-dark-mode body.lagom.page-affiliates .search-box:has(#referralLink) .input-group {
    background: #e6ecee;
    border-radius: var(--input-border-radius, 6px);
}
body.lagom.page-affiliates #referralLink {
    min-width: 0;
}
/* Separate the withdrawal notice from the balance card and soften its colors. */
html.lagom-dark-mode body.lagom:is(.page-affiliates, .page-clientareaaddfunds) .main-sidebar .alert-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 20px;
    background: #253b45;
    color: #d9d9d9;
    border: 0;
    border-radius: var(--whp-card-radius, 12px);
    line-height: 1.6;
}
body.lagom:is(.page-affiliates, .page-clientareaaddfunds) .main-sidebar .alert-info :is(.alert-body, p) {
    min-width: 0;
    margin: 0;
    color: inherit;
}
body.lagom:is(.page-affiliates, .page-clientareaaddfunds) .main-sidebar .alert-info > :is(i, .alert-icon) {
    flex: 0 0 auto;
    margin-top: 4px;
    color: #b8cbd3;
}
@media (max-width: 767px) {
    body.lagom.page-affiliates .search-box:has(#referralLink) {
        padding: 24px;
    }
}

/* The affiliate balance can use Lagom's primary summary-card variant too. */
html.lagom-dark-mode body.lagom:is(.page-affiliates, .page-clientareaaddfunds) .main-sidebar .panel {
    --primary-block-bg: #253b45;
    --secondary-block-bg: #253b45;
    --primary-block-divider-color: #4f7181;
    --secondary-block-divider-color: #4f7181;
    background: #253b45 !important;
    border-radius: var(--whp-card-radius, 12px);
    border: 0;
    box-shadow: none;
}
/* Keep WHMCS withdrawal eligibility intact; disabled orange stays visibly muted. */
body.lagom.page-affiliates .main-sidebar .panel .panel-footer .btn {
    background: #fa8705 !important;
    border-color: #fa8705 !important;
    color: #242424 !important;
}
body.lagom.page-affiliates .main-sidebar .panel .panel-footer .btn:not(:disabled):not(.disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) {
    background: #ffab3d !important;
    border-color: #ffab3d !important;
}
body.lagom.page-affiliates .main-sidebar .panel .panel-footer .btn:is(:disabled, .disabled, [aria-disabled="true"]) {
    cursor: not-allowed;
    pointer-events: none;
}

/* Ticket knowledge-base search matches the other blue search cards. */
html.lagom-dark-mode body.lagom.page-supportticketsubmit-stepone .search-box:has([data-knowledgebase-search]) {
    background: #253b45 !important;
    border: 0;
    border-radius: var(--whp-card-radius, 12px);
    box-shadow: none;
}
html.lagom-dark-mode body.lagom.page-supportticketsubmit-stepone [data-knowledgebase-search-input] {
    background: #e6ecee !important;
    color: #242424 !important;
}

/* Fit the two Store groups without stretching across the whole navigation. */
@media (min-width: 992px) {
    body.lagom.lagom-layout-top .app-nav-menu .menu > li.dropdown-mega > .dropdown-menu:has(.whp-store-two-columns) {
        left: auto;
        right: var(--layout-container-gutter, 24px);
        width: 640px;
        max-width: calc(100vw - 32px);
    }
    body.lagom.lagom-layout-top .app-nav-menu .menu > li.dropdown-mega .whp-store-two-columns {
        column-gap: 16px;
    }
    body.lagom.lagom-layout-top .app-nav-menu .menu > li.dropdown-mega .whp-store-two-columns a {
        white-space: normal;
        overflow-wrap: break-word;
    }
}

/* Ticket Information selectors need visible blue control surfaces. */
html.lagom-dark-mode body.lagom.page-supportticketsubmit-steptwo .open-ticket-information :is(.ticket-creator, .dropdown-select-list > .dropdown-toggle, .dropdown-menu) {
    --input-color: #fff;
    --input-hover-color: #fff;
    --dropdown-bg: #294653;
    background: #294653 !important;
    color: #fff;
}
/* The editor icons use the same dark foreground as Preview. */
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor .btn-toolbar .btn,
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor .btn-toolbar .btn :is(i, span),
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor .md-controls .md-control {
    color: #242424 !important;
}
/* Keep a visible blue focus indicator around the message editor. */
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor {
    --input-focus-border-color: #294653;
}
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor:is(.active, :focus-within) {
    border-color: #294653 !important;
    outline-color: #294653 !important;
    box-shadow: none;
}
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor > textarea:focus {
    border-color: #294653 !important;
    outline: 2px solid #294653 !important;
    outline-offset: -2px;
    box-shadow: none !important;
}

/* Base heading spacing; the desktop offset tracks Ticket Details dynamically. */
body.lagom.page-supportticketsubmit-steptwo .panel-sidebar[menuitemname="Knowledgebase Suggestions"] {
    padding-top: 0;
}
body.lagom.page-supportticketsubmit-steptwo .panel-sidebar[menuitemname="Knowledgebase Suggestions"] > .panel-heading {
    padding-top: 0;
}

/* Ticket dropdown searches fit inside the menu instead of touching its edges. */
body.lagom.page-supportticketsubmit-steptwo .dropdown-menu-search {
    max-height: none;
}
body.lagom.page-supportticketsubmit-steptwo .dropdown-menu-search .dropdown-header {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 8px;
    border: 0;
    box-sizing: border-box;
}
body.lagom.page-supportticketsubmit-steptwo .dropdown-menu-search .dropdown-header .input-group-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 4;
    pointer-events: none;
}
html.lagom-dark-mode body.lagom.page-supportticketsubmit-steptwo .dropdown-menu-search .dropdown-header .form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding-left: 38px;
    border-radius: var(--input-border-radius, 6px);
    background: #e6ecee !important;
    color: #242424 !important;
}
html.lagom-dark-mode body.lagom.page-supportticketsubmit-steptwo .dropdown-menu-search .dropdown-header .form-control:focus {
    outline-offset: -2px !important;
    box-shadow: none;
}
body.lagom.page-supportticketsubmit-steptwo .dropdown-menu-search .dropdown-menu-items {
    max-height: min(236px, 40vh);
}

/* Blue editor toolbar and attachment controls around the light message area. */
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor > .md-header {
    background: #294653 !important;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor .md-header .md-controls .md-control {
    color: #e6ecee !important;
}
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .attachements-container :is(.add, .attachements-uploads) {
    background: #294653 !important;
    color: #e6ecee !important;
    border-color: #294653;
}
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .attachements-container .add > i svg path {
    fill: currentColor;
}

body.lagom.page-supportticketsubmit-steptwo .panel-sidebar[menuitemname="Knowledgebase Suggestions"] {
    margin-top: var(--whp-ticket-suggestions-offset, 0px);
}

/* Match the editor status strip to its blue toolbar. */
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor > .md-footer {
    background: #294653 !important;
    color: #e6ecee;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor > .md-footer * {
    color: #e6ecee;
}

body.lagom .whp-suggestions-help {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 4px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #b8cbd3;
    font-size: 14px;
    line-height: 1;
    cursor: help;
}
body.lagom .whp-suggestions-help:focus-visible {
    outline: 2px solid #ffab3d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Prevent the light editor shell from showing around the blue rounded edges. */
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor {
    background: #294653 !important;
    border-color: #294653 !important;
}

/* Markdown previews use dark text locally, without changing past ticket replies. */
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor > .md-preview {
    --markdown-font-color: #242424;
    --text-body-color: #242424;
    --text-heading-color: #242424;
    --text-primary-color: #294653;
    --gray-faded: #d4dfe3;
    --gray-lighter-3: #b8c8cf;
    color: #242424 !important;
    background: #e6ecee !important;
}
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor > .md-preview :is(p, h1, h2, h3, h4, h5, h6, li, blockquote, td, th, pre, code) {
    color: #242424;
}
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor > .md-preview a {
    color: #1f536b;
    text-decoration: underline;
}
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor > .md-preview :is(pre, code) {
    background-color: #d4dfe3;
    border-color: #b8c8cf;
}
html.lagom-dark-mode body.lagom:is(.page-supportticketsubmit-steptwo, .page-viewticket) .md-editor > .md-preview pre code {
    background: transparent;
}
html.lagom-dark-mode body.lagom.page-viewticket #frmReply .ticket-creator {
    background: #294653;
    color: #fff;
}
