/* IMAGINA PLATFORM UI v2 - WHMCS cart/orderform standardization */

html.iw-cart-page {
  --iwp-primary: #0f766e;
  --iwp-primary-hover: #115e59;
  --iwp-primary-soft: #e7fbff;
  --iwp-secondary: #0f4660;
  --iwp-secondary-dark: #071b33;
  --iwp-bg: #f7f9fb;
  --iwp-surface: #ffffff;
  --iwp-surface-soft: #f8fafc;
  --iwp-border: #dbe3ea;
  --iwp-border-soft: #edf2f7;
  --iwp-text: #0f172a;
  --iwp-text-soft: #334155;
  --iwp-muted: #64748b;
  --iwp-success: #057a43;
  --iwp-success-bg: #d8fbe4;
  --iwp-warning: #946200;
  --iwp-warning-bg: #fff6d8;
  --iwp-danger: #b6202a;
  --iwp-danger-bg: #ffe5e7;
  --iwp-info: #155ab6;
  --iwp-info-bg: #e0efff;
  --iwp-radius-sm: 8px;
  --iwp-radius-md: 12px;
  --iwp-radius-lg: 16px;
  --iwp-shadow: 0 10px 28px rgba(15, 23, 42, .055);
  --iwp-font: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.iw-cart-page body {
  background: var(--iwp-bg) !important;
  color: var(--iwp-text) !important;
  font-family: var(--iwp-font) !important;
  letter-spacing: 0 !important;
}

html.iw-cart-page #order-standard_cart,
html.iw-cart-page #iw-cart-app {
  color: var(--iwp-text) !important;
  font-family: var(--iwp-font) !important;
  letter-spacing: 0 !important;
}

html.iw-cart-page #order-standard_cart *,
html.iw-cart-page #iw-cart-app * {
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

html.iw-cart-page #order-standard_cart .products .product,
html.iw-cart-page #order-standard_cart .panel,
html.iw-cart-page #order-standard_cart .panel-addon,
html.iw-cart-page #order-standard_cart .product-info,
html.iw-cart-page #order-standard_cart .domain-selection-options .option,
html.iw-cart-page #order-standard_cart .domain-input-group,
html.iw-cart-page #order-standard_cart .domain-lookup-primary-results,
html.iw-cart-page #order-standard_cart .domain-suggestions,
html.iw-cart-page #order-standard_cart .view-cart-items,
html.iw-cart-page #order-standard_cart .order-summary,
html.iw-cart-page #order-standard_cart .summary-container,
html.iw-cart-page #order-standard_cart .cc-input-container,
html.iw-cart-page #order-standard_cart .apply-credit-container,
html.iw-cart-page #order-standard_cart .account-select-container div.account,
html.iw-cart-page #iw-cart-app .iw-plan-card,
html.iw-cart-page #iw-cart-app .iw-cycle-option,
html.iw-cart-page #iw-cart-app .iw-final-cycle-choice,
html.iw-cart-page #iw-cart-app .account,
html.iw-cart-page #iw-cart-app .card,
html.iw-cart-page #iw-cart-app .iw-card,
html.iw-cart-page #iw-cart-app .iw-panel,
html.iw-cart-page #iw-cart-app .iw-summary,
html.iw-cart-page #iw-cart-app .iw-cart-card {
  background: var(--iwp-surface) !important;
  background-image: none !important;
  border: 1px solid var(--iwp-border) !important;
  border-radius: var(--iwp-radius-md) !important;
  box-shadow: var(--iwp-shadow) !important;
}

html.iw-cart-page #order-standard_cart .products .product header,
html.iw-cart-page #order-standard_cart .view-cart-items-header,
html.iw-cart-page #order-standard_cart .order-summary h2,
html.iw-cart-page #order-standard_cart .sub-heading span {
  background: var(--iwp-surface-soft) !important;
  border-color: var(--iwp-border) !important;
  color: var(--iwp-text) !important;
  font-weight: 850 !important;
}

html.iw-cart-page #order-standard_cart .order-summary {
  overflow: hidden !important;
}

html.iw-cart-page #order-standard_cart .summary-container,
html.iw-cart-page #order-standard_cart .view-cart-items .item,
html.iw-cart-page #order-standard_cart .product-info {
  background: #fff !important;
  border-color: var(--iwp-border-soft) !important;
  color: var(--iwp-text-soft) !important;
}

