/* ==========================================================================
   Perth Web Hosting – MyToolbox client area
   Child theme of Twenty-One (WHMCS 8.13.7). Loaded automatically after
   the parent's theme.min.css, so these rules win at equal specificity.
   To re-colour the whole theme, change the variables in :root.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* GT Standard (licensed, Grilli Type) – files go in /templates/perthhosting/fonts/ */
@font-face {
    font-family: "GT Standard";
    src: url("../fonts/GT-Standard-M-Extended-Black.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --pwh-navy: #13284A;          /* text, dark panels            */
    --pwh-logo-navy: #1A325B;     /* logo colour                  */
    --pwh-gold: #C89439;          /* accent – buttons, highlights */
    --pwh-gold-hover: #B5832C;
    --pwh-gold-dark: #8A6420;     /* link hover, text on cream    */
    --pwh-gold-soft: #F6EBD6;
    --pwh-on-gold: #FFFFFF;       /* text on gold buttons         */
    --pwh-cream: #FBF8F3;         /* page background              */
    --pwh-white: #FFFFFF;
    --pwh-line: #ECE4D8;          /* card borders                 */
    --pwh-line-strong: #D9CFC0;   /* input borders                */
    --pwh-muted: #45556F;         /* secondary text (7:1 on cream) */
    --pwh-success: #1D6B3F;
    --pwh-success-soft: #E4F2E9;
    --pwh-warning-text: #6E4E12;
    --pwh-danger: #A3321C;
    --pwh-danger-soft: #FBE7E2;
    --pwh-radius: 18px;
    --pwh-radius-lg: 22px;
    --pwh-radius-input: 12px;
    --pwh-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
body,
.btn,
.form-control,
.custom-select,
input, select, textarea, button,
.popover, .tooltip, .dropdown-menu, .modal {
    font-family: var(--pwh-font);
}
body {
    color: var(--pwh-navy);
    -webkit-font-smoothing: antialiased;
}
.primary-bg-color {
    background-color: var(--pwh-cream);
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--pwh-navy);
    font-weight: 700;
    letter-spacing: -0.01em;
}
a { color: var(--pwh-navy); }
a:hover, a:focus { color: var(--pwh-gold-dark); }
.text-muted { color: var(--pwh-muted) !important; }
.text-primary { color: var(--pwh-gold-dark) !important; }
.bg-primary { background-color: var(--pwh-gold) !important; }
::selection { background: var(--pwh-gold-soft); color: var(--pwh-navy); }

section#main-body {
    padding: 32px 0 64px;
}

/* ---------- Header ---------- */
header.header {
    background-color: var(--pwh-cream);
    border-bottom: 1px solid var(--pwh-line);
}
header.header .topbar {
    padding: 4px 0;
    background-color: var(--pwh-navy);
    color: rgba(255, 255, 255, 0.85);
}
header.header .topbar .btn,
header.header .topbar .active-client .btn,
header.header .topbar .active-client .input-group-text {
    color: rgba(255, 255, 255, 0.88);
}
header.header .topbar .active-client .btn.btn-active-client span {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}
header.header .navbar {
    padding-top: 16px;
    padding-bottom: 8px;
}
header.header .logo-img {
    max-height: 44px;
    max-width: 260px;
}
header.header .navbar a {
    color: var(--pwh-navy);
}
header.header .search {
    border: 1.5px solid var(--pwh-line-strong);
    border-radius: 999px;
    background: var(--pwh-white);
    overflow: hidden;
}
header.header .search:focus-within {
    border-color: var(--pwh-gold);
}
header.header .search .btn {
    color: var(--pwh-muted);
}
header.header .search .form-control {
    background: transparent;
    height: 42px;
}
header.header .toolbar .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--pwh-navy);
    border-radius: 999px;
    color: var(--pwh-navy);
}
header.header .toolbar .nav-link:hover {
    background: var(--pwh-navy);
    color: var(--pwh-white);
}
header.header .toolbar .nav-link .badge {
    background: var(--pwh-gold);
    color: var(--pwh-on-gold);
    opacity: 1;
    font-weight: 700;
}
header.header .main-navbar-wrapper .navbar-collapse {
    padding: 0.25rem 0 0.75rem;
}
header.header .main-navbar-wrapper .navbar-nav > li > a {
    display: block;
    padding: 10px 16px !important;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pwh-navy);
    text-decoration: none;
    transition: background-color .15s ease;
}
header.header .main-navbar-wrapper .navbar-nav > li > a:hover,
header.header .main-navbar-wrapper .navbar-nav > li.show > a {
    background: #EAF0F8;
}
header.header .dropdown-menu {
    padding: 8px;
    border: 1px solid var(--pwh-line);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(19, 40, 74, 0.12);
}
header.header .dropdown-menu .dropdown-item {
    border-radius: 8px;
}
header.header .dropdown-menu li.dropdown-item > a.dropdown-item {
    padding: 8px 10px !important;
    font-size: 15px;
}
header.header .dropdown-item:hover,
header.header .dropdown-item:focus,
header.header .dropdown-item.active,
header.header .dropdown-item:active {
    background-color: var(--pwh-cream);
    color: var(--pwh-navy);
}

