/* VeltrixHost 3.2.3 — SINGLE source of truth for logged-out page geometry.
   Contact/support page's established 1180px width is the standard.
   Replaces the previous vx-public-layout.css in place; no stacked patches.
   Auth split-screen and logged-in dashboard intentionally keep their layout.
   Component appearance, payment controls and checkout functionality unchanged. */

/* Page geometry is configured only here for every guest content shell. */
body.vx-theme.vx-logged-out {
  --vx-guest-width: 1180px;
  --vx-guest-gutter: 28px;
  --vx-guest-top: 40px;
  --vx-guest-bottom: 52px;
  --vx-guest-header-height: 78px;
  --vx-public-logo-width: 154px;
}

/* Guest public pages: invoice, support, contact, knowledgebase, tickets.
   The header uses its original 1536px shell; content stays at 1180px. */
body.vx-theme.vx-public-mode { background: #f5f7fb !important; }
body.vx-public-mode .vx-public-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e2e7ee;
}
body.vx-public-mode .vx-public-header-inner {
  box-sizing: border-box;
  width: min(100%, 1536px);
  min-height: var(--vx-guest-header-height);
  height: var(--vx-guest-header-height);
  margin-inline: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
body.vx-public-mode .vx-public-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}
body.vx-theme.vx-public-mode .vx-public-brand img.vx-assets-brand-logo {
  display: block;
  width: var(--vx-public-logo-width) !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}
body.vx-public-mode .vx-public-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
body.vx-public-mode .vx-public-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #263247;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body.vx-public-mode .vx-public-nav a:hover {
  border-color: #dce2ea;
  background: #f5f7fa;
  color: #0f1728;
}
body.vx-public-mode .vx-public-nav a:focus-visible {
  outline: 2px solid #263247;
  outline-offset: 2px;
}
body.vx-public-mode .vx-public-nav a.vx-public-login {
  border-color: #111;
  background: #111;
  color: #fff;
}
body.vx-public-mode .vx-public-nav a.vx-public-login:hover {
  border-color: #333;
  background: #333;
  color: #fff;
}
body.vx-public-mode .vx-public-main {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: calc(100svh - var(--vx-guest-header-height) - 64px);
  margin: 0;
  padding: var(--vx-guest-top) var(--vx-guest-gutter) var(--vx-guest-bottom);
}
body.vx-public-mode .vx-public-content {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--vx-guest-width);
  min-width: 0;
  margin-inline: auto;
}
body.vx-public-mode .vx-public-content > * { max-width: 100%; }

/* Guest checkout: one container size for headings, order forms and carts.
   The existing checkout header/buttons remain unchanged visually. */
body.vx-theme.vx-checkout-mode.vx-cart-guest > main.vx-checkout-main {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: calc(100svh - 128px) !important;
  margin: 0 !important;
  padding: var(--vx-guest-top) var(--vx-guest-gutter) var(--vx-guest-bottom) !important;
}
body.vx-theme.vx-checkout-mode.vx-cart-guest > main.vx-checkout-main > .vx-checkout-heading,
body.vx-theme.vx-checkout-mode.vx-cart-guest > main.vx-checkout-main > .vx-checkout-body,
body.vx-theme.vx-checkout-mode.vx-cart-guest .vx-checkout-content {
  box-sizing: border-box;
  width: 100% !important;
  max-width: var(--vx-guest-width) !important;
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Guest domain landing: same width and top spacing as public/checkout. */
body.vx-theme.vx-domain-landing-mode.vx-logged-out > main.vx-domain-landing-main {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: calc(100svh - 132px);
  padding: var(--vx-guest-top) var(--vx-guest-gutter) var(--vx-guest-bottom);
}
body.vx-theme.vx-domain-landing-mode.vx-logged-out .vx-domain-landing-hero,
body.vx-theme.vx-domain-landing-mode.vx-logged-out .vx-domain-landing-body {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--vx-guest-width);
  min-width: 0;
  margin-inline: auto;
}