html.iw-cart-page #order-standard_cart .view-cart-items .item:nth-child(even) {
  background: var(--iwp-surface-soft) !important;
}

html.iw-cart-page #order-standard_cart .btn,
html.iw-cart-page #order-standard_cart button,
html.iw-cart-page #order-standard_cart input[type="submit"],
html.iw-cart-page #iw-cart-app .btn,
html.iw-cart-page #iw-cart-app button,
html.iw-cart-page #iw-cart-app a.btn {
  align-items: center !important;
  border-radius: var(--iwp-radius-sm) !important;
  box-shadow: none !important;
  display: inline-flex !important;
  font-weight: 850 !important;
  gap: 8px !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 10px 14px !important;
  text-decoration: none !important;
}

html.iw-cart-page #order-standard_cart .btn-primary,
html.iw-cart-page #order-standard_cart .btn-success,
html.iw-cart-page #order-standard_cart .checkout,
html.iw-cart-page #iw-cart-app .btn-primary,
html.iw-cart-page #iw-cart-app .btn-success,
html.iw-cart-page #iw-cart-app .iw-primary,
html.iw-cart-page #iw-cart-app .iw-ref-cta,
html.iw-cart-page #iw-cart-app .iw-cta {
  background: var(--iwp-primary) !important;
  border-color: var(--iwp-primary) !important;
  color: #fff !important;
}

html.iw-cart-page #order-standard_cart .btn-primary:hover,
html.iw-cart-page #order-standard_cart .btn-success:hover,
html.iw-cart-page #order-standard_cart .checkout:hover,
html.iw-cart-page #iw-cart-app .btn-primary:hover,
html.iw-cart-page #iw-cart-app .btn-success:hover,
html.iw-cart-page #iw-cart-app .iw-primary:hover,
html.iw-cart-page #iw-cart-app .iw-ref-cta:hover,
html.iw-cart-page #iw-cart-app .iw-cta:hover {
  background: var(--iwp-primary-hover) !important;
  border-color: var(--iwp-primary-hover) !important;
  color: #fff !important;
}

html.iw-cart-page #order-standard_cart .btn-default,
html.iw-cart-page #order-standard_cart .btn-secondary,
html.iw-cart-page #iw-cart-app .btn-default,
html.iw-cart-page #iw-cart-app .btn-secondary {
  background: #fff !important;
  border-color: var(--iwp-border) !important;
  color: var(--iwp-text-soft) !important;
}

html.iw-cart-page #order-standard_cart .form-control,
html.iw-cart-page #order-standard_cart .field,
html.iw-cart-page #order-standard_cart input,
html.iw-cart-page #order-standard_cart select,
html.iw-cart-page #order-standard_cart textarea,
html.iw-cart-page #iw-cart-app input,
html.iw-cart-page #iw-cart-app select,
html.iw-cart-page #iw-cart-app textarea {
  background: #fff !important;
  border: 1px solid var(--iwp-border) !important;
  border-radius: var(--iwp-radius-sm) !important;
  box-shadow: none !important;
  color: var(--iwp-text) !important;
  min-height: 40px !important;
}

html.iw-cart-page #order-standard_cart .form-control:focus,
html.iw-cart-page #order-standard_cart .field:focus,
html.iw-cart-page #order-standard_cart input:focus,
html.iw-cart-page #order-standard_cart select:focus,
html.iw-cart-page #order-standard_cart textarea:focus,
html.iw-cart-page #iw-cart-app input:focus,
html.iw-cart-page #iw-cart-app select:focus,
html.iw-cart-page #iw-cart-app textarea:focus {
  border-color: var(--iwp-primary) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12) !important;
  outline: 0 !important;
}

html.iw-cart-page #order-standard_cart label,
html.iw-cart-page #order-standard_cart p.domain-renewal-desc,
html.iw-cart-page #iw-cart-app label {
  color: var(--iwp-text-soft) !important;
  font-weight: 750 !important;
}

html.iw-cart-page #order-standard_cart .domain-checker-available,
html.iw-cart-page #order-standard_cart .transfer-eligible {
  background: var(--iwp-success-bg) !important;
  border-color: #acefc5 !important;
  color: var(--iwp-success) !important;
}

html.iw-cart-page #order-standard_cart .domain-checker-unavailable,
html.iw-cart-page #order-standard_cart .domain-checker-invalid,
html.iw-cart-page #order-standard_cart .transfer-not-eligible {
  background: var(--iwp-danger-bg) !important;
  border-color: #f3b8bc !important;
  color: var(--iwp-danger) !important;
}