/* ---------- Breadcrumb ---------- */
.master-breadcrumb {
    background-color: transparent;
}
.master-breadcrumb .breadcrumb {
    padding: 14px 0 0;
    background: transparent;
    font-size: 0.875rem;
}
.master-breadcrumb .breadcrumb-item a {
    color: var(--pwh-muted);
}
.master-breadcrumb .breadcrumb-item.active {
    color: var(--pwh-navy);
    font-weight: 600;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--pwh-line);
    border-radius: var(--pwh-radius);
    box-shadow: none;
}
.card > .card-header {
    background: var(--pwh-white);
    border-bottom: 1px solid var(--pwh-line);
}
.card > .card-header:first-child {
    border-radius: calc(var(--pwh-radius) - 1px) calc(var(--pwh-radius) - 1px) 0 0;
}
.card > .card-footer {
    background: var(--pwh-white);
    border-top: 1px solid var(--pwh-line);
}
.card > .card-footer:last-child {
    border-radius: 0 0 calc(var(--pwh-radius) - 1px) calc(var(--pwh-radius) - 1px);
}
.card .card-title,
.primary-content .card-title {
    font-weight: 700;
    color: var(--pwh-navy);
}
.card > .list-group:last-child .list-group-item:last-child {
    border-bottom-left-radius: calc(var(--pwh-radius) - 1px);
    border-bottom-right-radius: calc(var(--pwh-radius) - 1px);
}
/* Calm the coloured top borders WHMCS puts on homepage panels */
.card[class*="card-accent-"] {
    border-top: 1px solid var(--pwh-line);
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
}
.btn:not(.input-group .btn):not(.btn-group .btn):not(.btn-link) {
    border-radius: 999px;
}
.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--pwh-gold);
    border-color: var(--pwh-gold);
    color: var(--pwh-on-gold);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--pwh-gold-hover);
    border-color: var(--pwh-gold-hover);
    color: var(--pwh-on-gold);
}
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
    box-shadow: 0 0 0 0.2rem rgba(200, 148, 57, 0.4);
}
.btn-default {
    background-color: var(--pwh-white);
    border: 1.5px solid var(--pwh-line-strong);
    color: var(--pwh-navy);
}
.btn-default:hover,
.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default.active {
    background-color: var(--pwh-white);
    border-color: var(--pwh-navy);
    color: var(--pwh-navy);
}
/* "Success" buttons (Checkout, Order Now, etc.) use the gold accent too */
.btn-success,
.btn-success:disabled,
.btn-success.disabled {
    background-color: var(--pwh-gold);
    border-color: var(--pwh-gold);
    color: var(--pwh-on-gold);
}
.btn-success:hover,
.btn-success:focus,
.btn-success.focus,
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active,
.show > .btn-success.dropdown-toggle {
    background-color: var(--pwh-gold-hover);
    border-color: var(--pwh-gold-hover);
    color: var(--pwh-on-gold);
}
.btn-success:focus,
.btn-success.focus,
.btn-success:not(:disabled):not(.disabled):active:focus {
    box-shadow: 0 0 0 0.2rem rgba(200, 148, 57, 0.4);
}

/* Green "add" buttons in the standard order form (cart) */
body #order-standard_cart .panel-addon-selected .panel-add,
body #order-standard_cart .mc-promo .btn-add,
body .product-recommendations .product-recommendation .btn-add {
    background-color: var(--pwh-gold);
    color: var(--pwh-on-gold);
}
body #order-standard_cart .mc-promo .btn-add .arrow,
body .product-recommendations .product-recommendation .arrow {
    background-color: var(--pwh-gold-hover);
    color: var(--pwh-on-gold);
}
body #order-standard_cart .mc-promo .btn-add:hover,
body .product-recommendations .product-recommendation .btn-add:hover {
    background-color: var(--pwh-gold-hover);
    color: var(--pwh-on-gold);
}
/* Outline buttons (e.g. "Browse Products" on the portal home) – solid gold like the others */
.btn-outline-primary,
.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    background-color: var(--pwh-gold);
    border-color: var(--pwh-gold);
    color: var(--pwh-on-gold);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.focus,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active {
    background-color: var(--pwh-gold-hover);
    border-color: var(--pwh-gold-hover);
    color: var(--pwh-on-gold);
}
.btn-outline-primary:focus,
.btn-outline-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(200, 148, 57, 0.4);
}
.btn-link { color: var(--pwh-navy); font-weight: 600; }
.btn-link:hover { color: var(--pwh-gold-dark); }

/* ---------- Forms ---------- */
.form-control,
.custom-select {
    height: calc(1.5em + 1.2rem + 3px);
    padding: 0.6rem 0.9rem;
    border: 1.5px solid var(--pwh-line-strong);
    border-radius: var(--pwh-radius-input);
    color: var(--pwh-navy);
    background-color: var(--pwh-white);
}
.form-control:focus,
.custom-select:focus {
    border-color: var(--pwh-gold);
    box-shadow: 0 0 0 0.2rem rgba(200, 148, 57, 0.25);
    color: var(--pwh-navy);
}
.input-group-text {
    background-color: var(--pwh-cream);
    border: 1.5px solid var(--pwh-line-strong);
    color: var(--pwh-muted);
}
.input-group > .input-group-prepend:first-child > .input-group-text,
.input-group > .input-group-prepend:first-child > .btn {
    border-top-left-radius: var(--pwh-radius-input);
    border-bottom-left-radius: var(--pwh-radius-input);
}
.input-group > .input-group-append:last-child > .input-group-text,
.input-group > .input-group-append:last-child > .btn {
    border-top-right-radius: var(--pwh-radius-input);
    border-bottom-right-radius: var(--pwh-radius-input);
}
label, .form-control-label {
    font-weight: 600;
    color: var(--pwh-navy);
}
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--pwh-navy);
    border-color: var(--pwh-navy);
}
input[type="checkbox"], input[type="radio"] {
    accent-color: var(--pwh-navy);
}

/* ---------- Sidebar ---------- */
.sidebar .card {
    margin-bottom: 20px;
}
.sidebar .list-group-item {
    border-color: var(--pwh-line);
    color: var(--pwh-navy);
}
.sidebar .list-group-item-action:hover {
    background-color: var(--pwh-cream);
}
.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus {
    background-color: var(--pwh-navy);
    border-color: var(--pwh-navy);
    color: var(--pwh-white);
}
.sidebar .list-group-item .badge {
    background-color: var(--pwh-gold-soft);
    color: var(--pwh-warning-text);
}

/* ---------- Tables: navy header, cream striped rows ---------- */
:root {
    --pwh-row-a: #F6EBD6;
    --pwh-row-b: #FAF3E4;
    --pwh-row-hover: #EFDDBA;
}
.table {
    color: var(--pwh-navy);
}
.table thead th,
table.table-list thead th,
.dataTables_wrapper table.table-list thead th {
    background-color: var(--pwh-navy);
    color: var(--pwh-white);
    border-top: 0;
    border-bottom: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    vertical-align: middle;
}
.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc {
    background-color: var(--pwh-logo-navy);
    color: var(--pwh-white);
}
/* sort arrows sit on navy now, so lift them a little */
table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before {
    opacity: 0.35;
}
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_desc:after {
    opacity: 1;
}
.table thead th:first-child,
table.table-list thead th:first-child,
.dataTables_wrapper table.table-list thead th:first-child {
    border-radius: 11px 0 0 0;
}
.table thead th:last-child,
table.table-list thead th:last-child {
    border-top-right-radius: 12px;
}
.dataTables_wrapper table.table-list {
    border: 1px solid var(--pwh-line);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
}
.table td,
.table th {
    border-top-color: rgba(19, 40, 74, 0.07);
    vertical-align: middle;
}
.table tbody > tr:nth-child(odd) > td,
.table-list > tbody > tr:nth-child(odd) > td {
    background-color: var(--pwh-row-a);
    color: var(--pwh-navy);
}
.table tbody > tr:nth-child(even) > td,
.table-list > tbody > tr:nth-child(even) > td {
    background-color: var(--pwh-row-b);
    color: var(--pwh-navy);
}
.table-hover tbody > tr:hover > td,
.table-list > tbody > tr:hover > td {
    background-color: var(--pwh-row-hover);
}

