/*
 * Infinweb WHMCS child theme (parent: twenty-one).
 * Matches infinweb.com: colors and type measured from the live site on 2026-10-29.
 * Vault: Wiki/concepts/WHMCS-Seamless-Branding-Plan-RPI.md
 */
:root {
    --iw-navy: #000047;      /* headings, menu */
    --iw-blue: #3183D7;      /* brand blue, buttons */
    --iw-sky: #36AFF9;       /* link hover */
    --iw-accent: #28A8E0;    /* menu hover and current item (site's global accent) */
    --iw-text: #6A7695;      /* body text */
    --iw-band: #E3F4FA;      /* light blue bands */
    --iw-band-soft: #F2F9FD; /* page header band */
    --iw-border: #C3C9D2;    /* input outlines */
    --iw-footer: #2A363F;
    --iw-footer-bar: #1C2329;
    --iw-footer-muted: #8E9194;
}

/* Type */
body.iw-theme,
body.iw-theme .btn,
body.iw-theme .form-control,
body.iw-theme .dropdown-menu {
    font-family: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.iw-theme {
    color: var(--iw-text);
    background-color: #fff;
}
body.iw-theme h1, body.iw-theme h2, body.iw-theme h3,
body.iw-theme h4, body.iw-theme h5, body.iw-theme .h1,
body.iw-theme .h2, body.iw-theme .h3 {
    color: var(--iw-navy);
    font-weight: 700;
}
body.iw-theme a { color: var(--iw-blue); }
body.iw-theme a:hover { color: var(--iw-sky); }

/* Header: the site's header */
.iw-site-nav {
    background: #fff;
    border-bottom: 1px solid #EEF1F5;
    padding-top: 14px;
    padding-bottom: 14px;
}
/* 71 px high, as on infinweb.com (245 x 71). header.header prefix: twenty-one caps .logo-img at 60 px. */
header.header .iw-site-nav .iw-logo { height: 71px; max-height: 71px; width: auto; max-width: none; }
/* Narrow phones: 60 px high, so the cart and menu buttons stay on the logo's row. */
@media (max-width: 419.98px) {
    header.header .iw-site-nav .iw-logo { height: 60px; max-height: 60px; }
}
.iw-site-nav .iw-menu .nav-link {
    color: var(--iw-navy);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 16px;
}
.iw-site-nav .iw-menu .nav-link:hover,
.iw-site-nav .iw-menu .show > .nav-link,
.iw-site-nav .iw-menu .dropdown:hover > .nav-link { color: var(--iw-accent); }
/* Dropdowns as on the site: 240 px, white, soft shadow, small uppercase items */
.iw-site-nav .dropdown-menu {
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 10px 24px;
    min-width: 240px;
}
/* header.header prefix: twenty-one's "header.header .navbar a" would win otherwise */
header.header .iw-site-nav .dropdown-item {
    color: var(--iw-navy);
    font-size: 12px;
    line-height: 24px;
    text-transform: uppercase;
    padding: 8px 12px;
    transition: color 0.3s ease-in;
}
header.header .iw-site-nav .dropdown-item:hover,
header.header .iw-site-nav .dropdown-item:focus { color: var(--iw-text); background: transparent; }
/* Desktop (992 px and up, as on the site): open on hover. Phone and tablet keep tap to open. */
@media (min-width: 992px) {
    .iw-site-nav .iw-menu .dropdown > .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        margin-top: 0;
        transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
    }
    .iw-site-nav .iw-menu .dropdown:hover > .dropdown-menu,
    .iw-site-nav .iw-menu .dropdown:focus-within > .dropdown-menu,
    .iw-site-nav .iw-menu .dropdown > .dropdown-menu.show {
        visibility: visible;
        opacity: 1;
    }
}
.iw-site-nav .cart-btn { color: var(--iw-navy); }
/* Phone header buttons: navy with no box, like desktop. Twenty-one's
   "header.header .toolbar .nav-link" gives them a light gray box and icon. */
header.header .iw-site-nav .toolbar .nav-link {
    border: 0;
    background: transparent;
    color: var(--iw-navy);
    font-size: 20px;
    padding: 8px 10px;
}
/* The site's hamburger is thin: use the light weight of the icon */
header.header .iw-site-nav .toolbar .fa-bars { font-weight: 300; }
.iw-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 59px;
    height: 59px;
    padding: 0 18px;
    background: var(--iw-blue);
    color: #fff !important;
    font-size: 20px;
}
.iw-account-btn:hover { background: var(--iw-sky); text-decoration: none; }

/* Logged-in client menu: a quiet second row */
.header .iw-client-nav { background: var(--iw-band-soft); }
.header .iw-client-nav .nav-link { color: var(--iw-navy); }

/* Page header band, like the site's breadcrumb band */
.master-breadcrumb {
    background: var(--iw-band-soft);
    border-bottom: 0;
}
.master-breadcrumb .breadcrumb { background: transparent; margin: 0; padding: 18px 0; }
.master-breadcrumb .breadcrumb-item a { color: var(--iw-navy); }