html.iw-cart-page #order-standard_cart table,
html.iw-cart-page #order-standard_cart .table {
  background: #fff !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

html.iw-cart-page #order-standard_cart .table thead th {
  background: var(--iwp-surface-soft) !important;
  border-bottom: 1px solid var(--iwp-border) !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

html.iw-cart-page #order-standard_cart .table tbody td {
  border-bottom: 1px solid var(--iwp-border-soft) !important;
  color: var(--iwp-text-soft) !important;
  font-size: 13px !important;
  padding: 14px !important;
}

html.iw-cart-page #order-standard_cart .mc-promo,
html.iw-cart-page #order-standard_cart .mc-panel-promo {
  background: #fff !important;
  border: 1px solid var(--iwp-border) !important;
  border-radius: var(--iwp-radius-md) !important;
  box-shadow: none !important;
}

html.iw-cart-page #order-standard_cart .mc-promo .btn-add,
html.iw-cart-page #order-standard_cart .mc-promo .arrow {
  background: var(--iwp-primary) !important;
}

html.iw-cart-page #order-standard_cart .mc-promo .expander,
html.iw-cart-page #order-standard_cart .mc-promo .price,
html.iw-cart-page #order-standard_cart .mc-promo .fa-check {
  color: var(--iwp-primary) !important;
}

html.iw-cart-page #order-standard_cart .rotate.down {
  transform: none !important;
}

@media (max-width: 991px) {
  html.iw-cart-page #order-standard_cart .secondary-cart-sidebar,
  html.iw-cart-page #order-standard_cart .secondary-cart-body,
  html.iw-cart-page #order-standard_cart .cart-body,
  html.iw-cart-page #order-standard_cart .cart-sidebar {
    float: none !important;
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  html.iw-cart-page #order-standard_cart .btn,
  html.iw-cart-page #order-standard_cart button,
  html.iw-cart-page #order-standard_cart input[type="submit"],
  html.iw-cart-page #iw-cart-app .btn,
  html.iw-cart-page #iw-cart-app button {
    min-height: 44px !important;
    width: 100% !important;
  }

  html.iw-cart-page #order-standard_cart .products .product footer,
  html.iw-cart-page #order-standard_cart .products .product div.product-desc {
    float: none !important;
    width: 100% !important;
  }
}

/* IW 2026-06-28 - one page background owner for cart flows */
html.iw-cart-page body:not(.login-bg) {
  background: var(--iwp-bg) !important;
  background-image: none !important;
}

html.iw-cart-page body:not(.login-bg) #main-body,
html.iw-cart-page body:not(.login-bg) #main-body > .wrapper,
html.iw-cart-page body:not(.login-bg) .wrapper,
html.iw-cart-page body:not(.login-bg) #content,
html.iw-cart-page body:not(.login-bg) .theme-main-inner-page-section,
html.iw-cart-page body:not(.login-bg) .theme-main-inner-page-section > .container,
html.iw-cart-page body:not(.login-bg) .theme-main-inner-page-section > .container-fluid,
html.iw-cart-page body:not(.login-bg) #iw-cart-app,
html.iw-cart-page body:not(.login-bg) #iw-cart-app.iw-flow-checkout,
html.iw-cart-page body:not(.login-bg) #order-standard_cart.iw-cart-wrap {
  background: transparent !important;
  background-image: none !important;
}

/* IW 2026-06-28 - restore client area return control */
html.iw-cart-page #iw-cart-app .iw-clientarea-return-wrap {
  display: flex !important;
  justify-content: flex-start !important;
  margin: 0 auto 12px !important;
  max-width: 1120px !important;
  padding: 18px 24px 0 !important;
  width: 100% !important;
}