/* ---------- Status labels (readable, soft) ---------- */
.label {
    border-radius: 999px;
    padding: 0.35em 0.8em;
    font-weight: 600;
}
.status-active, .status-open, .status-completed, .status-paid,
.status-accepted, .status-delivered, .label-success {
    background-color: var(--pwh-success-soft);
    color: var(--pwh-success);
}
.status-pending, .status-unpaid, .status-payment-pending,
.status-pending-transfer, .status-pending-registration,
.status-grace, .status-onhold, .status-inprogress,
.status-customer-reply, .label-warning {
    background-color: #EED49E;
    color: var(--pwh-warning-text);
}
.status-suspended, .status-redemption, .status-collections,
.status-fraud, .label-danger {
    background-color: var(--pwh-danger-soft);
    color: var(--pwh-danger);
}
.status-cancelled, .status-terminated, .status-closed,
.status-expired, .status-transferred-away, .status-refunded,
.status-answered, .label-default, .label-info {
    background-color: #ECEFF3;
    color: #3A4A63;
}
.badge-info, .badge-primary {
    background-color: var(--pwh-gold);
    color: var(--pwh-on-gold);
}

/* ---------- Alerts ---------- */
.alert {
    border-radius: 14px;
}
.alert-warning {
    background-color: #FBF1DC;
    border-color: #EAD3A2;
    color: #5C4310;
}
.alert-info {
    background-color: #EEF2F8;
    border-color: #D3DDEC;
    color: var(--pwh-navy);
}
.alert-success {
    background-color: var(--pwh-success-soft);
    border-color: #C2E1CD;
    color: #154F2E;
}
.alert-danger {
    background-color: var(--pwh-danger-soft);
    border-color: #F1C4B9;
    color: #7E2414;
}

/* ---------- Tabs, pagination, modals ---------- */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--pwh-navy);
    font-weight: 600;
    border-color: var(--pwh-line) var(--pwh-line) var(--pwh-white);
}
.page-item.active .page-link {
    background-color: var(--pwh-navy);
    border-color: var(--pwh-navy);
}
.page-link { color: var(--pwh-navy); }
.modal-content {
    border: 0;
    border-radius: var(--pwh-radius);
}

/* ---------- Twenty-One stat tiles (used on other pages) ---------- */
.tiles .tile {
    background-color: var(--pwh-white);
    border-right-color: var(--pwh-line);
}
.tiles .tile .stat { color: var(--pwh-navy); font-weight: 700; }
.tiles .tile .title { color: var(--pwh-muted); }
.tiles .tile:hover { background-color: var(--pwh-cream); }

/* ==========================================================================
   Client area home (clientareahome.tpl)
   ========================================================================== */
.pwh-home-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 40px;
}
.pwh-home-hero__text {
    flex: 999 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.pwh-display {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.pwh-lead {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--pwh-muted);
    max-width: 560px;
}
.pwh-attention {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    border-radius: var(--pwh-radius-lg);
    background: var(--pwh-gold);
    color: var(--pwh-on-gold);
    text-decoration: none;
}
.pwh-attention:hover, .pwh-attention:focus {
    background: var(--pwh-gold-hover);
    color: var(--pwh-on-gold);
    text-decoration: none;
}
.pwh-attention__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pwh-attention__title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.pwh-attention__cta { font-weight: 700; }
.pwh-attention--calm {
    background: var(--pwh-white);
    border: 1px solid var(--pwh-line);
    color: var(--pwh-navy);
}
.pwh-attention--calm:hover, .pwh-attention--calm:focus {
    background: var(--pwh-white);
    border-color: var(--pwh-navy);
    color: var(--pwh-navy);
}

.pwh-section-title {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 700;
}
.pwh-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.pwh-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: var(--pwh-radius);
    background: var(--pwh-white);
    border: 1px solid var(--pwh-line);
    color: var(--pwh-navy);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.pwh-action:hover, .pwh-action:focus {
    border-color: var(--pwh-navy);
    color: var(--pwh-navy);
    text-decoration: none;
    transform: translateY(-2px);
}
.pwh-action i {
    font-size: 1.5rem;
    color: var(--pwh-navy);
}
.pwh-action__title { font-weight: 700; font-size: 1.05rem; }
.pwh-action__sub { font-size: 0.95rem; color: var(--pwh-muted); }

.pwh-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    margin-bottom: 40px;
    background: var(--pwh-line);
    border: 1px solid var(--pwh-line);
    border-radius: var(--pwh-radius);
    overflow: hidden;
}
.pwh-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 22px;
    background: var(--pwh-white);
    color: var(--pwh-navy);
    text-decoration: none;
}
.pwh-stat:hover, .pwh-stat:focus {
    background: var(--pwh-cream);
    color: var(--pwh-navy);
    text-decoration: none;
}
.pwh-stat__value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.pwh-stat__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pwh-muted);
}

.pwh-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 40px;
    padding: 32px;
    margin: 16px 0 24px;
    border-radius: var(--pwh-radius-lg);
    background: var(--pwh-navy);
    color: var(--pwh-cream);
}
.pwh-help__text { flex: 1 1 320px; }
.pwh-help__actions {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.pwh-help__actions a { padding: 0 26px; margin-bottom: 0 !important; }
.pwh-help h2 {
    margin: 0 0 10px;
    color: var(--pwh-cream);
    font-size: 1.6rem;
}
.pwh-help p {
    color: #D3DBE8;
    line-height: 1.6;
}
.pwh-help .pwh-btn-light,
.pwh-help .pwh-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-bottom: 12px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}
.pwh-help .pwh-btn-light {
    background: var(--pwh-cream);
    color: var(--pwh-navy);
    font-size: 1.1rem;
}
.pwh-help .pwh-btn-light:hover { background: var(--pwh-white); color: var(--pwh-navy); }
.pwh-help .pwh-btn-ghost {
    border: 1.5px solid var(--pwh-cream);
    color: var(--pwh-cream);
}
.pwh-help .pwh-btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--pwh-white); }
.pwh-help .pwh-help__link { color: var(--pwh-cream); font-weight: 600; }
.pwh-help .pwh-help__link:hover { color: var(--pwh-gold); }