/* Header/footer widths on checkout, domain and auth now inherit the original production styles.
   Guest footer returns to the production theme’s 1480px container. */

/* Safe wrapping for long invoice references, links and data tables. */
body.vx-public-mode .vx-public-content :is(.table-responsive, .dataTables_wrapper) {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.vx-public-mode .vx-public-content :is(.vx-invoice-shell, .vx-invoice-card, .vx-invoice-pay-card) { min-width: 0; }

@media (max-width: 1180px) {
  body.vx-theme.vx-logged-out { --vx-public-logo-width: 142px; }
}
@media (max-width: 980px) {
  body.vx-theme.vx-logged-out {
    --vx-guest-header-height: 70px;
    --vx-guest-gutter: 20px;
    --vx-guest-top: 30px;
    --vx-guest-bottom: 40px;
  }
}
@media (max-width: 680px) {
  body.vx-theme.vx-logged-out { --vx-public-logo-width: 128px; }
}
@media (max-width: 640px) {
  body.vx-theme.vx-logged-out {
    --vx-guest-gutter: 14px;
    --vx-guest-top: 24px;
    --vx-guest-bottom: 32px;
  }
  body.vx-public-mode .vx-public-header-inner { gap: 12px; padding: 0 14px; }
  body.vx-public-mode .vx-public-nav { gap: 4px; }
  body.vx-public-mode .vx-public-nav a { min-height: 36px; padding: 7px 9px; font-size: 11px; }
  body.vx-public-mode .vx-public-nav a:not(.vx-public-login) span { display: none; }
}
@media (max-width: 420px) {
  body.vx-theme.vx-logged-out { --vx-public-logo-width: 118px; }
}
@media (max-width: 380px) {
  body.vx-public-mode .vx-public-nav a { padding: 7px; }
}
@media print {
  body.vx-public-mode .vx-public-header, body.vx-public-mode .vx-guest-footer { display: none !important; }
  body.vx-public-mode .vx-public-main, body.vx-public-mode .vx-public-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
}

/* v3.3.0 — shared fluid content geometry for ALL WHMCS pages.
   Keep existing visual header/footer, only constrain content and form overflow. */
body.vx-theme { --vx-content-max:1320px; --vx-content-gutter:24px; }
body.vx-theme :is(.vx-main-body,.vx-page-grid,.vx-page-content,.vx-dashboard-wrap,.vx-checkout-main,.vx-checkout-body,.vx-checkout-content,.vx-public-content,.vx-client-footer) { box-sizing:border-box; min-width:0; }
body.vx-theme.vx-logged-in .vx-main-body > .vx-page-grid,
body.vx-theme.vx-logged-in .vx-main-body > .vx-dashboard-wrap { width:100%!important; max-width:var(--vx-content-max)!important; margin-inline:auto!important; }
body.vx-theme.vx-logged-in .vx-page-grid > .vx-page-content { min-width:0!important; max-width:100%!important; }
body.vx-theme.vx-checkout-mode .vx-checkout-main { width:100%; max-width:var(--vx-content-max)!important; min-height:0!important; margin-inline:auto!important; padding-inline:var(--vx-content-gutter)!important; }
body.vx-theme.vx-checkout-mode .vx-checkout-content #order-standard_cart { max-width:100%; min-width:0; }
body.vx-theme .vx-page-content :is(.form-control,.input-group,textarea,select),
body.vx-theme .vx-checkout-content :is(.form-control,.input-group,textarea,select) { max-width:100%; box-sizing:border-box; }
body.vx-theme :is(.vx-main-body,.vx-checkout-body,.vx-page-content) :is(.table-responsive,.dataTables_wrapper) { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
@media(max-width:980px) { body.vx-theme { --vx-content-gutter:18px; } }
@media(max-width:640px) { body.vx-theme { --vx-content-gutter:12px; }
 body.vx-theme.vx-logged-in .vx-main-body { padding-inline:12px!important; }
 body.vx-theme.vx-checkout-mode .vx-checkout-main { padding-inline:12px!important; }
}