html.iw-cart-page #iw-cart-app .iw-clientarea-return,
html.iw-cart-page #order-standard_cart .iw-clientarea-return {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid var(--iwp-border, #dbe3ea) !important;
  border-radius: var(--iwp-radius-sm, 8px) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .055) !important;
  color: var(--iwp-secondary, #0f4660) !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  gap: 8px !important;
  min-height: 40px !important;
  padding: 9px 13px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

html.iw-cart-page #iw-cart-app .iw-clientarea-return:hover,
html.iw-cart-page #iw-cart-app .iw-clientarea-return:focus,
html.iw-cart-page #order-standard_cart .iw-clientarea-return:hover,
html.iw-cart-page #order-standard_cart .iw-clientarea-return:focus {
  background: var(--iwp-primary-soft, #e7fbff) !important;
  border-color: rgba(15, 118, 110, .28) !important;
  color: var(--iwp-primary-hover, #115e59) !important;
  text-decoration: none !important;
}

html.iw-cart-page #order-standard_cart .iw-category-rail .iw-clientarea-return {
  margin-right: 4px !important;
}

/* IW 2026-06-28 - cart shell repair after client header changes */
html.iw-cart-page .iw-topbar,
html.iw-cart-page nav#sidebar.wgssidebaraddon,
html.iw-cart-page #sidebarCollapse,
html.iw-cart-page .defaultClientxSidebar,
html.iw-cart-page .sidebar-default {
  display: none !important;
}

html.iw-cart-page #main-body,
html.iw-cart-page .wrapper,
html.iw-cart-page #content,
html.iw-cart-page #content.no-navbar,
html.iw-cart-page #content.no-cartx,
html.iw-cart-page .theme-main-inner-page-section {
  background: transparent !important;
  background-image: none !important;
}

html.iw-cart-page #content,
html.iw-cart-page #content.no-navbar,
html.iw-cart-page #content.no-cartx,
html.iw-cart-page #content.leftSideBarClosed {
  left: 0 !important;
  margin: 0 !important;
  min-height: calc(100vh - 64px) !important;
  padding: 0 !important;
  transform: none !important;
  width: 100% !important;
}

html.iw-cart-page .theme-main-inner-page-section {
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}

html.iw-cart-page #iw-cart-app.iw-flow-page {
  margin: 0 !important;
  min-height: calc(100vh - 64px) !important;
  padding: 24px clamp(14px, 3vw, 36px) 42px !important;
}

html.iw-cart-page #iw-cart-app .wrap {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1180px !important;
  width: 100% !important;
}

html.iw-cart-page #iw-cart-app .stepper {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1180px !important;
}

@media (max-width: 768px) {
  html.iw-cart-page #iw-cart-app.iw-flow-page {
    padding: 16px 12px 32px !important;
  }
}

/* IW 2026-06-28 - restore left sidebar on cart and remove top header logo */
html.iw-cart-page .iw-account-header .iw-header-logo {
  display: none !important;
}

html.iw-cart-page .iw-account-header .iw-header-inner {
  justify-content: flex-end !important;
}

html.iw-cart-page nav#sidebar.wgssidebaraddon {
  display: flex !important;
  left: 0 !important;
  position: fixed !important;
  top: 0 !important;
  width: 280px !important;
  max-width: 280px !important;
  min-width: 280px !important;
  z-index: 1030 !important;
}

html.iw-cart-page #content,
html.iw-cart-page #content.no-navbar,
html.iw-cart-page #content.no-cartx,
html.iw-cart-page #content.leftSideBarClosed {
  left: 280px !important;
  margin-left: 0 !important;
  transform: none !important;
  width: calc(100% - 280px) !important;
}

html.iw-cart-page #main-body > .wrapper,
html.iw-cart-page .wrapper {
  margin-left: 0 !important;
  width: 100% !important;
}

html.iw-cart-page #iw-cart-app.iw-reference-store .iw-ref-wrap,
html.iw-cart-page #iw-cart-app.iw-flow-page {
  padding-left: clamp(18px, 3vw, 34px) !important;
  padding-right: clamp(18px, 3vw, 34px) !important;
}

@media (max-width: 991px) {
  html.iw-cart-page nav#sidebar.wgssidebaraddon {
    max-width: 292px !important;
    width: 86vw !important;
    min-width: 0 !important;
  }

  html.iw-cart-page #content,
  html.iw-cart-page #content.no-navbar,
  html.iw-cart-page #content.no-cartx,
  html.iw-cart-page #content.leftSideBarClosed {
    left: 0 !important;
    width: 100% !important;
  }
}

/* IW 2026-06-28 - keep cart header out of left sidebar */
html.iw-cart-page nav#sidebar.wgssidebaraddon {
  z-index: 1045 !important;
}

html.iw-cart-page .iw-account-header,
html.iw-cart-page nav.iw-account-header,
html.iw-cart-page #iw-main-header.iw-account-header {
  left: 280px !important;
  margin-left: 280px !important;
  width: calc(100% - 280px) !important;
  z-index: 1035 !important;
}

html.iw-cart-page .iw-account-header .iw-header-inner {
  width: 100% !important;
}