/* Homepage panels (Your services, tickets, etc. – driven by WHMCS/hooks) */
.client-home-cards .card {
    margin-bottom: 24px;
}
.client-home-cards .card-header {
    padding: 18px 22px;
}
.client-home-cards .card-title {
    font-size: 1.1rem;
}
.client-home-cards .card-header .btn {
    border: 1.5px solid var(--pwh-line-strong);
    background: var(--pwh-white) !important;
    color: var(--pwh-navy);
}
.client-home-cards .card-header .btn:hover {
    border-color: var(--pwh-navy);
    color: var(--pwh-navy);
}
.client-home-cards .list-group-item {
    padding: 14px 22px;
    border-color: var(--pwh-line);
    color: var(--pwh-navy);
}
.client-home-cards .list-group-item-action:hover {
    background: var(--pwh-cream);
}
.client-home-cards .card-footer:empty {
    display: none;
}

/* ==========================================================================
   Login (login.tpl)
   ========================================================================== */
.pwh-auth {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: center;
    padding: 24px 0 32px;
}
.pwh-auth__intro {
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pwh-auth__intro .pwh-display {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
}
.pwh-auth__form {
    flex: 1 1 380px;
    max-width: 480px;
}
.pwh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pwh-chips li {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--pwh-white);
    border: 1px solid var(--pwh-line);
    font-weight: 600;
    font-size: 0.95rem;
}
.pwh-auth-card {
    border-radius: 26px;
}
.pwh-auth-card > .card-body {
    padding: 36px;
}
.pwh-auth-card .form-control {
    height: 54px;
    background-color: var(--pwh-cream);
    border-radius: 14px;
}
.pwh-auth-card .input-group .form-control {
    border-radius: 14px 0 0 14px;
}
.pwh-auth-card .btn-reveal-pw {
    border: 1.5px solid var(--pwh-line-strong);
    border-left: 0;
    background: var(--pwh-cream);
    color: var(--pwh-muted);
}
.pwh-auth-card #login {
    height: 56px;
    font-size: 1.1rem;
    font-weight: 700;
}
.pwh-auth-card > .card-footer {
    padding: 20px 36px;
    color: var(--pwh-muted);
    line-height: 1.6;
}
.pwh-auth-card .pwh-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    font-weight: 500;
}
.pwh-auth-card .pwh-remember input {
    position: static;
    margin: 0;
    width: 20px;
    height: 20px;
}
@media (max-width: 575.98px) {
    .pwh-auth-card > .card-body { padding: 24px; }
    .pwh-auth-card > .card-footer { padding: 18px 24px; }
}

/* ==========================================================================
   Footer (footer.tpl) – matches the public website footer
   ========================================================================== */
:root {
    --pwh-sf-bg: #0B1629;
    --pwh-sf-cream: #FFFEF4;
    --pwh-sf-link: #EAF0F8;
    --pwh-sf-soft: #C2D3E8;
    --pwh-sf-social: #6B91BE;
    --pwh-sf-ring: #3B5373;
}
footer.footer.pwh-sf {
    margin: 0;
    padding: 80px 0 24px;
    background-color: var(--pwh-sf-bg);
    border-top: 0;
    color: var(--pwh-sf-link);
    font-size: 15px;
    line-height: 1.4;
}
footer.footer.pwh-sf a {
    color: var(--pwh-sf-link);
    text-decoration: none;
}
footer.footer.pwh-sf a:hover,
footer.footer.pwh-sf a:focus {
    color: var(--pwh-sf-cream);
    text-decoration: underline;
}
footer.footer.pwh-sf > .container {
    max-width: 1240px;
}
.pwh-sf__top {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 64px;
    padding-bottom: 64px;
}
.pwh-sf__brand {
    flex: 0 1 340px;
    min-width: 0;
}
.pwh-sf__logo img {
    display: block;
    height: 60px;
    width: auto;
    max-width: 100%;
}
.pwh-sf__tagline {
    margin: 30px 0 18px;
    color: var(--pwh-sf-cream);
    font-weight: 700;
}
.pwh-sf__desc {
    margin: 0 0 40px;
    color: var(--pwh-sf-soft);
    line-height: 1.35;
}
.pwh-sf__contact {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.pwh-sf__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.pwh-sf__contact svg {
    flex: 0 0 24px;
    color: var(--pwh-sf-link);
}
.pwh-sf__contact li:first-child svg { margin-top: 0; }
.pwh-sf__social {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
footer.footer.pwh-sf .pwh-sf__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--pwh-sf-ring);
    border-radius: 50%;
    color: var(--pwh-sf-social);
    font-size: 22px;
    text-decoration: none;
}
footer.footer.pwh-sf .pwh-sf__social a:hover,
footer.footer.pwh-sf .pwh-sf__social a:focus {
    border-color: var(--pwh-sf-social);
    color: var(--pwh-sf-link);
}
.pwh-sf__cols {
    flex: 1 1 520px;
    max-width: 720px;
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-top: 2px;
}
.pwh-sf__col h2 {
    margin: 0 0 10px;
    color: var(--pwh-sf-cream);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.pwh-sf__col h2.pwh-sf__subhead {
    margin-top: 22px;
}
.pwh-sf__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pwh-sf__col li {
    margin-bottom: 9px;
    line-height: 1.25;
}
.pwh-sf__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
    padding-top: 24px;
    border-top: 1px solid var(--pwh-sf-soft);
}
.pwh-sf__copyright {
    margin: 0;
    color: var(--pwh-sf-soft);
    font-size: 12.5px;
    line-height: 1.25;
    text-align: left;
}
.pwh-sf__bottom-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}
.pwh-sf__legal {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--pwh-sf-soft);
}
footer.footer.pwh-sf a.pwh-sf__abn {
    color: var(--pwh-sf-soft);
    text-decoration: underline;
}
footer.footer.pwh-sf a.pwh-sf__abn:hover { color: var(--pwh-sf-cream); }
.pwh-sf__sep { margin: 0 2px; }
.pwh-sf__credit img {
    display: block;
    height: 28px;
    width: auto;
    margin-left: 6px;
}
footer.footer.pwh-sf .btn.pwh-sf__locale {
    padding: 4px 12px;
    border: 1px solid var(--pwh-sf-ring);
    border-radius: 999px;
    background: transparent;
    color: var(--pwh-sf-link);
    font-size: 13px;
    line-height: 1.6;
}
footer.footer.pwh-sf .btn.pwh-sf__locale:hover {
    border-color: var(--pwh-sf-social);
}
@media (max-width: 767.98px) {
    footer.footer.pwh-sf { padding-top: 56px; }
    .pwh-sf__brand { flex-basis: 100%; }
    .pwh-sf__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479.98px) {
    .pwh-sf__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Fixes ---------- */
/* SVG logos without intrinsic size collapse in the flex header – give them a height */
header.header .logo-img {
    height: 44px;
    width: auto;
    max-width: 260px;
}
.pwh-auth-card .btn-reveal-pw {
    min-width: 52px;
}
.pwh-auth-card .btn-reveal-pw:hover,
.pwh-auth-card .btn-reveal-pw:active {
    background: var(--pwh-white);
    color: var(--pwh-navy);
    border-color: var(--pwh-line-strong);
}

/* Dropdowns: leave room for the arrow (e.g. "Show 10 entries" on tables) */
.custom-select,
select.custom-select.form-control {
    padding-right: 2.25rem;
    background-position: right 0.75rem center;
}
.dataTables_wrapper .dataTables_length select {
    display: inline-block;
    width: auto;
    min-width: 84px;
    height: 40px;
    margin: 0 6px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

/* Sidebar items (e.g. "Your Recent Tickets"): keep long titles inside the card,
   cut off with "…" – the full title still shows in the tooltip on hover */
.sidebar .list-group-item {
    overflow: hidden;
}
.sidebar .sidebar-menu-item-wrapper {
    min-width: 0;
}
.sidebar .sidebar-menu-item-label {
    flex: 1 1 auto;
    min-width: 0;
}
.sidebar .sidebar-menu-item-label .truncate,
.sidebar .list-group-item .truncate {
    display: block;
    max-width: 100%;
}
.sidebar .card {
    overflow: hidden;
}

/* ---------- Open ticket: department picker (supportticketsubmit-stepone.tpl) ---------- */
.pwh-dept-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 575.98px) {
    .pwh-dept-grid { grid-template-columns: minmax(0, 1fr); }
}
a.pwh-dept {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 18px 20px;
    border: 1px solid var(--pwh-line);
    border-radius: var(--pwh-radius);
    background: var(--pwh-white);
    color: var(--pwh-navy);
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}
a.pwh-dept:hover,
a.pwh-dept:focus {
    border-color: var(--pwh-navy);
    background: #EAF0F8;
    color: var(--pwh-navy);
    text-decoration: none;
}
.pwh-dept__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--pwh-navy);
    color: var(--pwh-white);
    font-size: 18px;
}
.pwh-dept__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pwh-dept__name {
    font-size: 1.1rem;
    font-weight: 700;
}
.pwh-dept__desc {
    color: var(--pwh-muted);
    font-size: 0.95rem;
}
.pwh-dept__arrow {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--pwh-muted);
}
a.pwh-dept:hover .pwh-dept__arrow { color: var(--pwh-navy); }