/* Buttons in the site's style: square corners, brand blue */
body.iw-theme .btn-primary,
body.iw-theme .btn-success,
body.iw-theme .btn-info {
    background-color: var(--iw-blue);
    border-color: var(--iw-blue);
    border-radius: 0;
    font-weight: 600;
}
body.iw-theme .btn-primary:hover,
body.iw-theme .btn-success:hover,
body.iw-theme .btn-info:hover {
    background-color: var(--iw-navy);
    border-color: var(--iw-navy);
}
body.iw-theme .btn-default { border-radius: 0; }
/* Text on brand buttons (links styled as buttons inherit the link color otherwise) */
body.iw-theme .btn-primary,
body.iw-theme a.btn-primary,
body.iw-theme .btn-success,
body.iw-theme .btn-info,
body.iw-theme .btn-warning,
body.iw-theme a.btn-warning { color: #fff; }
/* The cart's yellow promo (btn-warning, text-warning) in brand blue */
body.iw-theme .btn-warning {
    background-color: var(--iw-blue);
    border-color: var(--iw-blue);
    border-radius: 0;
    font-weight: 600;
}
body.iw-theme .btn-warning:hover { background-color: var(--iw-navy); border-color: var(--iw-navy); color: #fff; }
body.iw-theme .text-warning { color: var(--iw-blue) !important; }
/* Yellow notices and badges (alert-warning in 10 twenty-one templates, e.g. the forced-2FA notice on
   Security Settings) in the site's light blue band with navy text and a brand-blue edge. */
body.iw-theme .alert-warning {
    background-color: var(--iw-band);
    border-color: var(--iw-blue);
    color: var(--iw-navy);
}
body.iw-theme .alert-warning hr { border-top-color: var(--iw-blue); }
body.iw-theme .alert-warning .alert-link,
body.iw-theme .alert-warning a { color: var(--iw-blue); }
body.iw-theme .badge-warning { background-color: var(--iw-blue); color: #fff; }
body.iw-theme a.badge-warning:hover,
body.iw-theme a.badge-warning:focus { background-color: var(--iw-navy); color: #fff; }
body.iw-theme .form-control { border-color: var(--iw-border); border-radius: 0; }

/* Cart sidebar and panels */
body.iw-theme .card { border-color: #E5E8F0; border-radius: 0; }
body.iw-theme .list-group-item.active,
body.iw-theme .list-group-item.active:hover {
    background-color: var(--iw-blue);
    border-color: var(--iw-blue);
}

/* Domain check: the site's light blue band instead of the yellow globe banner */
body.iw-theme .domain-checker-container {
    background: var(--iw-band) !important;
    border-radius: 0;
}
body.iw-theme .domain-checker-bg { background-image: none; }
body.iw-theme .domain-checker-container .input-group-box,
body.iw-theme .domain-checker-container .form-control { border: 1px solid var(--iw-border); }
body.iw-theme .domain-checker-available { color: var(--iw-blue); }

/* Badges: the global link color above would make their text blue on gray */
body.iw-theme a.badge { color: #fff; }
/* Domain extension category tags: light blue, the selected one brand blue */
body.iw-theme .tld-filters a.badge {
    background: var(--iw-band);
    color: var(--iw-navy);
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 12px;
    margin: 0 4px 6px 0;
}
body.iw-theme .tld-filters a.badge:hover { background: var(--iw-accent); color: #fff; text-decoration: none; }
body.iw-theme .tld-filters a.badge-success,
body.iw-theme .tld-filters a.badge-success:hover { background: var(--iw-blue); color: #fff; }

/* Client area dashboard: WHMCS colors the counter lines (blue, green, red, gold) and the panel
   buttons ("My Services" is gold). Brand blue here, like the rest of the theme. */
body.iw-theme .tiles .tile .highlight[class*="bg-color-"] { background-color: var(--iw-blue); }
body.iw-theme .btn.btn-default[class*="bg-color-"] {
    background-color: var(--iw-blue);
    border-color: var(--iw-blue);
    border-radius: 0;
    color: #fff;
}
body.iw-theme .btn.btn-default[class*="bg-color-"]:hover { background-color: var(--iw-navy); border-color: var(--iw-navy); color: #fff; }

/* Footer: the site's footer. Scoped with #footer so it outranks twenty-one's own footer rules. */
/* Sizes and spacing measured from infinweb.com's footer (template 11755) on 2026-10-29. */
body.iw-theme #footer.iw-footer {
    background: var(--iw-footer);
    color: var(--iw-text);
    padding: 79px 0 0;
    margin-top: 60px;
}
body.iw-theme #footer.iw-footer h4 {
    color: #fff;
    font-size: 20px;
    line-height: 22px;
    font-weight: 600;
    margin-bottom: 15px; /* 25 -> 15 px, as footer 11755 (Jacob 2026-10-30: "tighten the gap between the header and menu options") */
}
body.iw-theme #footer.iw-footer p,
body.iw-theme #footer.iw-footer li { color: #AAAAAA; font-size: 14px; line-height: 21px; }
body.iw-theme #footer.iw-footer .row li { margin-bottom: 10px; }
body.iw-theme #footer.iw-footer a { color: #AAAAAA; }
body.iw-theme #footer.iw-footer a:hover { color: #fff; text-decoration: none; }
body.iw-theme #footer.iw-footer .iw-footer-logo { width: 260px; max-width: 100%; height: auto; margin-bottom: 30px; }
/* The white lockup's icon is taller than its text: on desktop (Elementor's 1,025 px and up) move it up
   23 px so "INFINWEB" lines up with the column headings, as on infinweb.com (footer 11755). */
@media (min-width: 1025px) {
    body.iw-theme #footer.iw-footer .iw-footer-logo { margin-top: -23px; }
}
body.iw-theme #footer.iw-footer .iw-footer-about { margin-bottom: 30px; }
body.iw-theme #footer.iw-footer .iw-contact li { display: flex; align-items: flex-start; margin-bottom: 15px; }
body.iw-theme #footer.iw-footer .iw-contact i {
    flex: 0 0 16px;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    color: var(--iw-accent); /* the logo blue, as on infinweb.com */
    margin-right: 15px;
}
body.iw-theme #footer.iw-footer .iw-copyright {
    background: var(--iw-footer-bar);
    margin-top: 40px;
    padding: 23px 0 22px;
}
body.iw-theme #footer.iw-footer .iw-copyright p,
body.iw-theme #footer.iw-footer .iw-copyright .btn { color: var(--iw-footer-muted); font-size: 16px; line-height: 24px; background: transparent; }
body.iw-theme #footer.iw-footer .iw-copyright .btn { padding-top: 0; padding-bottom: 0; }
body.iw-theme #footer.iw-footer .iw-copyright p.copyright { margin: 0; }
/* Desktop: the site's five column widths inside the 1140 px row (each includes the 10 px gap after it; footer 11755,
   5 columns since 2026-10-30), and its 100 px gap above the copyright bar */
@media (min-width: 992px) {
    body.iw-theme #footer.iw-footer .row > div { padding-left: 0; padding-right: 0; }
    body.iw-theme #footer.iw-footer .row > .iw-footer-about { flex: 0 0 24.39%; max-width: 24.39%; margin-bottom: 0; padding-right: 10px; }
    body.iw-theme #footer.iw-footer .row > .iw-footer-services { flex: 0 0 18.86%; max-width: 18.86%; padding-left: 40px; }
    body.iw-theme #footer.iw-footer .row > .iw-footer-svc { flex: 0 0 16.4%; max-width: 16.4%; }
    body.iw-theme #footer.iw-footer .row > .iw-footer-support { flex: 0 0 16.84%; max-width: 16.84%; }
    body.iw-theme #footer.iw-footer .row > .iw-footer-contact { flex: 0 0 23.51%; max-width: 23.51%; }
    /* The site's headings sit 5 px above the column top */
    body.iw-theme #footer.iw-footer h4 { margin-top: -5px; }
    body.iw-theme #footer.iw-footer ul,
    body.iw-theme #footer.iw-footer .iw-footer-about p { margin-bottom: 0; }
    body.iw-theme #footer.iw-footer .iw-copyright { margin-top: 100px; }
    body.iw-theme #footer.iw-footer .iw-copyright .container { padding-left: 0; padding-right: 0; }
}

/* Phone and tablet bottom bar (below 992 px): Get Started, Products, Support, Login.
   The same markup and rules are in infinweb.com's infinweb-support.php (Section 11), so the bar
   looks the same on both sites. Jacob, 2026-10-29: "Phones and tablets". */
.iw-bottom,
.iw-bottom-sheet { display: none; }
@media (max-width: 991.98px) {
    body.iw-has-bottom { padding-bottom: 61px; }
    nav.iw-bottom {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: flex;
        background: #000047;
        border-top: 3px solid #3183D7;
        padding-bottom: env(safe-area-inset-bottom);
        font-family: "Poppins", sans-serif;
    }
    .iw-bottom-sheet:not([hidden]) {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(61px + env(safe-area-inset-bottom));
        z-index: 1029;
        display: block;
        max-height: 70vh;
        overflow-y: auto;
        background: #fff;
        box-shadow: 0 -8px 24px rgba(0, 0, 71, 0.15);
        padding: 8px 24px;
    }
    /* Hidden while the phone menu is open */
    body:has(#iwSiteNav.show) nav.iw-bottom,
    body:has(.navbar-area .navbar-collapse.show) nav.iw-bottom { display: none; }
}
nav.iw-bottom .iw-bottom-link {
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 58px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
nav.iw-bottom .iw-bottom-link + .iw-bottom-link { border-left: 1px solid rgba(255, 255, 255, 0.12); }
nav.iw-bottom .iw-bottom-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
nav.iw-bottom .iw-bottom-link:hover,
nav.iw-bottom .iw-bottom-link:focus,
nav.iw-bottom .iw-bottom-link.is-current,
nav.iw-bottom .iw-bottom-link[aria-expanded="true"] { color: #28A8E0; text-decoration: none; outline: none; }
div.iw-bottom-sheet > a {
    display: block;
    padding: 8px 0 8px 16px; /* 2026-11-19: indented, no lines, as the phone menu (Jacob) */
    border-bottom: 0;
    color: #000047;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    line-height: 24px;
    text-transform: uppercase;
    text-decoration: none;
}
div.iw-bottom-sheet > a:last-child { border-bottom: 0; }
div.iw-bottom-sheet > a:hover { color: #6A7695; text-decoration: none; }
/* Section headings in the sheet ("Products", "Services"), the same as infinweb-support.php 2.10 Section 11 */
div.iw-bottom-sheet > .iw-sheet-label {
    padding: 18px 0 4px; /* 2026-11-19: the phone menu's top-level style, so the headings are easy to read */
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: normal;
    text-transform: uppercase;
    color: #000047;
}
div.iw-bottom-sheet > .iw-sheet-label:first-of-type { padding-top: 10px; }
/* X to close the sheet (2026-11-19, Jacob: "Mobile menu needs an x to close it"). Sticky, so it stays at the top. */
div.iw-bottom-sheet > .iw-sheet-close { position: sticky; top: 0; float: right; z-index: 1; width: 44px; height: 44px; margin: 2px -12px 0 0; padding: 10px; border: 0; background: transparent; color: #000047; cursor: pointer; }
div.iw-bottom-sheet > .iw-sheet-close svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Invoice page (viewinvoice.tpl, our copy gives <body> "iw-theme iw-invoice"): the light blue page
   band behind the white invoice, and WHMCS's teal Ledger bar and green credit header in navy.
   Bootstrap's bg-* rules use !important, so these must too. The red UNPAID status stays red. */
body.iw-theme.iw-invoice { background-color: var(--iw-band-soft); }
body.iw-invoice .bg-info,
body.iw-invoice .bg-success { background-color: var(--iw-navy) !important; }
/* The invoice logo comes from WHMCS's LogoURL (a 600 px file for sharp screens). Show it at 300 px. */
body.iw-invoice img[src$="infinweb-logo-header.png"] { width: 300px; max-width: 100%; height: auto; }

/* Signed-in header (plan 3j, 2026-11-07): fewer, aligned rows. */
/* Topbar in brand navy, not twenty-one's gray. */
header.header .topbar { background-color: var(--iw-navy); color: #fff; }
header.header .topbar .btn,
header.header .topbar .active-client .btn,
header.header .topbar .active-client .input-group-text { color: #fff; }
header.header .topbar .active-client .btn.btn-active-client span { border-bottom-color: rgba(255,255,255,.65); }
/* Client menu text starts at the logo's edge (twenty-one adds 1rem inside the container). */
@media (min-width: 1200px) {
    header.header .main-navbar-wrapper.iw-client-nav .navbar-collapse { padding-left: 0; padding-right: 0; }
}
/* Bold for contrast, same gray and size as before (Jacob, mockup v4). */
header.header .iw-client-nav #nav > li > a,
header.header .iw-client-nav .navbar-nav.ml-auto > li > a { font-weight: 600; }
/* Signed-in pages: the breadcrumb is page context, not a third menu band. */
.master-breadcrumb.iw-crumb-compact { background: #fff; }
.master-breadcrumb.iw-crumb-compact .breadcrumb { padding: 10px 0; }

/* Phone pre-check fixes (2026-11-18). 1: keep the 3 parts of a Yes/No switch on one line. */
.bootstrap-switch .bootstrap-switch-container { white-space: nowrap; }
/* 2: body padding does not work (twenty-one sets body height 100%), so pad the copyright band.
   2026-11-20: 22 px became 72 px, so the Get Help button (16-59 px above the bar) no longer covers the last line.
   Same 72 px on infinweb.com (infinweb-support.php SECTION 18). */
@media (max-width: 991.98px) {
    body.iw-has-bottom #footer.iw-footer .iw-copyright { padding-bottom: calc(72px + 61px + env(safe-area-inset-bottom)); }
}


/* Phone pre-check fix 3 (2026-11-19): iOS Safari zooms the page when a field under 16 px gets focus. */
@media (max-width: 991.98px) {
    body.iw-theme .form-control,
    body.iw-theme select,
    body.iw-theme textarea,
    body.iw-theme input[type="text"],
    body.iw-theme input[type="email"],
    body.iw-theme input[type="password"],
    body.iw-theme input[type="tel"],
    body.iw-theme input[type="number"],
    body.iw-theme input[type="search"],
    body.iw-theme input[type="url"] { font-size: 16px; }
}

/* Phone bottom bar hides while a text field has focus (2026-11-19): iOS keeps fixed bars above the
   keyboard, so the bar covered the field being typed in. Same rule in infinweb-support.php SECTION 15. */
@media (max-width:991.98px){body:has(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]):not([type=file]):focus,textarea:focus,select:focus,[contenteditable=true]:focus) nav.iw-bottom,body:has(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]):not([type=file]):focus,textarea:focus,select:focus,[contenteditable=true]:focus) .iw-bottom-sheet,body:has(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]):not([type=file]):focus,textarea:focus,select:focus,[contenteditable=true]:focus) #iw-gh-launch{display:none!important}}


/* Phone footer (2026-11-19, Jacob: "Contact beside Support", swap Services and Support, copyright lines).
   Same as infinweb.com footer 11755: rows Products | Support, then Services | Contact Us. The copyright
   shows 3 lines: "... LLC." / "All Rights Reserved | Privacy Policy" / "Terms of Service | Refund Policy". */
@media (max-width: 767.98px) {
    /* Grid (Jacob: "Services should move down and contact us up ... so bottom of both align better"):
       Contact Us starts under Support, Services sits at the bottom of the left column. */
    body.iw-theme #footer.iw-footer .container > .row { display: grid; grid-template-columns: 45% 47%; column-gap: 25px; row-gap: 25px; margin: 0; grid-template-areas: "about about" "prod sup" "prod con" "svc con"; }
    /* 2026-11-20 (Jacob's iPhone): the website footer box is 315 px wide on phones, so it is centered with
       wider sides on a large phone. Billing filled the screen, so the two footers differed. Same 315 px here. */
    body.iw-theme #footer.iw-footer .container > .row { max-width: 315px; margin-left: auto; margin-right: auto; }
    body.iw-theme #footer.iw-footer .container > .row > div { max-width: none; min-width: 0; padding-left: 0; padding-right: 0; }
    /* Match infinweb.com footer 11755 on phones (Jacob: "The billing footer does not match the site footer"):
       50 px top, a 315 px column area, logo and intro centered, 16 px headings, copyright full width. */
    body.iw-theme #footer.iw-footer { padding-top: 50px; }
    body.iw-theme #footer.iw-footer > .container { padding-left: 30px; padding-right: 30px; }
    body.iw-theme #footer.iw-footer .row > .iw-footer-about { margin-bottom: 0; text-align: center; }
    body.iw-theme #footer.iw-footer .iw-footer-logo { display: block; margin: 0 auto 30px; }
    body.iw-theme #footer.iw-footer .iw-footer-about p { margin-bottom: 0; }
    body.iw-theme #footer.iw-footer h4 { font-size: 16px; line-height: 17.6px; }
    body.iw-theme #footer.iw-footer .row ul { margin-bottom: 0; }
    body.iw-theme #footer.iw-footer .row ul > li:last-child { margin-bottom: 0; }
    body.iw-theme #footer.iw-footer .iw-copyright .container { justify-content: center !important; }
    body.iw-theme #footer.iw-footer .iw-copyright p.copyright { flex: 0 0 100%; max-width: 100%; text-align: center; }
    body.iw-theme #footer.iw-footer .iw-copyright ul { margin-top: 10px; }
    body.iw-theme #footer.iw-footer .row > .iw-footer-about { grid-area: about; }
    body.iw-theme #footer.iw-footer .row > .iw-footer-services { grid-area: prod; }
    body.iw-theme #footer.iw-footer .row > .iw-footer-support { grid-area: sup; }
    body.iw-theme #footer.iw-footer .row > .iw-footer-contact { grid-area: con; }
    body.iw-theme #footer.iw-footer .row > .iw-footer-svc { grid-area: svc; align-self: end; }
    body.iw-theme #footer.iw-footer .iw-contact i { margin-right: 8px; }
    body.iw-theme #footer.iw-footer .iw-copyright .iw-cr { display: block; }
    body.iw-theme #footer.iw-footer .iw-copyright .iw-cr-sep { display: none; }
}

/* === 2026-11-29 Service page compact header + link-button text (WHMCS-Service-Page-Compact-Header-RPI) === */

/* 1. Text on solid buttons that are links (a.btn-*), at rest and on hover.
   "body.iw-theme a" (0,1,2) and "body.iw-theme a:hover" (0,2,2) beat Bootstrap's own button colors. */
body.iw-theme a.btn-danger,
body.iw-theme a.btn-secondary,
body.iw-theme a.btn-dark,
body.iw-theme a.btn-primary:hover,
body.iw-theme a.btn-success:hover,
body.iw-theme a.btn-info:hover,
body.iw-theme a.btn-warning:hover,
body.iw-theme a.btn-danger:hover,
body.iw-theme a.btn-secondary:hover,
body.iw-theme a.btn-dark:hover,
body.iw-theme a.btn-outline-primary:hover,
body.iw-theme a.btn-outline-danger:hover { color: #fff; }
body.iw-theme a.btn-default:hover,
body.iw-theme a.btn-light:hover { color: var(--iw-navy); }

/* 2. Service page compact header. Inert until the hook prints .iw-svc-row.
   No :has() support or no hook output = the stock box shows as today. */
body.iw-theme #tabOverview.active:has(.iw-svc-row),
body.iw-theme #tabOverview.active:has(.infinweb-website-speed),
body.iw-theme #tabOverview.active:has(.infinweb-hosting-usage) { display: flex; flex-direction: column; }
body.iw-theme #tabOverview > div:has(> .iw-svc-row) { order: -2; margin-bottom: 12px; }
/* Jacob 2026-11-29: "Website Speed" (GTmetrix hook) goes below the Hosting Information tabs. */
body.iw-theme #tabOverview > div:has(> .infinweb-website-speed) { order: 1; margin-top: 16px; }

/* 2d. "Hosting usage" card (hook infinweb_hosting_usage.php, priority 2). Jacob 2026-11-29: below
   Hosting Information and above Website speed. Same order as the speed card, so the DOM order
   (priority 2 before 3) puts it first. RPI: Wiki/concepts/WHMCS-Hosting-Usage-Card-RPI.md */
body.iw-theme #tabOverview > div:has(> .infinweb-hosting-usage) { order: 1; margin-top: 16px; }
body.iw-theme .infinweb-hosting-usage { text-align: left; border: 1px solid #dee2e6; border-radius: 4px; padding: 16px; margin: 20px 0 0; background: #fff; }
body.iw-theme .infinweb-hosting-usage .iwu-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
body.iw-theme .infinweb-hosting-usage .iwu-head h3 { margin: 0; font-size: 18px; font-weight: 600; color: #000047; }
body.iw-theme .infinweb-hosting-usage .iwu-updated { font-size: 12px; color: #555f6d; }
body.iw-theme .infinweb-hosting-usage .iwu-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
body.iw-theme .infinweb-hosting-usage .iwu-tile { flex: 1 1 240px; min-width: 0; border: 1px solid #e3e7ec; border-radius: 4px; padding: 12px; }
body.iw-theme .infinweb-hosting-usage .iwu-label { font-size: 13px; color: #555f6d; }
body.iw-theme .infinweb-hosting-usage .iwu-main { font-size: 22px; font-weight: 600; color: #000047; line-height: 1.3; }
body.iw-theme .infinweb-hosting-usage .iwu-of { font-size: 14px; font-weight: 400; color: #555f6d; }
body.iw-theme .infinweb-hosting-usage .iwu-bar { height: 8px; margin: 8px 0 4px; border-radius: 4px; background: #e9edf2; overflow: hidden; }
body.iw-theme .infinweb-hosting-usage .iwu-bar > span { display: block; height: 100%; min-width: 3px; border-radius: 4px; }
body.iw-theme .infinweb-hosting-usage .iwu-green > span { background: #2e9e4f; }
body.iw-theme .infinweb-hosting-usage .iwu-amber > span { background: #d98e00; }
body.iw-theme .infinweb-hosting-usage .iwu-red > span { background: #c62f3d; }
body.iw-theme .infinweb-hosting-usage .iwu-sub { font-size: 12px; color: #555f6d; }
body.iw-theme .infinweb-hosting-usage .iwu-parts { margin-top: 8px; font-size: 13px; color: #555f6d; }
/* v2 donut (Jacob 2026-11-29: "We should include visuals like this"). Categorical slots 1-3,
   validated (dataviz validate_palette.js, light): CVD worst 9.2, normal 27.6. Aqua is under 3:1
   on white, so the legend always names each part with its size. */
/* v4 (Jacob 2026-11-29: "Column width should be balanced"): the two tiles share the width equally. */
body.iw-theme .infinweb-hosting-usage .iwu-disk,
body.iw-theme .infinweb-hosting-usage .iwu-bw { flex: 1 1 0; min-width: 280px; }
body.iw-theme .infinweb-hosting-usage .iwu-bw .iwu-main { margin-top: 8px; font-size: 28px; }
body.iw-theme .infinweb-hosting-usage .iwu-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin: 10px 0 6px; }
body.iw-theme .infinweb-hosting-usage .iwu-donut { position: relative; flex: 0 0 120px; width: 120px; height: 120px; }
body.iw-theme .infinweb-hosting-usage .iwu-donut svg { display: block; }
body.iw-theme .infinweb-hosting-usage .iwu-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
body.iw-theme .infinweb-hosting-usage .iwu-center strong { font-size: 18px; font-weight: 600; line-height: 1.2; color: #000047; }
body.iw-theme .infinweb-hosting-usage .iwu-center span { font-size: 12px; color: #555f6d; }
body.iw-theme .infinweb-hosting-usage .iwu-legend { flex: 1 1 170px; min-width: 0; margin: 0; padding: 0; list-style: none; }
body.iw-theme .infinweb-hosting-usage .iwu-legend li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eef1f4; font-size: 14px; }
body.iw-theme .infinweb-hosting-usage .iwu-legend li:last-child { border-bottom: 0; }
body.iw-theme .infinweb-hosting-usage .iwu-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; }
body.iw-theme .infinweb-hosting-usage .iwu-name { flex: 1 1 auto; color: #555f6d; }
body.iw-theme .infinweb-hosting-usage .iwu-val { font-weight: 600; color: #000047; white-space: nowrap; }
body.iw-theme .infinweb-hosting-usage .iwu-track { stroke: #e9edf2; }
body.iw-theme .infinweb-hosting-usage circle.iwu-c1 { stroke: #2a78d6; }
body.iw-theme .infinweb-hosting-usage circle.iwu-c2 { stroke: #eb6834; }
body.iw-theme .infinweb-hosting-usage circle.iwu-c3 { stroke: #1baf7a; }
body.iw-theme .infinweb-hosting-usage .iwu-dot.iwu-c1 { background: #2a78d6; }
body.iw-theme .infinweb-hosting-usage .iwu-dot.iwu-c2 { background: #eb6834; }
body.iw-theme .infinweb-hosting-usage .iwu-dot.iwu-c3 { background: #1baf7a; }
/* v3 daily bandwidth columns (Jacob 2026-11-29: "A: daily columns"). One hue, slot 1. */
body.iw-theme .infinweb-hosting-usage .iwu-cols { margin-top: 12px; }
body.iw-theme .infinweb-hosting-usage .iwu-cols svg { display: block; width: 100%; height: 64px; overflow: visible; }
body.iw-theme .infinweb-hosting-usage .iwu-col { fill: #2a78d6; }
body.iw-theme .infinweb-hosting-usage .iwu-day:hover .iwu-col { fill: #1c5cab; }
body.iw-theme .infinweb-hosting-usage .iwu-hit { fill: transparent; }
body.iw-theme .infinweb-hosting-usage .iwu-baseline { stroke: #c3c9d2; stroke-width: 1; vector-effect: non-scaling-stroke; }
body.iw-theme .infinweb-hosting-usage .iwu-axis { display: flex; justify-content: space-between; margin: 4px 0 6px; font-size: 11px; color: #555f6d; }

/* 2b. "Billing Overview" box (v2, Jacob 2026-11-29: keep the billing details, left of
   Hosting Information, in the same style). It is the stock box, restyled. On a phone it sits
   after the row and before the tabs (Jacob 2026-11-29: "on mobile it should come before hosting info"). */
body.iw-theme #tabOverview:has(.iw-svc-row) > .card:has(.product-details) {
    order: -1; margin: 0 0 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
body.iw-theme #tabOverview:has(.iw-svc-row) > .card > .card-body { padding: 0; display: flex; flex-direction: column; }
/* The heading looks like the active "Hosting Information" tab. Text = WHMCS lang key billingOverview.
   The icon is a separate pseudo element: the Font Awesome 6 font has letter glyphs of its own. */
body.iw-theme #tabOverview:has(.iw-svc-row) > .card > .card-body::before {
    content: "Billing Overview"; display: block; width: max-content; position: relative; z-index: 1;
    padding: 7px 14px 7px 35px; margin-bottom: -1px; font-size: 14px; line-height: 21px; color: rgb(73, 80, 87);
    background: #fff; border: 1px solid #dee2e6; border-bottom-color: #fff; border-radius: 3.5px 3.5px 0 0;
    font-family: Poppins, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 400; text-transform: none;
}
body.iw-theme #tabOverview:has(.iw-svc-row) > .card:has(.product-details)::before {
    content: "\f571"; position: absolute; z-index: 2; left: 15px; top: 8px; width: 17.5px; text-align: center;
    font-family: "Font Awesome 6 Pro"; font-weight: 900; font-size: 14px; line-height: 21px; color: rgb(73, 80, 87);
}
body.iw-theme #tabOverview:has(.iw-svc-row) .product-details {
    flex: 1 1 auto; background: #fff; border: 1px solid #ddd; border-top-color: #dee2e6; padding: 20px;
}
body.iw-theme #tabOverview:has(.iw-svc-row) .product-details > .row { margin: 0; }
body.iw-theme #tabOverview:has(.iw-svc-row) .product-details > .row > .col-md-6 { flex: 0 0 100%; max-width: 100%; padding: 0; }
body.iw-theme #tabOverview:has(.iw-svc-row) .product-details .product-status { display: none; }
/* The details column: label right and bold, value left, as Hosting Information. */
body.iw-theme #tabOverview:has(.iw-svc-row) .product-details .col-md-6.text-center {
    order: -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 0;
    text-align: left !important; /* beats Bootstrap's .text-center !important */
    font-size: 14px; line-height: 21px; color: rgb(106, 118, 149); overflow-wrap: anywhere;
}
body.iw-theme #tabOverview:has(.iw-svc-row) .product-details .col-md-6.text-center h4 {
    margin: 0; font-size: 14px; line-height: 21px; font-weight: 700; color: rgb(106, 118, 149); text-align: right;
}
/* D2 (Jacob 2026-11-29): no Cancel button here. The sidebar "Actions" list keeps "Request Cancellation".
   Upgrade and Renew stay as small buttons under the details. */
body.iw-theme #tabOverview:has(.iw-svc-row) .product-actions-wrapper > .col-12:has(> a[href*="action=cancel"]) { display: none; }
body.iw-theme #tabOverview:has(.iw-svc-row) .product-actions-wrapper {
    display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 0;
}
body.iw-theme #tabOverview:has(.iw-svc-row) .product-actions-wrapper:has(a:not([href*="action=cancel"])) { margin-top: 16px; }
body.iw-theme #tabOverview:has(.iw-svc-row) .product-actions-wrapper > .col-12 { flex: 0 0 auto; width: auto; max-width: none; padding: 0; }
body.iw-theme #tabOverview:has(.iw-svc-row) .product-actions-wrapper .btn-block {
    display: inline-block; width: auto; margin: 0; padding: 4px 14px; font-size: 0.875rem;
}

/* Wide screens: Billing Overview left, the Hosting Information tabs right, equal widths.
   v3 (Jacob 2026-11-29: billing text wrapped in the 300 px column, white space in Hosting Information).
   Below 1200 px the main column is 610-690 px, too narrow for two boxes, so they stack as on a phone. */
@media (min-width: 1200px) {
    body.iw-theme #tabOverview.active:has(.iw-svc-row) {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-items: start;
    }
    body.iw-theme #tabOverview:has(.iw-svc-row) > * { grid-column: 1 / -1; }
    body.iw-theme #tabOverview:has(.iw-svc-row) > div:has(> .iw-svc-row) { grid-row: 1; }
    body.iw-theme #tabOverview:has(.iw-svc-row) > .card:has(.product-details) { grid-column: 1; grid-row: 2 / span 3; margin: 0; align-self: stretch; }
    body.iw-theme #tabOverview:has(.iw-svc-row) > .nav-tabs { grid-column: 2; grid-row: 2; }
    body.iw-theme #tabOverview:has(.iw-svc-row) > .responsive-tabs-sm-connector { grid-column: 2; grid-row: 3; }
    body.iw-theme #tabOverview:has(.iw-svc-row) > .tab-content { grid-column: 2; grid-row: 4; }
}

/* Phone (Jacob 2026-11-29: "Something looks incorrect with the mobile view for hosting info").
   Stock Twenty-One stacks each label above its value and draws a 90% wide tab list with a
   connector. Here: label and value side by side, as in Billing Overview, and a full-width tab list. */
@media (max-width: 575.98px) {
    body.iw-theme #tabOverview:has(.iw-svc-row) > .nav-tabs { width: 100%; margin-bottom: 8px; }
    body.iw-theme #tabOverview:has(.iw-svc-row) > .responsive-tabs-sm-connector { display: none; }
    body.iw-theme #tabOverview:has(.iw-svc-row) > .tab-content { border-top: 1px solid #ddd; }
    body.iw-theme #tabOverview:has(.iw-svc-row) .product-details-tab-container .row > .col-sm-5 {
        flex: 0 0 46%; max-width: 46%; padding: 0 8px 0 0; text-align: right;
    }
    body.iw-theme #tabOverview:has(.iw-svc-row) .product-details-tab-container .row > .col-sm-7 {
        flex: 0 0 54%; max-width: 54%; padding: 0 0 0 8px; text-align: left; overflow-wrap: anywhere;
    }
}

/* The row: same look as the services list page (table-list). */
body.iw-theme .iw-svc-row { background: #fff; border: 1px solid #EEF1F5; }
body.iw-theme .iw-svc-table { margin-bottom: 0; }
body.iw-theme .iw-svc-table thead th { font-weight: 600; color: var(--iw-navy); text-align: center; border-top: 0; }
body.iw-theme .iw-svc-table thead th:first-child { text-align: left; }
body.iw-theme .iw-svc-table td { vertical-align: middle; }
body.iw-theme .iw-svc-table td:first-child { text-align: left; }

/* Phone: one card, name and status on top, two small label lines below. */
@media (max-width: 575.98px) {
    body.iw-theme .iw-svc-table thead { display: none; }
    body.iw-theme .iw-svc-table tbody tr {
        display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px; padding: 12px;
    }
    body.iw-theme .iw-svc-table td { display: block; padding: 0; border: 0; text-align: left !important; }
    body.iw-theme .iw-svc-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
    body.iw-theme .iw-svc-table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right !important; }
    body.iw-theme .iw-svc-table td:nth-child(2),
    body.iw-theme .iw-svc-table td:nth-child(3) { grid-column: 1 / -1; font-size: 0.875rem; }
    body.iw-theme .iw-svc-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--iw-navy); }
}

/* === 2026-11-29 Portal header: one menu row for a signed-in client (WHMCS-Portal-Header-Menu-RPI section 8e) ===
   header.tpl gives a signed-in client "iw-portal-nav" in place of "iw-site-nav": the logo row holds the WHMCS
   menu (#nav, from $primaryNavbar) and a blue "Hello" button ($secondaryNavbar). Signed-out pages do not change.
   The dropdowns keep twenty-one's look, as in the old second row. */
.iw-portal-nav {
    background: #fff;
    border-bottom: 1px solid #EEF1F5;
    padding-top: 14px;
    padding-bottom: 14px;
}
header.header .iw-portal-nav .iw-logo { height: 71px; max-height: 71px; width: auto; max-width: none; }
@media (max-width: 419.98px) {
    header.header .iw-portal-nav .iw-logo { height: 60px; max-height: 60px; }
}
/* Phone menu button: the same thin, navy hamburger as the site header. */
header.header .iw-portal-nav .toolbar .nav-link {
    border: 0;
    background: transparent;
    color: var(--iw-navy);
    font-size: 20px;
    padding: 8px 10px;
}
header.header .iw-portal-nav .toolbar .fa-bars { font-weight: 300; }
/* Top items: the site menu's type in mixed case (mockup A), Poppins 600 16 px navy.
   Line height 24 px and no vertical padding keep #nav under 30 px high. twenty-one's
   autoCollapse('#nav', 30) (scripts.js) opens its "More" item at 30 px or more. */
header.header .iw-portal-nav #nav > li > a {
    color: var(--iw-navy);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap;
}
header.header .iw-portal-nav #nav > li > a:hover,
header.header .iw-portal-nav #nav > li.show > a { color: var(--iw-accent); text-decoration: none; }
/* Every top item is "no-collapse" (navbar.tpl) since Open a ticket moved into Support,
   so "More" can never hold an item. Hide it, so an empty "More" never shows. */
header.header .iw-portal-nav .collapsable-dropdown { display: none !important; }
/* "Hello, {name}!" as a blue button at the right end (Q5). */
header.header .iw-portal-nav .iw-portal-hello > li > a {
    display: inline-block;
    background: var(--iw-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    padding: 10px 18px;
    white-space: nowrap;
}
header.header .iw-portal-nav .iw-portal-hello > li > a:hover,
header.header .iw-portal-nav .iw-portal-hello > li.show > a { background: var(--iw-sky); color: #fff; text-decoration: none; }
@media (min-width: 992px) {
    header.header .iw-portal-nav #nav { align-items: center; }
    header.header .iw-portal-nav .iw-portal-hello { margin-left: 8px; }
}
/* 992-1,199 px: a little tighter, so the row fits beside the logo. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    header.header .iw-portal-nav #nav > li > a { font-size: 15px; padding-right: 14px !important; }
    header.header .iw-portal-nav .iw-portal-hello > li > a { font-size: 15px; padding: 8px 12px; }
}
/* Phone and tablet: the open menu lists the items, then the Hello button. */
@media (max-width: 991.98px) {
    header.header .iw-portal-nav #nav > li > a { display: block; padding-top: 6px; padding-bottom: 6px; }
    header.header .iw-portal-nav .iw-portal-hello { margin: 8px 0 4px; }
    body:has(#mainNavbar.show) nav.iw-bottom { display: none; }
}
/* The breadcrumb on the light blue band on every signed-in page (Q4), 12 px above and below. */
.master-breadcrumb.iw-crumb-portal .breadcrumb { padding: 12px 0; }
/* Portal header, changes after go-live (Jacob, 2026-11-29). */
/* More space between the logo and the menu (the menu sits left, next to the logo; Hello stays right). */
@media (min-width: 992px) {
    header.header .iw-portal-nav #nav { margin-left: 32px; }
}
/* The Services menu label: "Products/Services" from 1,200 px, "Products" on tablets and phones (hook sets both spans). */
header.header .iw-portal-nav #nav .iw-lbl-short { display: none; }
@media (max-width: 1199.98px) {
    header.header .iw-portal-nav #nav .iw-lbl-long { display: none; }
    header.header .iw-portal-nav #nav .iw-lbl-short { display: inline; }
}
/* "Order New" heading in the Products/Services dropdown: a label, not a link. */
header.header .iw-portal-nav li.iw-menu-heading > a {
    pointer-events: none;
    cursor: default;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--iw-text);
}

/* 2c. Website Information part in "Billing Overview" (Jacob 2026-11-29). Inert until the hook prints
   .iw-webinfo. Its labels are h4 in the details grid, so they use the 2b label style.
   RPI: Wiki/concepts/WHMCS-Edit-My-Website-Button-RPI.md §5. */
body.iw-theme #tabOverview .product-details .iw-webinfo-title {
    grid-column: 1 / -1; margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid #dee2e6;
    font-size: 14px; line-height: 21px; font-weight: 600; color: rgb(73, 80, 87);
}
/* v2 (Jacob 2026-11-29: "WP Admin URL should be shifted left so the whole url fits in one line (or
   reduce font size)"). Its own label column, sized to its own labels, not to "Recurring Amount". */
body.iw-theme #tabOverview .product-details .iw-webinfo {
    grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px;
}
body.iw-theme #tabOverview .product-details .iw-webinfo-url {
    /* 12.5px and no "https://" in the text: every fleet URL fits at 1,664 px (measured 2026-11-29).
       A narrower screen cuts the end with "...". The title attribute shows the full URL. */
    display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Jacob 2026-11-29: "Both at 12.5px". The user value matches the URL. */
body.iw-theme #tabOverview .product-details .iw-webinfo-user { font-size: 12.5px; }
@media (max-width: 575.98px) {
    body.iw-theme #tabOverview .product-details .iw-webinfo-url { white-space: normal; overflow-wrap: anywhere; }
}
/* v2 (Jacob 2026-11-29: "Edit my website button should be smaller to match the Visit Website button"). */
body.iw-theme #tabOverview .product-details .iw-webinfo-btns .btn { font-weight: 400; }
body.iw-theme #tabOverview .product-details .iw-webinfo-btns .btn i { font-size: 13px; }
body.iw-theme #tabOverview .product-details .iw-webinfo-btns {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px;
}
/* W6 (Jacob 2026-11-29: "additional information tab can be removed and we don't need to seen the
   script field"). Script stays on the order form, so the tab is hidden here only. */
body.iw-theme #tabOverview:has(.iw-webinfo) .nav-tabs li:has(> a[href="#additionalinfo"]),
body.iw-theme #tabOverview:has(.iw-webinfo) #additionalinfo { display: none !important; }