@media (max-width: 991px) {
  html.iw-cart-page .iw-account-header,
  html.iw-cart-page nav.iw-account-header,
  html.iw-cart-page #iw-main-header.iw-account-header {
    left: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* IW 2026-06-28 - final cart shell alignment */
html.iw-cart-page nav#sidebar.wgssidebaraddon,
html.iw-cart-page .defaultClientxSidebar,
html.iw-cart-page .sidebar-default {
  display: none !important;
}

html.iw-cart-page .iw-account-header,
html.iw-cart-page nav.iw-account-header,
html.iw-cart-page #iw-main-header.iw-account-header {
  left: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
}

html.iw-cart-page .iw-account-header .iw-header-logo {
  display: inline-flex !important;
}

html.iw-cart-page .iw-account-header .iw-header-inner {
  justify-content: space-between !important;
  margin: 0 auto !important;
  max-width: 1180px !important;
  padding-left: clamp(14px, 3vw, 34px) !important;
  padding-right: clamp(14px, 3vw, 34px) !important;
  width: 100% !important;
}

html.iw-cart-page #main-body,
html.iw-cart-page #main-body > .wrapper,
html.iw-cart-page .wrapper,
html.iw-cart-page #content,
html.iw-cart-page #content.no-navbar,
html.iw-cart-page #content.no-cartx,
html.iw-cart-page #content.leftSideBarClosed,
html.iw-cart-page .theme-main-inner-page-section {
  left: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  transform: none !important;
  width: 100% !important;
}

html.iw-cart-page #iw-cart-app.iw-reference-store .iw-ref-wrap,
html.iw-cart-page #iw-cart-app.iw-flow-page {
  margin: 0 auto !important;
  max-width: none !important;
  padding-left: clamp(14px, 3vw, 34px) !important;
  padding-right: clamp(14px, 3vw, 34px) !important;
  width: 100% !important;
}

html.iw-cart-page #iw-cart-app .wrap,
html.iw-cart-page #iw-cart-app .stepper,
html.iw-cart-page #order-standard_cart.iw-compact-flow {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1180px !important;
  width: 100% !important;
}

@media (max-width: 991px) {
  html.iw-cart-page .iw-account-header,
  html.iw-cart-page nav.iw-account-header,
  html.iw-cart-page #iw-main-header.iw-account-header,
  html.iw-cart-page .iw-account-header .iw-header-inner,
  html.iw-cart-page #content,
  html.iw-cart-page #content.no-navbar,
  html.iw-cart-page #content.no-cartx,
  html.iw-cart-page #content.leftSideBarClosed {
    left: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* IW 2026-06-29 - force client header/sidebar back into cart, checkout and store */
html.iw-cart-page body:not(.login-bg) .iw-topbar,
html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon,
html.iw-cart-page body:not(.login-bg) nav#sidebar.wgssidebaraddon,
html.iw-cart-page body:not(.login-bg) .defaultClientxSidebar,
html.iw-cart-page body:not(.login-bg) .sidebar-default {
  opacity: 1 !important;
  visibility: visible !important;
}

html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon {
  display: block !important;
  left: 280px !important;
  margin-left: 0 !important;
  right: 0 !important;
  width: calc(100% - 280px) !important;
  z-index: 1040 !important;
}

html.iw-cart-page body:not(.login-bg) nav#sidebar.wgssidebaraddon,
html.iw-cart-page body:not(.login-bg) .defaultClientxSidebar,
html.iw-cart-page body:not(.login-bg) .sidebar-default {
  display: flex !important;
}

html.iw-cart-page body:not(.login-bg) nav#sidebar.wgssidebaraddon {
  bottom: 0 !important;
  height: 100vh !important;
  left: 0 !important;
  max-width: 280px !important;
  min-width: 280px !important;
  position: fixed !important;
  top: 0 !important;
  transform: none !important;
  width: 280px !important;
  z-index: 1045 !important;
}

html.iw-cart-page body:not(.login-bg) #content,
html.iw-cart-page body:not(.login-bg) #content.no-navbar,
html.iw-cart-page body:not(.login-bg) #content.no-cartx,
html.iw-cart-page body:not(.login-bg) #content.leftSideBarClosed {
  left: 280px !important;
  margin-left: 0 !important;
  max-width: none !important;
  min-height: calc(100vh - 64px) !important;
  padding: 0 !important;
  transform: none !important;
  width: calc(100% - 280px) !important;
}