/* ---------- Top menu: "Firewall Check" button, shown to the right of "More" ----------
   The hook (includes/hooks/perthhosting_menus.php) adds .pwh-nav-cta + .no-collapse */
header.header .main-navbar-wrapper #nav > li.pwh-nav-cta {
    order: 99;
    margin-left: 8px;
}
header.header .main-navbar-wrapper .navbar-nav > li.pwh-nav-cta > a {
    background: #B50627;
    color: #FFFFFF;
}
header.header .main-navbar-wrapper .navbar-nav > li.pwh-nav-cta > a:hover,
header.header .main-navbar-wrapper .navbar-nav > li.pwh-nav-cta > a:focus {
    background: #940520;
    color: #FFFFFF;
}
@media (max-width: 1199.98px) {
    /* stacked mobile menu: keep it as a full-width red button at the end */
    header.header .main-navbar-wrapper #nav > li.pwh-nav-cta {
        margin: 8px 0 0;
    }
}

/* ---------- Status badges: "Active"/"Paid" etc. in solid green with white text ---------- */
.label.status-active, .label.status-open, .label.status-completed, .label.status-paid,
.label.status-accepted, .label.status-delivered, .label.label-success,
.status-active, .status-open, .status-completed, .status-paid,
.status-accepted, .status-delivered, .label-success,
.div-service-status .label-success,
.div-service-status .label.status-active {
    background-color: var(--pwh-success);
    color: var(--pwh-white);
}
/* Twenty-One forces white text on the service list badges – keep the other
   (soft-coloured) badges readable there */
.div-service-status .label-warning { color: var(--pwh-warning-text); }
.div-service-status .label-danger  { color: var(--pwh-danger); }
.div-service-status .label-default,
.div-service-status .label-info    { color: #3A4A63; }

/* ---------- Client home: "Register a New Domain" panel – space above the search box ---------- */
.client-home-cards .card[menuItemName="Register a New Domain"] > .card-body {
    padding-top: 10px;
}

/* ---------- Hide "Edit with Sitejet Builder" buttons in the services list ---------- */
.div-service-buttons .btn-group-secondary:has(> .btn-custom-action[data-identifier*="sitejet" i]),
.div-service-buttons .btn-custom-action[data-identifier*="sitejet" i],
.div-service-buttons .dropdown-item.btn-custom-action[data-identifier*="sitejet" i] {
    display: none !important;
}

/* ---------- Header: cart (and mobile menu) buttons as circles ---------- */
header.header .toolbar .nav-link {
    width: 46px;
    height: 46px;
    min-height: 0;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    overflow: visible;
}
header.header .toolbar .nav-link .badge {
    top: -4px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    line-height: 20px;
    border-radius: 999px;
    font-size: 11px;
    text-align: center;
}

/* ---------- Open Ticket: "blocked by the firewall?" pop-up ---------- */
.pwh-fw-modal .modal-content {
    border-radius: var(--pwh-radius-lg);
    overflow: hidden;
}
.pwh-fw-modal .modal-body {
    padding: 32px 32px 20px;
    color: var(--pwh-navy);
    line-height: 1.6;
}
.pwh-fw-modal .modal-body h2 {
    margin: 16px 0 10px;
    font-weight: 700;
}
.pwh-fw-modal__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #FBE5E9;
    color: #B50627;
}
.pwh-fw-modal .modal-footer {
    padding: 16px 32px 28px;
    border-top: 0;
    gap: 10px;
}
.btn-pwh-firewall,
.btn-pwh-firewall:visited {
    background-color: #B50627;
    border-color: #B50627;
    color: #FFFFFF;
}
.btn-pwh-firewall:hover,
.btn-pwh-firewall:focus {
    background-color: #940520;
    border-color: #940520;
    color: #FFFFFF;
}

