/* VPSRoom order-form child theme. Standard Cart remains the functional parent. */
#order-standard_cart.vpsroom-store {
  --store-panel: #08182a;
  --store-panel-strong: #0b2037;
  --store-border: rgba(135, 166, 198, .22);
  --store-text: #f5f8fc;
  --store-muted: #a8b9ca;
  --store-accent: #1684ff;
  color: var(--store-text);
}

/* Configure, review and checkout presentation. Standard Cart remains authoritative. */
body:has(#frmConfigureProduct) #order-standard_cart > .row,
body:has(.view-cart-items) #order-standard_cart > .row,
body:has(#frmCheckout) #order-standard_cart > .row {
  display: block;
  margin-right: 0;
  margin-left: 0;
}

body:has(#frmConfigureProduct) #order-standard_cart > .row > .cart-sidebar,
body:has(.view-cart-items) #order-standard_cart > .row > .cart-sidebar,
body:has(#frmCheckout) #order-standard_cart > .row > .cart-sidebar,
body:has(#frmConfigureProduct) #order-standard_cart .sidebar-collapsed,
body:has(.view-cart-items) #order-standard_cart .sidebar-collapsed,
body:has(#frmCheckout) #order-standard_cart .sidebar-collapsed {
  display: none !important;
}

body:has(#frmConfigureProduct) #order-standard_cart .cart-body,
body:has(.view-cart-items) #order-standard_cart .cart-body,
body:has(#frmCheckout) #order-standard_cart .cart-body {
  float: none;
  width: 100%;
  padding-right: 0;
  padding-left: 0;
}

body:has(#frmConfigureProduct) #frmConfigureProduct > .row,
body:has(.view-cart-items) #order-standard_cart .cart-body > .row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 1.25rem;
  margin-right: 0;
  margin-left: 0;
}

body:has(#frmConfigureProduct) #order-standard_cart .secondary-cart-body,
body:has(#frmConfigureProduct) #order-standard_cart .secondary-cart-sidebar,
body:has(.view-cart-items) #order-standard_cart .secondary-cart-body,
body:has(.view-cart-items) #order-standard_cart .secondary-cart-sidebar {
  float: none;
  width: auto;
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
}

body:has(#frmConfigureProduct) #order-standard_cart .secondary-cart-body {
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(11, 32, 55, .96), rgba(6, 20, 35, .98));
  border: 1px solid var(--store-border);
  border-radius: 16px;
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info {
  position: relative;
  margin: 0 0 1.35rem;
  padding: 1rem 1rem 1rem 4.65rem;
  overflow: hidden;
  max-height: 180px;
  color: var(--store-muted);
  background: rgba(8, 24, 42, .82);
  border: 1px solid var(--store-border);
  border-radius: 13px;
  transition: max-height .34s ease, padding-bottom .34s ease;
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.25rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 24, 42, 0), rgba(8, 24, 42, .98));
  content: "";
  transition: opacity .2s ease;
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info br {
  display: none;
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info h2 {
  margin: 0 0 .55rem;
  color: var(--store-text);
  font-size: 1rem;
  font-weight: 800;
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info h3,
body:has(#frmConfigureProduct) #order-standard_cart .product-info ul,
body:has(#frmConfigureProduct) #order-standard_cart .product-info h3 ~ p {
  display: none;
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #70b4ff;
  background: rgba(22, 132, 255, .13);
  border: 1px solid rgba(72, 157, 255, .25);
  border-radius: 11px;
  content: "\f233";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info .product-title {
  margin-bottom: .45rem;
  color: var(--store-text);
  font-size: 1.15rem;
  font-weight: 800;
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info > p:not(.product-title) {
  display: -webkit-box;
  max-height: 4.05rem;
  margin: 0;
  overflow: hidden;
  color: var(--store-muted) !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  line-height: 1.35rem;
}

@media (hover: hover) and (pointer: fine) {
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:hover,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus-within {
    max-height: 2000px;
    overflow: hidden;
  }

  body:has(#frmConfigureProduct) #order-standard_cart .product-info:hover::after,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus::after,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus-within::after {
    opacity: 0;
  }

  body:has(#frmConfigureProduct) #order-standard_cart .product-info:hover h3,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:hover ul,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:hover h3 ~ p,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus h3,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus ul,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus h3 ~ p,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus-within h3,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus-within ul,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus-within h3 ~ p {
    display: block;
  }

  body:has(#frmConfigureProduct) #order-standard_cart .product-info:hover > p:not(.product-title),
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus > p:not(.product-title),
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:focus-within > p:not(.product-title) {
    display: block;
    max-height: none;
    overflow: visible;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info.vpsroom-description-complete::after,
body:has(#frmConfigureProduct) #order-standard_cart .product-info.vpsroom-description-expanded::after {
  opacity: 0;
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info.vpsroom-description-expanded {
  max-height: 2000px;
  padding-bottom: 3.35rem;
  overflow: hidden;
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info.vpsroom-description-expanded h3,
body:has(#frmConfigureProduct) #order-standard_cart .product-info.vpsroom-description-expanded ul,
body:has(#frmConfigureProduct) #order-standard_cart .product-info.vpsroom-description-expanded h3 ~ p {
  display: block;
}

body:has(#frmConfigureProduct) #order-standard_cart .product-info.vpsroom-description-expanded > p:not(.product-title) {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

body:has(#frmConfigureProduct) #order-standard_cart .vpsroom-description-toggle {
  position: absolute;
  right: 1rem;
  bottom: .75rem;
  z-index: 2;
  display: none;
  padding: .28rem .55rem;
  color: #8fc2f7;
  background: rgba(8, 24, 42, .94);
  border: 1px solid rgba(112, 180, 255, .28);
  border-radius: 7px;
  font-size: .7rem;
  font-weight: 750;
}

body:has(#frmConfigureProduct) #order-standard_cart .sub-heading,
body:has(#frmCheckout) #order-standard_cart .sub-heading {
  height: auto;
  margin: 1.4rem 0 .9rem;
  border: 0;
  text-align: left;
}

body:has(#frmConfigureProduct) #order-standard_cart .sub-heading span,
body:has(#frmCheckout) #order-standard_cart .sub-heading span {
  position: static;
  top: auto;
  padding: 0;
  color: var(--store-text) !important;
  background: transparent !important;
  font-size: .95rem;
  font-weight: 800;
}

body:has(#frmConfigureProduct) #order-standard_cart .field-container,
body:has(#frmConfigureProduct) #order-standard_cart .product-configurable-options {
  margin-bottom: .5rem;
}

body:has(#frmConfigureProduct) #order-standard_cart .form-group,
body:has(#frmCheckout) #order-standard_cart .form-group {
  margin-bottom: 1rem;
}

body:has(#frmConfigureProduct) #order-standard_cart label,
body:has(#frmCheckout) #order-standard_cart label {
  display: inline-block;
  margin: 0 0 .42rem;
  color: #d7e3ef !important;
  font-size: .78rem;
  font-weight: 750;
}

body:has(#frmConfigureProduct) #order-standard_cart .form-control,
body:has(#frmConfigureProduct) #order-standard_cart select,
body:has(#frmConfigureProduct) #order-standard_cart input[type="text"],
body:has(#frmConfigureProduct) #order-standard_cart input[type="password"],
body:has(#frmConfigureProduct) #order-standard_cart input[type="number"],
body:has(#frmCheckout) #order-standard_cart .form-control,
body:has(#frmCheckout) #order-standard_cart select,
body:has(#frmCheckout) #order-standard_cart input {
  min-height: 44px;
  color: var(--store-text) !important;
  background: #061525 !important;
  border: 1px solid rgba(135, 166, 198, .3) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body:has(#frmConfigureProduct) #order-standard_cart select option,
body:has(#frmCheckout) #order-standard_cart select option {
  color: #eef5fc;
  background: #071523;
}

body:has(#frmConfigureProduct) #order-standard_cart .form-control:focus,
body:has(#frmCheckout) #order-standard_cart .form-control:focus {
  border-color: #1684ff !important;
  box-shadow: 0 0 0 3px rgba(22, 132, 255, .16) !important;
}

body:has(#frmConfigureProduct) #scrollingPanelContainer {
  align-self: start;
}

body:has(#frmConfigureProduct) #orderSummary {
  position: sticky;
  top: 1.25rem;
}

body #order-standard_cart .order-summary {
  overflow: hidden;
  color: #d7e3ef;
  background: linear-gradient(180deg, rgba(11, 32, 55, .98), rgba(5, 18, 32, .98));
  border: 1px solid var(--store-border);
  border-bottom: 1px solid var(--store-border);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

body #order-standard_cart .order-summary h2 {
  padding: 1rem 1.15rem;
  color: var(--store-text);
  background: rgba(13, 38, 64, .82);
  border-bottom: 1px solid var(--store-border);
  font-size: 1.05rem;
  font-weight: 800;
}

body #order-standard_cart .order-summary .summary-container {
  padding: 1rem 1.15rem;
  color: #c9d6e3;
  background: transparent;
  font-size: .78rem;
}

body #order-standard_cart .order-summary .summary-container .product-name,
body #order-standard_cart .order-summary .summary-container .amt {
  color: #fff;
}

body #order-standard_cart .order-summary .summary-totals {
  margin: .9rem 0;
  padding: .75rem 0;
  border-color: var(--store-border);
}

body #order-standard_cart .order-summary .total-due-today .amt {
  font-size: 1.8rem;
  font-weight: 850;
}

body:has(#frmConfigureProduct) #btnCompleteProductConfig,
body:has(.view-cart-items) #btnCheckout,
body:has(#frmCheckout) #btnCompleteOrder {
  width: 100%;
  min-height: 48px;
  color: #fff;
  background: #0877ff;
  border-color: #0877ff;
  border-radius: 10px;
  font-weight: 800;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-items-header {
  color: #dce8f4;
  background: rgba(13, 38, 64, .94);
  border: 1px solid var(--store-border);
  border-radius: 12px 12px 0 0;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-items {
  overflow: hidden;
  border: 1px solid var(--store-border);
  border-top: 0;
  border-bottom: 1px solid var(--store-border);
  border-radius: 0 0 12px 12px;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-items .item,
body:has(.view-cart-items) #order-standard_cart .view-cart-items .item:nth-child(even) {
  color: #d7e3ef;
  background: rgba(8, 24, 42, .94);
  border-color: var(--store-border);
}

body:has(.view-cart-items) #order-standard_cart .view-cart-items .item-title,
body:has(.view-cart-items) #order-standard_cart .view-cart-items .item-group {
  color: #fff;
}

body:has(#frmCheckout) #order-standard_cart .already-registered,
body:has(#frmCheckout) #order-standard_cart #containerExistingAccountSelect,
body:has(#frmCheckout) #order-standard_cart #containerExistingUserSignin,
body:has(#frmCheckout) #order-standard_cart #containerNewUserSignup,
body:has(#frmCheckout) #order-standard_cart #containerNewUserSecurity,
body:has(#frmCheckout) #order-standard_cart .payment-methods,
body:has(#frmCheckout) #order-standard_cart .cc-input-container {
  margin-bottom: 1rem;
  padding: 1.15rem;
  color: #d7e3ef;
  background: rgba(8, 24, 42, .9);
  border: 1px solid var(--store-border);
  border-radius: 14px;
}

/* Review and checkout polish. WHMCS remains authoritative for content and actions. */
body:has(.view-cart-items) #main-body,
body:has(#frmCheckout) #main-body {
  min-height: 0 !important;
}

body:has(.view-cart-items) #order-standard_cart .cart-body > .row {
  grid-template-columns: minmax(0, 2.05fr) minmax(310px, 1fr);
  align-items: start;
  gap: 1.35rem;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-items-header {
  padding: .8rem 1rem;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-items .item {
  padding: 1.15rem 1rem;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-items .item > .row {
  align-items: start;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-items .item-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .15rem;
  font-size: 1.08rem;
  font-weight: 850;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-items .item-title .btn-link {
  padding: .2rem .4rem;
  color: #70b4ff !important;
  font-size: .72rem;
  font-weight: 750;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-items .item-group,
body:has(.view-cart-items) #order-standard_cart .view-cart-items .item-domain {
  display: block;
  margin-bottom: .8rem;
  color: var(--store-muted) !important;
  font-size: .78rem;
}

body:has(.view-cart-items) #order-standard_cart .vpsroom-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: .9rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(135, 166, 198, .18);
  border-radius: 11px;
}

body:has(.view-cart-items) #order-standard_cart .vpsroom-config-item {
  display: grid;
  grid-template-columns: minmax(100px, .85fr) minmax(0, 1.25fr);
  gap: .65rem;
  min-width: 0;
  padding: .62rem .72rem;
  border-bottom: 1px solid rgba(135, 166, 198, .13);
}

body:has(.view-cart-items) #order-standard_cart .vpsroom-config-item:nth-child(odd) {
  border-right: 1px solid rgba(135, 166, 198, .13);
}

body:has(.view-cart-items) #order-standard_cart .vpsroom-config-item dt,
body:has(.view-cart-items) #order-standard_cart .vpsroom-config-item dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

body:has(.view-cart-items) #order-standard_cart .vpsroom-config-item dt {
  color: #8fa6bb;
  font-size: .7rem;
  font-weight: 750;
}

body:has(.view-cart-items) #order-standard_cart .vpsroom-config-item dd {
  color: #edf5fc;
  font-size: .76rem;
  font-weight: 650;
}

body:has(.view-cart-items) #order-standard_cart .item-price {
  padding-top: .1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

body:has(.view-cart-items) #order-standard_cart .item-price .cycle {
  margin-top: .2rem;
  color: var(--store-muted);
  font-size: .7rem;
  font-weight: 650;
}

body:has(.view-cart-items) #order-standard_cart .btn-remove-from-cart {
  color: #b3c1cf !important;
  opacity: .82;
}

body:has(.view-cart-items) #order-standard_cart .btn-remove-from-cart:hover {
  color: #ff8f9b !important;
  opacity: 1;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-tabs {
  margin-top: 1rem;
  overflow: hidden;
  color: #d7e3ef;
  background: linear-gradient(180deg, rgba(11, 32, 55, .96), rgba(6, 20, 35, .98));
  border: 1px solid var(--store-border);
  border-radius: 13px;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-tabs .nav-tabs {
  border-bottom: 1px solid var(--store-border);
}

body:has(.view-cart-items) #order-standard_cart .view-cart-tabs .nav-link,
body:has(.view-cart-items) #order-standard_cart .view-cart-tabs .nav-link.active {
  margin: 0;
  padding: .75rem 1rem;
  color: #cbd8e5 !important;
  background: rgba(13, 38, 64, .82) !important;
  border: 0 !important;
  font-size: .78rem;
  font-weight: 800;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-tabs .tab-content,
body:has(.view-cart-items) #order-standard_cart .view-cart-tabs .tab-pane {
  padding: .85rem !important;
  background: transparent !important;
  border: 0 !important;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-tabs form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-tabs .form-group {
  margin: 0;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-tabs .form-control {
  min-height: 42px;
  color: #eef5fc !important;
  background: #061525 !important;
  border: 1px solid rgba(135, 166, 198, .3) !important;
  border-radius: 9px !important;
}

body:has(.view-cart-items) #order-standard_cart .view-cart-tabs button {
  width: auto !important;
  min-width: 130px;
  min-height: 42px;
  margin: 0 !important;
  color: #fff !important;
  background: rgba(22, 132, 255, .16) !important;
  border: 1px solid rgba(72, 157, 255, .4) !important;
  border-radius: 9px !important;
}

body:has(.view-cart-items) #scrollingPanelContainer {
  align-self: start;
}

body:has(.view-cart-items) #orderSummary {
  position: sticky;
  top: 1.25rem;
}

body:has(.view-cart-items) #continueShopping {
  display: inline-flex;
  align-items: center;
  margin-top: .75rem;
  padding: .35rem .2rem;
  color: #9eb5ca !important;
  font-size: .76rem;
  font-weight: 700;
}

body:has(.view-cart-items) #continueShopping::before {
  margin-right: .35rem;
  content: "\2190";
}

body:has(.view-cart-items) #continueShopping:hover {
  color: #fff !important;
}

body:has(#frmCheckout) #order-standard_cart #frmCheckout > .row,
body:has(#frmCheckout) #order-standard_cart #frmCheckout > div:not(.row):not(.alert):not(.sub-heading) {
  border-radius: 14px;
}

body:has(#frmCheckout) #order-standard_cart #containerNewUserSignup,
body:has(#frmCheckout) #order-standard_cart #containerNewUserSecurity {
  padding: 1.2rem 1.1rem;
}

body:has(#frmCheckout) #order-standard_cart textarea.form-control {
  min-height: 100px;
}

body:has(#frmCheckout) #order-standard_cart .alert-success,
body:has(#frmCheckout) #order-standard_cart .alert-info,
body:has(#frmCheckout) #order-standard_cart .alert-warning,
body:has(#frmCheckout) #order-standard_cart .alert-danger {
  color: #eaf3fb;
  background: rgba(13, 38, 64, .9);
  border-radius: 11px;
}

body:has(#frmCheckout) #order-standard_cart #btnCompleteOrder {
  box-shadow: 0 12px 28px rgba(8, 119, 255, .22);
}

body:has(#frmCheckout) #order-standard_cart .vpsroom-field-caption {
  display: block;
  margin: 0 0 .38rem;
  color: #b9cad9;
  font-size: .72rem;
  font-weight: 750;
}

body:has(#frmCheckout) #order-standard_cart .vpsroom-field-caption small {
  color: #7f97ad;
  font-size: inherit;
  font-weight: 600;
}

body:has(#frmCheckout) #order-standard_cart .vpsroom-field-caption ~ #inputStateIcon {
  display: none !important;
}

body:has(#frmCheckout) #order-standard_cart .marketing-email-optin {
  margin: 1.15rem 0;
  padding: 1rem 1.05rem;
  color: #dce8f4;
  background: rgba(8, 24, 42, .9);
  border: 1px solid var(--store-border);
  border-radius: 12px;
}

body:has(#frmCheckout) #order-standard_cart .vpsroom-consent-option,
body:has(#frmCheckout) #order-standard_cart label.checkbox-inline:has(#accepttos) {
  display: inline-flex;
  align-items: flex-start;
  gap: .65rem;
  min-height: 36px;
  margin: 0;
  padding: .35rem .2rem;
  color: #e8f1f9 !important;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
}

body:has(#frmCheckout) #order-standard_cart .vpsroom-consent-option > input,
body:has(#frmCheckout) #order-standard_cart label.checkbox-inline:has(#accepttos) > input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: .05rem 0 0;
  accent-color: #1684ff;
}

body:has(#frmCheckout) #order-standard_cart .vpsroom-consent-help {
  display: block;
  margin: .15rem 0 0 2.85rem;
  color: #879eb3;
  font-size: .7rem;
}

body:has(#frmCheckout) #order-standard_cart label.checkbox-inline:has(#accepttos) a {
  color: #70b4ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 767.98px) {
  body:has(.view-cart-items) #order-standard_cart .vpsroom-config-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body:has(.view-cart-items) #order-standard_cart .vpsroom-config-item:nth-child(odd) {
    border-right: 0;
  }
  body:has(.view-cart-items) #order-standard_cart .item-price {
    margin-top: .9rem;
    padding-top: .8rem;
    border-top: 1px solid rgba(135, 166, 198, .15);
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  body:has(.view-cart-items) #order-standard_cart .view-cart-items-header {
    display: none;
  }
  body:has(.view-cart-items) #order-standard_cart .view-cart-items {
    border-top: 1px solid var(--store-border);
    border-radius: 12px;
  }
  body:has(.view-cart-items) #order-standard_cart .view-cart-tabs form {
    grid-template-columns: minmax(0, 1fr);
  }
  body:has(.view-cart-items) #order-standard_cart .view-cart-tabs button,
  body:has(.view-cart-items) #btnCheckout,
  body:has(#frmCheckout) #btnCompleteOrder {
    width: 100% !important;
  }
  body:has(#frmCheckout) #order-standard_cart .marketing-email-optin {
    padding: .9rem;
  }
}

@media (max-width: 991.98px) {
  body:has(#frmConfigureProduct) #frmConfigureProduct > .row,
  body:has(.view-cart-items) #order-standard_cart .cart-body > .row {
    grid-template-columns: minmax(0, 1fr);
  }
  body:has(#frmConfigureProduct) #orderSummary { position: static; }
}

@media (max-width: 575.98px) {
  body:has(#frmConfigureProduct) #order-standard_cart .secondary-cart-body,
  body:has(#frmCheckout) #order-standard_cart .cart-body {
    padding: 1rem;
  }
  body:has(#frmConfigureProduct) #order-standard_cart .product-info {
    max-height: 220px;
    padding: 4.5rem 1rem 1rem;
  }
  body:has(#frmConfigureProduct) #order-standard_cart .product-info > p:not(.product-title) {
    max-height: 5.4rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
  body:has(#frmConfigureProduct) #order-standard_cart .product-info:not(.vpsroom-description-complete) {
    padding-bottom: 3.25rem;
  }
  body:has(#frmConfigureProduct) #order-standard_cart .vpsroom-description-toggle {
    display: inline-flex;
  }
}

#order-standard_cart.vpsroom-store > .row {
  align-items: flex-start;
}

#order-standard_cart .vpsroom-store-sidebar {
  flex: 0 0 220px;
  max-width: 220px;
}

#order-standard_cart .vpsroom-store-sidebar .card,
#order-standard_cart .vpsroom-store-sidebar .panel,
#order-standard_cart .sidebar-collapsed {
  overflow: hidden;
  color: var(--store-text) !important;
  background: rgba(8, 24, 42, .94) !important;
  border: 1px solid var(--store-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

#order-standard_cart .vpsroom-store-sidebar .card-header,
#order-standard_cart .vpsroom-store-sidebar .panel-heading {
  padding: .75rem .9rem;
  color: var(--store-muted) !important;
  background: rgba(13, 38, 64, .82) !important;
  border-color: var(--store-border) !important;
}

#order-standard_cart .vpsroom-store-sidebar .panel-title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

#order-standard_cart .vpsroom-store-sidebar .list-group-item {
  padding: .65rem .9rem;
  color: #cbd7e4 !important;
  background: transparent !important;
  border-color: var(--store-border) !important;
  font-size: .84rem;
}

#order-standard_cart .vpsroom-store-sidebar .list-group-item:hover,
#order-standard_cart .vpsroom-store-sidebar .list-group-item.active {
  color: #fff !important;
  background: rgba(22, 132, 255, .16) !important;
}

/* Domain actions remain available in WHMCS, but are secondary in this server flow. */
#order-standard_cart .vpsroom-store-sidebar [menuItemName*="Domain"],
#order-standard_cart .vpsroom-store-sidebar [menuItemName*="domain"] {
  opacity: .58;
  font-size: .78rem;
}

#order-standard_cart .vpsroom-store-body {
  flex: 1 1 0;
  min-width: 0;
}

#order-standard_cart .vpsroom-store-heading {
  margin-bottom: 1.3rem;
}

#order-standard_cart .vpsroom-store-heading h1 {
  color: var(--store-text) !important;
  font-weight: 750;
  letter-spacing: -.03em;
}

#order-standard_cart .vpsroom-store-heading p {
  max-width: 720px;
  color: var(--store-muted) !important;
}

#order-standard_cart .vpsroom-product-list {
  display: grid;
  gap: 1rem;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-row {
  display: grid !important;
  grid-template-columns: minmax(190px, 30%) minmax(280px, 45%) minmax(180px, 25%);
  align-items: stretch;
  min-height: 210px;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--store-text) !important;
  background: linear-gradient(135deg, rgba(11, 32, 55, .98), rgba(6, 20, 35, .98)) !important;
  border: 1px solid var(--store-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2) !important;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-row:hover {
  border-color: rgba(22, 132, 255, .48) !important;
  transform: translateY(-1px);
}

body #order-standard_cart.vpsroom-store .vpsroom-product-identity,
body #order-standard_cart.vpsroom-store .vpsroom-product-details,
body #order-standard_cart.vpsroom-store .vpsroom-product-purchase {
  min-width: 0;
  padding: 1.45rem;
}

#order-standard_cart .vpsroom-product-identity {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid var(--store-border);
}

#order-standard_cart .vpsroom-product-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  color: #70b4ff;
  background: rgba(22, 132, 255, .13);
  border: 1px solid rgba(72, 157, 255, .25);
  border-radius: 12px;
  font-size: 1.2rem;
}

#order-standard_cart .vpsroom-product-identity header {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  color: var(--store-text) !important;
  background: transparent !important;
  border: 0 !important;
  text-align: left;
}

#order-standard_cart .vpsroom-product-identity header > span:first-child {
  background: transparent !important;
  color: var(--store-text) !important;
  font-size: 1.16rem;
  font-weight: 750;
  line-height: 1.25;
}

#order-standard_cart .vpsroom-product-identity .qty {
  margin-top: .55rem;
  color: var(--store-muted) !important;
  font-size: .76rem;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-details {
  align-self: center;
  min-height: 0 !important;
  color: #c9d6e3 !important;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-details,
body #order-standard_cart.vpsroom-store .products .vpsroom-product-details p,
body #order-standard_cart.vpsroom-store .products .vpsroom-product-details li {
  color: #c9d6e3 !important;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-details h2,
body #order-standard_cart.vpsroom-store .products .vpsroom-product-details h3 {
  color: var(--store-text) !important;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-details br {
  display: none;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-details ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#order-standard_cart .vpsroom-product-details h2,
#order-standard_cart .vpsroom-product-details h3 {
  margin: 0 0 .6rem;
  color: var(--store-text) !important;
  font-size: .92rem;
  font-weight: 750;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-details p {
  margin-bottom: .8rem;
  color: var(--store-muted) !important;
  font-size: .86rem;
  line-height: 1.6;
}

#order-standard_cart .vpsroom-product-details ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .38rem 1rem;
  margin: .6rem 0 0;
  padding: 0;
  list-style: none;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-details li {
  position: relative;
  padding-left: 1rem;
  color: #dce6f0 !important;
  font-size: .8rem;
  line-height: 1.45;
}

#order-standard_cart .vpsroom-product-details li::before {
  position: absolute;
  left: 0;
  color: #52c7a5;
  content: "\2713";
  font-weight: 800;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-purchase {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: rgba(2, 12, 23, .28) !important;
  border-left: 1px solid var(--store-border);
  border-radius: 0 15px 15px 0;
  text-align: center;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-row header,
body #order-standard_cart.vpsroom-store .products .vpsroom-product-row footer {
  position: static !important;
  width: auto !important;
  min-height: 0 !important;
  color: var(--store-text) !important;
  background: transparent !important;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-row header span,
body #order-standard_cart.vpsroom-store .products .vpsroom-product-row .product-pricing,
body #order-standard_cart.vpsroom-store .products .vpsroom-product-row .product-pricing .price {
  color: var(--store-text) !important;
  background: transparent !important;
}

#order-standard_cart .vpsroom-product-purchase .product-pricing {
  min-height: 0 !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  color: var(--store-muted) !important;
  font-size: .77rem;
}

#order-standard_cart .vpsroom-product-purchase .price {
  display: inline-block;
  margin: .25rem 0;
  color: #fff !important;
  font-size: 1.8rem !important;
  font-weight: 800;
  letter-spacing: -.035em;
}

#order-standard_cart .vpsroom-product-purchase .btn-order-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-height: 44px;
  color: #fff !important;
  background: var(--store-accent) !important;
  border-color: var(--store-accent) !important;
  border-radius: 10px !important;
  font-weight: 750;
}

#order-standard_cart .vpsroom-product-purchase .btn-order-now:hover {
  background: #3294ff !important;
  border-color: #3294ff !important;
}

@media (max-width: 991.98px) {
  #order-standard_cart .vpsroom-product-row {
    grid-template-columns: minmax(160px, 32%) minmax(240px, 43%) minmax(150px, 25%);
  }
  #order-standard_cart .vpsroom-product-identity,
  #order-standard_cart .vpsroom-product-details,
  #order-standard_cart .vpsroom-product-purchase { padding: 1.15rem; }
  #order-standard_cart .vpsroom-product-details ul { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  html,
  body { overflow-x: hidden; }
  body:has(#order-standard_cart.vpsroom-store) #main-body > .container {
    box-sizing: border-box;
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px);
    margin-right: 15px !important;
    margin-left: 15px !important;
    padding-right: 0;
    padding-left: 0;
  }
  #order-standard_cart .vpsroom-store-sidebar { display: none; }
  body #order-standard_cart.vpsroom-store {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  body #order-standard_cart.vpsroom-store > .row,
  body #order-standard_cart.vpsroom-store .vpsroom-store-body {
    box-sizing: border-box;
    display: block;
    flex: 0 0 100% !important;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
  body #order-standard_cart.vpsroom-store .vpsroom-store-heading h1 {
    max-width: 100%;
    font-size: 1.5rem !important;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }
  body #order-standard_cart.vpsroom-store .sidebar-collapsed,
  body #order-standard_cart.vpsroom-store .sidebar-collapsed select {
    width: 100%;
    max-width: 100%;
  }
  body #order-standard_cart.vpsroom-store .products .vpsroom-product-row {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }
  body #order-standard_cart.vpsroom-store .products .vpsroom-product-details ul {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #order-standard_cart .vpsroom-product-identity {
    flex-direction: row;
    align-items: center;
    gap: .9rem;
    border-right: 0;
    border-bottom: 1px solid var(--store-border);
  }
  #order-standard_cart .vpsroom-product-icon { flex: 0 0 42px; width: 42px; height: 42px; margin: 0; }
  #order-standard_cart .vpsroom-product-purchase {
    border-top: 1px solid var(--store-border);
    border-left: 0;
    border-radius: 0 0 15px 15px;
  }
}

/* Final order-flow responsive overrides must follow inherited cart breakpoints. */
@media (max-width: 991.98px) {
  body:has(#frmConfigureProduct) #order-standard_cart .secondary-cart-sidebar,
  body:has(.view-cart-items) #order-standard_cart .secondary-cart-sidebar {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  body:has(#frmConfigureProduct) #orderSummary,
  body:has(#frmConfigureProduct) #btnCompleteProductConfig {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  body:has(#frmConfigureProduct) #order-standard_cart .product-info,
  body:has(#frmConfigureProduct) #order-standard_cart .product-info > * {
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
  }
  body #order-standard_cart .order-summary .summary-container .clearfix {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
  }
  body #order-standard_cart .order-summary .summary-container .pull-left,
  body #order-standard_cart .order-summary .summary-container .pull-right,
  body #order-standard_cart .order-summary .summary-container .float-left,
  body #order-standard_cart .order-summary .summary-container .float-right {
    float: none !important;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body #order-standard_cart .order-summary .total-due-today,
  body #order-standard_cart .order-summary .total-due-today span {
    width: 100%;
    text-align: center;
  }
}

/* Compact product-grid presentation. Product content remains sourced from WHMCS. */
body:has(#order-standard_cart.vpsroom-store) #main-body > .container {
  width: calc(100% - 48px) !important;
  max-width: 1480px !important;
}

body #order-standard_cart.vpsroom-store > .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  margin-right: 0;
  margin-left: 0;
}

body #order-standard_cart.vpsroom-store .vpsroom-store-sidebar {
  flex: 0 0 210px;
  width: 210px;
  max-width: 210px;
  padding-right: 0;
  padding-left: 0;
}

body #order-standard_cart.vpsroom-store .vpsroom-store-body {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-row {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 1.25rem !important;
  border-radius: 16px !important;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-identity {
  display: block;
  padding: 0 0 1rem;
  border-right: 0;
  border-bottom: 1px solid var(--store-border);
}

body #order-standard_cart.vpsroom-store .vpsroom-product-icon {
  width: 42px;
  height: 42px;
  margin-bottom: .85rem;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-identity header > span:first-child {
  font-size: 1.05rem;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-details {
  display: block;
  flex: 1 1 auto;
  float: none !important;
  align-self: stretch;
  width: 100% !important;
  padding: 1rem 0;
  font-size: inherit !important;
  max-height: none !important;
  overflow: visible !important;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-details h2 {
  display: none;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-details p {
  display: none;
  margin: 0;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-details p:first-of-type {
  display: -webkit-box;
  box-sizing: border-box;
  height: 4.05rem;
  min-height: 4.05rem;
  max-height: 4.05rem;
  margin: 0 0 1rem;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  line-height: 1.35rem !important;
  contain: paint;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-copy {
  position: relative;
  box-sizing: border-box;
  height: 4.05rem;
  min-height: 4.05rem;
  max-height: 4.05rem;
  margin: 0 0 1rem;
  overflow: hidden;
  transition: max-height .34s ease, height .34s ease;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-copy::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1.75rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 24, 42, 0), rgba(8, 24, 42, .98));
  content: "";
  transition: opacity .2s ease;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-copy h2 {
  display: none;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-copy p,
body #order-standard_cart.vpsroom-store .vpsroom-product-copy p:first-of-type {
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0 0 .75rem;
  overflow: visible !important;
  contain: none;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

@media (hover: hover) and (pointer: fine) {
  body #order-standard_cart.vpsroom-store .vpsroom-product-copy:hover,
  body #order-standard_cart.vpsroom-store .vpsroom-product-copy:focus,
  body #order-standard_cart.vpsroom-store .vpsroom-product-copy:focus-within {
    height: auto;
    max-height: 1000px;
  }

  body #order-standard_cart.vpsroom-store .vpsroom-product-copy:hover::after,
  body #order-standard_cart.vpsroom-store .vpsroom-product-copy:focus::after,
  body #order-standard_cart.vpsroom-store .vpsroom-product-copy:focus-within::after {
    opacity: 0;
  }
}

body #order-standard_cart.vpsroom-store .vpsroom-product-copy-expanded {
  height: auto;
  max-height: 1000px;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-copy-complete::after,
body #order-standard_cart.vpsroom-store .vpsroom-product-copy-expanded::after {
  opacity: 0;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-copy-toggle {
  position: absolute;
  right: .1rem;
  bottom: -.05rem;
  z-index: 2;
  display: none;
  padding: .16rem .42rem;
  color: #8fc2f7;
  background: rgba(8, 24, 42, .96);
  border: 1px solid rgba(112, 180, 255, .28);
  border-radius: 6px;
  font-size: .66rem;
  font-weight: 750;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-copy-toggle:focus-visible {
  outline: 2px solid #70b4ff;
  outline-offset: 2px;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-details h3 {
  margin-top: 0;
  margin-bottom: .65rem;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-details h3 ~ h3,
body #order-standard_cart.vpsroom-store .vpsroom-product-details ul ~ h3,
body #order-standard_cart.vpsroom-store .vpsroom-product-details ul ~ p {
  display: none;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-details > div[id$="-description"] > h3 ~ h3,
body #order-standard_cart.vpsroom-store .vpsroom-product-details > div[id$="-description"] > ul ~ h3,
body #order-standard_cart.vpsroom-store .vpsroom-product-details > div[id$="-description"] > ul ~ p {
  display: none !important;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-details ul {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: .38rem;
  margin: 0;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-details li {
  min-width: 0;
  font-size: .78rem;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-details li:nth-of-type(n+6) {
  display: none;
}

body #order-standard_cart.vpsroom-store .products .vpsroom-product-purchase {
  flex: 0 0 auto;
  align-items: stretch;
  padding: 1rem 0 0;
  background: transparent !important;
  border-top: 1px solid var(--store-border);
  border-left: 0;
  border-radius: 0;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-purchase .product-pricing {
  margin-bottom: .85rem !important;
}

body #order-standard_cart.vpsroom-store .vpsroom-product-purchase .price {
  font-size: 1.65rem !important;
}

@media (max-width: 1199.98px) {
  body #order-standard_cart.vpsroom-store .vpsroom-product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body:has(#order-standard_cart.vpsroom-store) #main-body > .container {
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    margin-right: 15px !important;
    margin-left: 15px !important;
  }
  body #order-standard_cart.vpsroom-store > .row {
    display: block;
  }
  body #order-standard_cart.vpsroom-store {
    width: calc(100% - 15px) !important;
  }
  body #order-standard_cart.vpsroom-store .vpsroom-store-body {
    width: 100%;
  }
  body #order-standard_cart.vpsroom-store .vpsroom-product-list {
    grid-template-columns: minmax(0, 1fr);
  }
  body #order-standard_cart.vpsroom-store .products .vpsroom-product-row {
    width: calc(100% - 15px);
    max-width: calc(100% - 15px);
    padding: 1rem !important;
  }
  body #order-standard_cart.vpsroom-store .vpsroom-product-details p:first-of-type {
    height: 5.4rem;
    min-height: 5.4rem;
    max-height: 5.4rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
  body #order-standard_cart.vpsroom-store .vpsroom-product-copy {
    height: 5.4rem;
    min-height: 5.4rem;
    max-height: 5.4rem;
  }
  body #order-standard_cart.vpsroom-store .vpsroom-product-copy-expanded {
    height: auto;
    max-height: 1000px;
    padding-bottom: 1.7rem;
  }
  body #order-standard_cart.vpsroom-store .vpsroom-product-copy-toggle {
    display: inline-flex;
  }
  body #order-standard_cart.vpsroom-store .vpsroom-product-details,
  body #order-standard_cart.vpsroom-store .vpsroom-product-details p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  body #order-standard_cart.vpsroom-store .vpsroom-product-details p:first-of-type {
    position: relative;
    width: calc(100% - 30px);
    max-width: calc(100% - 30px);
  }
  body #order-standard_cart.vpsroom-store .vpsroom-product-details p:first-of-type::after {
    position: absolute;
    right: 30px;
    bottom: 0;
    padding-left: .15rem;
    color: var(--store-muted);
    background: var(--store-panel);
    content: "\2026";
  }
}

@media (prefers-reduced-motion: reduce) {
  body:has(#frmConfigureProduct) #order-standard_cart .product-info,
  body #order-standard_cart.vpsroom-store .vpsroom-product-copy {
    transition-duration: .01ms;
  }
}