html.iw-cart-page body:not(.login-bg) #main-body > .wrapper,
html.iw-cart-page body:not(.login-bg) .wrapper {
  margin-left: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

html.iw-cart-page body:not(.login-bg) #iw-cart-app.iw-reference-store .iw-ref-wrap,
html.iw-cart-page body:not(.login-bg) #iw-cart-app.iw-flow-page {
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(18px, 3vw, 34px) !important;
  padding-right: clamp(18px, 3vw, 34px) !important;
}

@media (max-width: 991px) {
  html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon {
    left: 0 !important;
    width: 100% !important;
  }

  html.iw-cart-page body:not(.login-bg) nav#sidebar.wgssidebaraddon {
    max-width: 292px !important;
    min-width: 0 !important;
    width: 86vw !important;
  }

  html.iw-cart-page body:not(.login-bg) #content,
  html.iw-cart-page body:not(.login-bg) #content.no-navbar,
  html.iw-cart-page body:not(.login-bg) #content.no-cartx,
  html.iw-cart-page body:not(.login-bg) #content.leftSideBarClosed {
    left: 0 !important;
    width: 100% !important;
  }
}

/* IW 2026-06-29 - keep original top header actions visible on store/cart */
html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon .container-fluid,
html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon .header-right,
html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon .navbar-right,
html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon .navbar-nav {
  align-items: center !important;
  display: flex !important;
}

html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon .container-fluid {
  justify-content: space-between !important;
  width: 100% !important;
}

html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon .header-right {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon .navbar-nav {
  gap: 8px !important;
  margin: 0 !important;
}

html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon .messages-menu.settings,
html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon .messages-menu.settings > a.dropdown-toggle {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* IW 2026-06-30 - unifica header/sidebar del carrito con el area cliente */
html.iw-cart-page body:not(.login-bg) .iw-topbar:not(.iw-category-rail) {
  display: none !important;
}

html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon,
html.iw-cart-page body:not(.login-bg) #iw-main-header {
  left: 280px !important;
  margin-left: 0 !important;
  right: 0 !important;
  width: calc(100% - 280px) !important;
  z-index: 1040 !important;
}

html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon .iw-header-inner {
  max-width: none !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  width: 100% !important;
}

html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon .iw-header-nav {
  display: flex !important;
  min-width: 0 !important;
}

html.iw-cart-page body:not(.login-bg) nav#sidebar.wgssidebaraddon {
  display: flex !important;
  left: 0 !important;
  max-width: 280px !important;
  min-width: 280px !important;
  position: fixed !important;
  top: 0 !important;
  transform: none !important;
  width: 280px !important;
  z-index: 1045 !important;
}

html.iw-cart-page body:not(.login-bg) #content,
html.iw-cart-page body:not(.login-bg) #content.no-cartx,
html.iw-cart-page body:not(.login-bg) #content.no-navbar,
html.iw-cart-page body:not(.login-bg) #content.leftSideBarClosed {
  left: 280px !important;
  margin-left: 0 !important;
  padding: 0 !important;
  transform: none !important;
  width: calc(100% - 280px) !important;
}

@media (max-width: 991px) {
  html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon,
  html.iw-cart-page body:not(.login-bg) #iw-main-header {
    left: 0 !important;
    width: 100% !important;
  }

  html.iw-cart-page body:not(.login-bg) nav#sidebar.wgssidebaraddon {
    max-width: 320px !important;
    min-width: 0 !important;
    width: min(86vw, 320px) !important;
  }

  html.iw-cart-page body:not(.login-bg) #content,
  html.iw-cart-page body:not(.login-bg) #content.no-cartx,
  html.iw-cart-page body:not(.login-bg) #content.no-navbar,
  html.iw-cart-page body:not(.login-bg) #content.leftSideBarClosed {
    left: 0 !important;
    width: 100% !important;
  }
}