/* ---------- Open Ticket form: line the Subject up with the Priority box ---------- */
@media (min-width: 768px) {
    .form-group.col-md-10:has(> #inputSubject) {
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* Department | Related Service | Priority now fill the full row */
    .form-group:has(> #inputRelatedService) {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .row:has(> .form-group > #inputPriority):not(:has(#inputRelatedService)) > .form-group {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ---------- Portal home: "Secure your domain name" band in navy ---------- */
.home-domain-search.bg-white {
    background-color: var(--pwh-navy) !important;
    color: var(--pwh-white);
}
.home-domain-search h2 {
    color: var(--pwh-white);
}
.home-domain-search .tld-logos {
    color: #D3DBE8;
}
.home-domain-search .input-group-wrapper {
    border: 0;
    border-radius: 14px;
}
.home-domain-search a.btn-link {
    color: var(--pwh-white);
}
.home-domain-search a.btn-link:hover,
.home-domain-search a.btn-link:focus {
    color: var(--pwh-gold);
}
/* Centre the Search / Transfer buttons vertically in the box */
.home-domain-search .input-group {
    align-items: center;
}
@media (min-width: 576px) {
    .home-domain-search .input-group-append.d-sm-block {
        display: flex !important;
        align-items: center;
        gap: 6px;
    }
}
.home-domain-search .input-group-wrapper .btn {
    margin: 0 !important;
    line-height: 1.5;
}

/* ---------- Login: trust chips in gold ---------- */
.pwh-chips li {
    background: var(--pwh-gold);
    border-color: var(--pwh-gold);
    color: var(--pwh-on-gold);
}

/* ---------- Page width: match the footer (1240px) everywhere ---------- */
@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-xl {
        max-width: 1240px;
    }
}

/* ---------- GT Standard: client home greeting + login heading ---------- */
.pwh-home-hero .pwh-display,
.pwh-auth__intro .pwh-display {
    font-family: "GT Standard", var(--pwh-font);
    font-weight: 900;
    letter-spacing: -0.01em;
}

/* ---------- Top menu dropdowns: slide down ---------- */
@keyframes pwhDropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
        clip-path: inset(0 -40px 100% -40px round 14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(-20px -40px -60px -40px round 14px);
    }
}
header.header .navbar .dropdown-menu.show {
    animation: pwhDropdownSlide 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    transform-origin: top center;
}
@media (prefers-reduced-motion: reduce) {
    header.header .navbar .dropdown-menu.show {
        animation: none;
    }
}

/* ---------- Top menu: never show an empty "More" dropdown ---------- */
header.header #nav > li.collapsable-dropdown:not(:has(.collapsable-dropdown-menu > li)) {
    display: none !important;
}

/* ==========================================================================
   Portal home: hosting packages (homepage.tpl) – matches the public website
   ========================================================================== */
.pwh-plans {
    --pwh-plan-bg: #FFFEF4;
    --pwh-plan-line: #C2D3E8;
    --pwh-plan-ink: #0B1629;
    --pwh-plan-btn: #1A325B;
    margin: 8px 0 56px;
}
.pwh-plans__title {
    margin: 0 0 36px;
    text-align: center;
    font-family: "GT Standard", var(--pwh-font);
    font-weight: 900;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--pwh-plan-ink);
}
.pwh-plans__lead {
    margin: 0 auto 36px;
    max-width: 560px;
    text-align: center;
    color: var(--pwh-muted);
}
.pwh-plans__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}
@media (max-width: 991.98px) {
    .pwh-plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .pwh-plans__grid { grid-template-columns: minmax(0, 1fr); }
}
.pwh-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 36px 32px;
    background: var(--pwh-plan-bg);
    border: 1px solid var(--pwh-plan-line);
    border-radius: 16px;
    color: var(--pwh-plan-ink);
}
.pwh-plan--featured {
    border: 2px solid var(--pwh-plan-ink);
    box-shadow: 0 18px 40px rgba(11, 22, 41, 0.16);
}
.pwh-plan__badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #E8E0C8;
    color: #7E5718;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pwh-plan__name {
    margin: 0 0 14px;
    font-family: "GT Standard", var(--pwh-font);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--pwh-plan-ink);
}
.pwh-plan__desc {
    margin: 0 0 24px;
    line-height: 1.55;
    font-size: 0.9rem;
    color: #4A5568;
}
.pwh-plan__price {
    margin: 0;
    font-family: "GT Standard", var(--pwh-font);
    font-weight: 900;
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--pwh-plan-ink);
}
.pwh-plan__cur {
    font-size: 0.55em;
    vertical-align: 0.55em;
    margin-right: 1px;
}
.pwh-plan__per {
    font-family: var(--pwh-font);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0;
    color: #4A5568;
}
.pwh-plan__billing {
    margin: 8px 0 22px;
    font-size: 0.85rem;
    color: #4A5568;
}
a.pwh-plan__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: auto;
    margin-bottom: 0;
    border-radius: 12px;
    background: var(--pwh-plan-btn);
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease;
}
a.pwh-plan__btn:hover,
a.pwh-plan__btn:focus {
    background: var(--pwh-plan-ink);
    color: #FFFFFF;
    text-decoration: none;
}
a.pwh-plan__btn--gold {
    background: var(--pwh-gold);
    color: var(--pwh-plan-ink);
}
a.pwh-plan__btn--gold:hover,
a.pwh-plan__btn--gold:focus {
    background: var(--pwh-gold-hover);
    color: var(--pwh-plan-ink);
}
.pwh-plan__features {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pwh-plan__features li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.pwh-plan__features li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.3em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--pwh-plan-ink);
    border-bottom: 2px solid var(--pwh-plan-ink);
    transform: rotate(-45deg);
}
.pwh-plans__more {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
}
.pwh-plans__more-label {
    font-weight: 600;
    color: var(--pwh-muted);
}
.pwh-plans__more a {
    padding: 8px 16px;
    border: 1px solid var(--pwh-plan-line);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--pwh-plan-ink);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}
.pwh-plans__more a:hover,
.pwh-plans__more a:focus {
    border-color: var(--pwh-plan-ink);
    background: #EAF0F8;
    color: var(--pwh-plan-ink);
}

/* ---------- Cart: "Register Domain" search banner – solid navy instead of yellow + globe ---------- */
body .domain-checker-container {
    background: var(--pwh-navy);
    border-radius: 18px;
}
body .domain-checker-container .domain-checker-bg {
    background-image: none;
}
body .domain-checker-container .input-group-box {
    border-radius: 14px;
}

/* ==========================================================================
   Cart: Register Domain page boxes – same card style as the portal home
   (featured extensions, suggested domains, promo boxes, pricing table)
   ========================================================================== */