/* IW 2026-06-30 - offset real del header frente al sidebar en carrito/dominios */
@media (min-width: 992px) {
  html.iw-cart-page body:not(.login-bg) nav#sidebar.wgssidebaraddon {
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: 100vh !important;
    position: fixed !important;
    transform: none !important;
    z-index: 1100 !important;
  }

  html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon,
  html.iw-cart-page body:not(.login-bg) #iw-main-header {
    left: auto !important;
    right: auto !important;
    margin-left: 280px !important;
    max-width: calc(100% - 280px) !important;
    position: sticky !important;
    top: 0 !important;
    transform: none !important;
    width: calc(100% - 280px) !important;
    z-index: 1030 !important;
  }

  html.iw-cart-page body:not(.login-bg) #main-body > .wrapper,
  html.iw-cart-page body:not(.login-bg) .wrapper {
    margin-left: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  html.iw-cart-page body:not(.login-bg) #content,
  html.iw-cart-page body:not(.login-bg) #content.no-cartx,
  html.iw-cart-page body:not(.login-bg) #content.no-navbar,
  html.iw-cart-page body:not(.login-bg) #content.leftSideBarClosed {
    left: auto !important;
    margin-left: 280px !important;
    max-width: calc(100% - 280px) !important;
    padding: 0 !important;
    position: relative !important;
    transform: none !important;
    width: calc(100% - 280px) !important;
  }
}

@media (max-width: 991px) {
  html.iw-cart-page body:not(.login-bg) .clientx.header.wgsheaderfromaddon,
  html.iw-cart-page body:not(.login-bg) #iw-main-header,
  html.iw-cart-page body:not(.login-bg) #content,
  html.iw-cart-page body:not(.login-bg) #content.no-cartx,
  html.iw-cart-page body:not(.login-bg) #content.no-navbar,
  html.iw-cart-page body:not(.login-bg) #content.leftSideBarClosed {
    left: 0 !important;
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  html.iw-cart-page body:not(.login-bg) nav#sidebar.wgssidebaraddon {
    z-index: 12050 !important;
  }
}