body #order-standard_cart .spotlight-tld {
    height: auto;
    min-height: 120px;
    padding: 18px 10px 16px;
    background-color: #FFFEF4;
    border: 1px solid #C2D3E8;
    border-radius: 14px;
    color: #0B1629;
    font-family: "GT Standard", var(--pwh-font);
    font-weight: 900;
    font-size: 1.15rem;
}
body #order-standard_cart .spotlight-tld span {
    font-family: var(--pwh-font);
    font-size: 0.95rem;
    color: #4A5568;
}
body #order-standard_cart .spotlight-tld .btn:not(.domain-contact-support) {
    padding: 6px 12px;
    border-radius: 999px;
    background-color: #1A325B;
    border-color: #1A325B;
    color: #FFFFFF;
    font-family: var(--pwh-font);
    font-size: 0.85rem;
    font-weight: 700;
}
body #order-standard_cart .spotlight-tld .btn:not(.domain-contact-support):hover {
    background-color: #0B1629;
    border-color: #0B1629;
}
body #order-standard_cart .spotlight-tld .btn span { color: inherit; font-size: inherit; }
body #order-standard_cart .spotlight-tld-new,
body #order-standard_cart .spotlight-tld-sale,
body #order-standard_cart .spotlight-tld-hot {
    font-family: var(--pwh-font);
    background-color: var(--pwh-gold);
    color: #FFFFFF;
}
body #order-standard_cart .spotlight-tld-hot { background-color: #B50627; }

/* Suggested domains list */
body #order-standard_cart .suggested-domains {
    background-color: #FFFEF4;
    border: 1px solid #C2D3E8;
    border-radius: 16px;
    overflow: hidden;
}
body #order-standard_cart .suggested-domains .panel-heading,
body #order-standard_cart .suggested-domains .card-header {
    background-color: var(--pwh-navy);
    border-bottom: 0;
    color: #FFFFFF;
    font-weight: 700;
}
body #order-standard_cart .suggested-domains .list-group-item {
    background-color: #FFFEF4;
    border-color: #E6EDF6;
    color: #0B1629;
}
body #order-standard_cart .suggested-domains .list-group-item:nth-child(even) {
    background-color: #FAF3E4;
}
body #order-standard_cart .suggested-domains .btn:not(.domain-contact-support) {
    border-radius: 999px;
    background-color: #1A325B;
    border-color: #1A325B;
    color: #FFFFFF;
    font-weight: 700;
}
body #order-standard_cart .suggested-domains .card-footer,
body #order-standard_cart .suggested-domains .panel-footer {
    background-color: #FFFEF4;
    border-top-color: #E6EDF6;
}

/* "Add Web Hosting" / "Transfer your domain" promo boxes */
body #order-standard_cart .domain-promo-box {
    padding: 28px;
    background-color: #FFFEF4;
    border: 1px solid #C2D3E8;
    border-radius: 16px;
    color: #0B1629;
}
body #order-standard_cart .domain-promo-box h3 {
    margin-bottom: 8px;
    font-family: "GT Standard", var(--pwh-font);
    font-weight: 900;
    color: #0B1629;
}
body #order-standard_cart .domain-promo-box i {
    color: var(--pwh-gold);
}
body #order-standard_cart .domain-promo-box p {
    font-size: 0.95rem;
    color: #4A5568;
}

/* Domain pricing table */
body #order-standard_cart .domain-pricing .tld-pricing-header .tld-column,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-xs-2,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-sm-2,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-xs-4,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-sm-4,
body #order-standard_cart .domain-pricing .tld-pricing-header > div {
    background-color: var(--pwh-navy);
    border-bottom: 0;
    color: #FFFFFF;
}
body #order-standard_cart .domain-pricing .tld-row:nth-child(odd) { background-color: #F6EBD6; }
body #order-standard_cart .domain-pricing .tld-row:nth-child(even) { background-color: #FAF3E4; }
body #order-standard_cart .domain-pricing .tld-row.highlighted { background-color: #EAF0F8; }
body #order-standard_cart .spotlight-tlds {
    background: transparent;
}
body #order-standard_cart .domain-promo-box .text-warning,
body #order-standard_cart .domain-promo-box .text-primary {
    color: var(--pwh-gold-dark) !important;
}
body #order-standard_cart .domain-promo-box .btn-warning,
body #order-standard_cart .domain-promo-box .btn-primary {
    background-color: var(--pwh-gold);
    border-color: var(--pwh-gold);
    color: var(--pwh-on-gold);
    border-radius: 999px;
    font-weight: 700;
}
body #order-standard_cart .domain-promo-box .btn-warning:hover,
body #order-standard_cart .domain-promo-box .btn-primary:hover {
    background-color: var(--pwh-gold-hover);
    border-color: var(--pwh-gold-hover);
    color: var(--pwh-on-gold);
}
body #order-standard_cart .domain-promo-box .small {
    color: #4A5568;
}

/* ==========================================================================
   Portal home: each product category with its plans in a slider
   ========================================================================== */
.pwh-cat {
    margin-bottom: 56px;
}
.pwh-cat__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 20px;
}
.pwh-cat__intro {
    flex: 1 1 420px;
    min-width: 0;
}
.pwh-cat__name {
    margin: 0 0 6px;
    font-family: "GT Standard", var(--pwh-font);
    font-weight: 900;
    font-size: 1.6rem;
    color: #0B1629;
}
.pwh-cat__tagline {
    margin: 0;
    max-width: 760px;
    color: #4A5568;
    line-height: 1.55;
}
.pwh-cat__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pwh-cat__browse {
    margin-left: 8px;
    font-weight: 700;
    color: #1A325B;
    white-space: nowrap;
}
.pwh-cat__browse:hover { color: var(--pwh-gold-dark); }
.pwh-slider__arrow {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #C2D3E8;
    border-radius: 50%;
    background: #FFFEF4;
    color: #0B1629;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.pwh-slider__arrow:hover:not(:disabled) {
    background: #EAF0F8;
    border-color: #0B1629;
}
.pwh-slider__arrow:disabled {
    opacity: .4;
    cursor: default;
}
.pwh-slider__arrow[hidden] { display: none; }