/* Cart Modal Improvements: native Bootstrap modal with a soft accessible backdrop. */
html.iw-cart-page .modal-backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(4px); opacity: 1; z-index: 1040; }
html.iw-cart-page #modalRemoveItem.iw-cart-confirm-modal { z-index: 1050; }
html.iw-cart-page #modalRemoveItem .modal-dialog { margin: 8vh auto; max-width: 520px; pointer-events: none; transform: translateY(14px) scale(.98); transition: transform 180ms ease, opacity 180ms ease; width: calc(100% - 32px); }
html.iw-cart-page #modalRemoveItem.show .modal-dialog, html.iw-cart-page #modalRemoveItem.in .modal-dialog { transform: translateY(0) scale(1); }
html.iw-cart-page #modalRemoveItem .modal-content { background: #fff; border: 0; border-radius: 18px; box-shadow: 0 24px 64px rgba(15, 23, 42, .22); overflow: hidden; pointer-events: auto; }
html.iw-cart-page #modalRemoveItem .modal-body { padding: 30px 32px 18px; text-align: left; }
html.iw-cart-page .iw-cart-confirm-header { align-items: center; display: flex; gap: 12px; }
html.iw-cart-page .iw-cart-confirm-icon { align-items: center; background: #fef2f2; border-radius: 10px; color: #ef4444; display: inline-flex; flex: 0 0 44px; font-size: 24px; height: 44px; justify-content: center; }
html.iw-cart-page .iw-cart-confirm-modal .modal-title { color: #0f172a; font-size: 20px; font-weight: 700; line-height: 1.2; margin: 0; }
html.iw-cart-page .iw-cart-confirm-close { align-items: center; border: 0; border-radius: 8px; color: #64748b; display: inline-flex; font-size: 24px; height: 36px; justify-content: center; margin-left: auto; opacity: 1; padding: 0; transition: background-color 180ms ease, color 180ms ease; width: 36px; }
html.iw-cart-page .iw-cart-confirm-close:hover, html.iw-cart-page .iw-cart-confirm-close:focus-visible { background: #f1f5f9; color: #0f172a; outline: 0; }
html.iw-cart-page .iw-cart-confirm-question { color: #334155; font-size: 16px; font-weight: 600; line-height: 1.55; margin: 24px 0 6px; }
html.iw-cart-page .iw-cart-confirm-description { color: #64748b; font-size: 16px; line-height: 1.55; margin: 0; }
html.iw-cart-page #modalRemoveItem .iw-cart-confirm-actions { border: 0; display: flex; gap: 12px; justify-content: flex-end; padding: 18px 32px 30px; }
html.iw-cart-page .iw-cart-confirm-actions .btn { min-height: 44px; padding: 10px 18px; transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
html.iw-cart-page .iw-cart-confirm-cancel { background: #fff; border: 1px solid #cbd5e1; color: #334155; }
html.iw-cart-page .iw-cart-confirm-cancel:hover, html.iw-cart-page .iw-cart-confirm-cancel:focus-visible { background: #f8fafc; border-color: #94a3b8; color: #0f172a; }
html.iw-cart-page .iw-cart-confirm-submit { background: #ef4444; border: 1px solid #ef4444; color: #fff; }
html.iw-cart-page .iw-cart-confirm-submit:hover, html.iw-cart-page .iw-cart-confirm-submit:focus-visible { background: #dc2626; border-color: #dc2626; box-shadow: 0 10px 20px rgba(220, 38, 38, .22); color: #fff; transform: translateY(-1px); }
html.iw-cart-page .iw-cart-confirm-actions .btn:focus-visible { outline: 3px solid rgba(14, 165, 233, .35); outline-offset: 2px; }
@media (max-width: 575px) { html.iw-cart-page #modalRemoveItem .modal-dialog { margin: 4vh auto; width: 92%; } html.iw-cart-page #modalRemoveItem .modal-body { padding: 24px 24px 16px; } html.iw-cart-page #modalRemoveItem .iw-cart-confirm-actions { flex-direction: column-reverse; padding: 16px 24px 24px; } html.iw-cart-page .iw-cart-confirm-actions .btn { width: 100%; } }

/* MarketConnect: diseño integral de servicios adicionales */
html.iw-cart-page #order-standard_cart .mc-promos.checkout{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;margin:20px 0 28px!important;padding:0!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout:before{content:'Servicios adicionales'!important;grid-column:1/-1!important;color:#123d59!important;font-size:22px!important;font-weight:900!important;line-height:1.2!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo{display:flex!important;flex-direction:column!important;min-height:220px!important;margin:0!important;border:1px solid #d8e7ed!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 24px rgba(18,61,89,.08)!important;overflow:hidden!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo:hover{border-color:#55b9ad!important;box-shadow:0 16px 32px rgba(18,61,89,.14)!important;transform:translateY(-3px)!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .header{display:grid!important;grid-template-columns:58px minmax(0,1fr) auto!important;grid-template-areas:'icon content cta'!important;align-items:center!important;gap:14px!important;min-height:102px!important;padding:18px!important;background:linear-gradient(135deg,#f3fbfb,#f8fbff)!important;border-bottom:1px solid #e1edf1!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .icon{grid-area:icon!important;display:grid!important;place-items:center!important;width:58px!important;height:58px!important;margin:0!important;border:1px solid #d9e9ee!important;border-radius:15px!important;background:#fff!important;box-shadow:0 5px 12px rgba(18,61,89,.08)!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .icon img{display:block!important;width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;object-fit:contain!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .content{grid-area:content!important;min-width:0!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .headline{color:#123d59!important;font-size:16px!important;font-weight:900!important;line-height:1.25!important;white-space:normal!important;overflow:visible!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .tagline{margin-top:5px!important;color:#657d8b!important;font-size:12px!important;font-weight:600!important;white-space:normal!important;overflow:visible!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .cta{grid-area:cta!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:8px!important;margin:0!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .price{color:#0b8877!important;font-size:15px!important;font-weight:900!important;white-space:nowrap!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .btn-add{display:inline-flex!important;align-items:center!important;gap:7px!important;min-height:36px!important;padding:8px 13px!important;border:0!important;border-radius:9px!important;background:#0f9d8b!important;color:#fff!important;font-size:12px!important;font-weight:850!important;box-shadow:0 6px 14px rgba(15,157,139,.22)!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .btn-add:hover{background:#087d70!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .expander{display:none!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .body{display:block!important;flex:1!important;padding:16px 18px 18px!important;background:#fff!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .body ul{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:0!important;padding:0!important;list-style:none!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .body li{display:flex!important;gap:8px!important;align-items:flex-start!important;margin:0!important;padding:0!important;color:#506b7a!important;font-size:12px!important;line-height:1.4!important}
html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .body li i{flex:0 0 auto!important;margin-top:2px!important;color:#0f9d8b!important}
@media(max-width:760px){html.iw-cart-page #order-standard_cart .mc-promos.checkout{grid-template-columns:1fr!important}html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .header{grid-template-columns:52px minmax(0,1fr)!important;grid-template-areas:'icon content' 'icon cta'!important}html.iw-cart-page #order-standard_cart .mc-promos.checkout .mc-promo .cta{align-items:flex-start!important;flex-direction:row!important;flex-wrap:wrap!important}}