/* The sliding row: 3 cards on desktop, 2 on tablets, 1 (with a peek) on phones */
.pwh-slider__track {
    --pwh-gap: 28px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * var(--pwh-gap)) / 3);
    gap: var(--pwh-gap);
    align-items: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    /* room for the featured card's shadow, without changing the layout */
    padding: 8px 24px 48px;
    margin: -8px -24px -48px;
    scroll-padding-left: 24px;
    scrollbar-width: none;
}
.pwh-slider__track::-webkit-scrollbar { display: none; }
.pwh-slider__track:focus-visible {
    outline: 2px solid var(--pwh-gold);
    outline-offset: 4px;
    border-radius: 16px;
}
@media (max-width: 991.98px) {
    .pwh-slider__track { grid-auto-columns: calc((100% - var(--pwh-gap)) / 2); }
}
@media (max-width: 575.98px) {
    .pwh-slider__track { --pwh-gap: 16px; grid-auto-columns: 86%; }
}
.pwh-slider__track > .pwh-plan {
    scroll-snap-align: start;
}
.pwh-slider__track .pwh-plan__btn {
    margin-top: 0;
    margin-bottom: 28px;
}
.pwh-slider__track .pwh-plan__name {
    font-size: 1.4rem;
}
.pwh-slider__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    min-height: 6px;
}
.pwh-slider__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #C2C8D2;
    transition: width .2s ease, background-color .2s ease;
}
.pwh-slider__dot.is-active {
    width: 24px;
    background: #1A325B;
}

/* "+" to show the rest of a long feature list */
.pwh-plan__more {
    margin-top: 4px;
}
.pwh-plan__more > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    color: #0B1629;
    font-size: 1.2rem;
    line-height: 1;
}
.pwh-plan__more > summary::-webkit-details-marker { display: none; }
.pwh-plan__more > summary::before,
.pwh-plan__more > summary::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #C2D3E8;
}
.pwh-plan__more[open] > summary { margin-bottom: 14px; }
.pwh-plan__more[open] > summary span[aria-hidden] { transform: rotate(45deg); display: inline-block; }

/* Domain cards under the sliders */
.pwh-plans__grid--domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 575.98px) {
    .pwh-plans__grid--domains { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Client home: information bar (e.g. 2FA reminder) ---------- */
.pwh-infobar {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin: 0 0 28px;
    padding: 16px 20px;
    border: 1px solid #C2D3E8;
    border-left: 0;
    border-radius: var(--pwh-radius);
    background: #EAF0F8;
    color: #0B1629;
    box-shadow: inset 4px 0 0 #1A325B;
}
.pwh-infobar__icon {
    flex: 0 0 22px;
    color: #1A325B;
    margin-top: 1px;
}
.pwh-infobar__text {
    margin: 0;
    line-height: 1.55;
}
.pwh-infobar__text a {
    color: #1A325B;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pwh-infobar__text a:hover,
.pwh-infobar__text a:focus {
    color: var(--pwh-gold-dark);
}
/* 2FA reminder: red bar with white text */
.pwh-infobar {
    background: #B50627;
    border-color: #B50627;
    color: #FFFFFF;
    box-shadow: inset 4px 0 0 #7E0418;
}
.pwh-infobar__icon { color: #FFFFFF; }
.pwh-infobar__text a,
.pwh-infobar__text a:hover,
.pwh-infobar__text a:focus { color: #FFFFFF; }
.pwh-infobar__text a:hover,
.pwh-infobar__text a:focus { text-decoration-thickness: 2px; }
/* 2FA reminder: 60% red background, 1px red border, no left stripe */
.pwh-infobar {
    background: rgba(181, 6, 39, 0.6);
    border: 1px solid #B50627;
    box-shadow: none;
}

/* ---------- Cart: "Choose a Domain" options – no grey background ---------- */
body #order-standard_cart .domain-selection-options .option,
body #order-standard_cart .domain-selection-options .option-selected {
    background-color: transparent;
}

/* ---------- Cart: product box headers (e.g. "cPanel Business Hosting - Entry") ---------- */
body #order-standard_cart .products .product header {
    background: #172A4D;
}
body #order-standard_cart .products .product header span {
    color: #FBF8F3;
    font-weight: 700;
}
body #order-standard_cart .products .product header .qty {
    color: #D3DBE8;
}
/* Product boxes: 8px rounded top corners, header flush with the box edge */
body #order-standard_cart .products .product {
    padding-top: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
body #order-standard_cart .products .product header {
    margin: 0;
    border-radius: 7px 7px 0 0;
}

/* ---------- Portal home: "How can we help" / "Your Account" icon boxes ---------- */
.action-icon-btns a {
    background-color: #172A4D;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 12px;
}
.action-icon-btns a .ico-container i {
    color: #FFFFFF;
}
.action-icon-btns a:hover,
.action-icon-btns a:focus {
    background-color: #0B1629;
    color: #FFFFFF;
    text-decoration: none;
}

/* ---------- Transfer Domain page: one heading only ----------
   Hide the small "Transfer Domain" page title; keep "Transfer your domain to us". */
body #order-standard_cart .cart-body:has(#frmDomainTransfer) > .header-lined {
    display: none;
}
body #order-standard_cart .cart-body:has(#frmDomainTransfer) > .text-center {
    margin-top: 8px;
    text-align: left !important;
}

/* ---------- Header on phones: logo left, cart + menu buttons on the right (one row) ---------- */
@media (max-width: 1199.98px) {
    header.header .navbar:not(.main-navbar-wrapper) > .container {
        flex-wrap: nowrap;
        align-items: center;
    }
    header.header .navbar-brand {
        flex: 0 1 auto;
        min-width: 0;
        margin-right: 12px !important;
    }
    header.header .navbar-brand .logo-img {
        max-width: 100%;
    }
    header.header .navbar:not(.main-navbar-wrapper) > .container > form {
        display: none;
    }
    header.header .toolbar {
        flex-direction: row;
        flex-shrink: 0;
        margin-left: auto;
    }
}
@media (max-width: 575.98px) {
    header.header .logo-img {
        height: 36px;
    }
    header.header .toolbar .nav-item {
        margin-left: 10px !important;
    }
    header.header .toolbar .nav-link {
        width: 42px;
        height: 42px;
    }
}
/* Phones: less side padding so the logo sits further left and the buttons further right */
@media (max-width: 575.98px) {
    header.header .navbar:not(.main-navbar-wrapper) {
        padding-left: 0;
        padding-right: 0;
    }
    header.header .navbar:not(.main-navbar-wrapper) > .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    header.header .navbar-brand {
        margin-right: 8px !important;
    }
}

/* ---------- Top bar: "Back to main website" link (after notifications) ---------- */
header.header .topbar .pwh-topbar-site {
    margin-left: 6px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0 !important;
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}
header.header .topbar .pwh-topbar-site i {
    margin-right: 4px;
    font-size: 0.85em;
}
header.header .topbar .pwh-topbar-site:hover,
header.header .topbar .pwh-topbar-site:focus {
    color: var(--pwh-gold);
    text-decoration: none;
}
