/* Scope the layout to product configuration; preserve WHMCS form handlers. */
#order-standard_cart:has(#frmConfigureProduct) { max-width: 1120px; margin: 0 auto; color: #edeaf7; }
#order-standard_cart:has(#frmConfigureProduct) > .row { display: block; margin: 0; }
#order-standard_cart:has(#frmConfigureProduct) .cart-sidebar,
#order-standard_cart:has(#frmConfigureProduct) .sidebar-collapsed { display: none !important; }
#order-standard_cart:has(#frmConfigureProduct) .cart-body { float: none !important; width: 100% !important; padding: 0 !important; }
#order-standard_cart:has(#frmConfigureProduct) .header-lined { border: 0; margin: 0 0 28px; padding: 0; }
#order-standard_cart:has(#frmConfigureProduct) .header-lined h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; color: #f3f1fa; margin: 0; }
#frmConfigureProduct > .row { display: grid !important; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin: 0 !important; align-items: start; }
#order-standard_cart #frmConfigureProduct .secondary-cart-body { float: none !important; width: auto !important; min-width: 0; padding: 28px !important; border: 1px solid #ffffff18; border-radius: 16px; background: #131827; }
#order-standard_cart #frmConfigureProduct .secondary-cart-body > p:first-child { display: none; }
#order-standard_cart #frmConfigureProduct .product-info { background: transparent !important; padding: 0 0 24px !important; margin: 0 0 24px !important; border: 0 !important; border-bottom: 1px solid #ffffff18 !important; color: #b4b1c7 !important; }
#order-standard_cart #frmConfigureProduct .product-info .product-title { font-family: 'Space Grotesk', sans-serif; font-size: 25px; font-weight: 600; color: #f3f1fa !important; margin: 0 0 10px; }
#order-standard_cart #frmConfigureProduct .product-info p:last-child { color: #b4b1c7 !important; font-size: 14px; line-height: 1.7; margin: 0; }
#order-standard_cart #frmConfigureProduct .field-container { background: transparent !important; margin-bottom: 24px; padding: 0 !important; }
#order-standard_cart #frmConfigureProduct label { color: #edeaf7 !important; font-size: 14px; font-weight: 500; }
#order-standard_cart #frmConfigureProduct .form-control { width: 100%; max-width: 100%; height: 48px; background: #0c101c !important; color: #f3f1fa !important; border: 1px solid #ffffff30 !important; border-radius: 9px; padding: 10px 14px; }
#order-standard_cart #frmConfigureProduct [hidden] { display: none !important; }
#order-standard_cart #frmConfigureProduct .sub-heading { text-align: left; border: 0 !important; margin: 28px 0 20px; height: auto; }
#order-standard_cart #frmConfigureProduct .sub-heading span { background: transparent !important; color: #f3f1fa !important; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 19px; padding: 0 !important; position: static; }
#order-standard_cart #productConfigurableOptions > .row { margin: 0; }
#order-standard_cart #productConfigurableOptions > .row > div { flex: 0 0 100%; max-width: 100%; width: 100%; padding: 0; }
#order-standard_cart #frmConfigureProduct .outspace-ram-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
#order-standard_cart #frmConfigureProduct .outspace-ram-choice { min-width: 0; min-height: 90px; text-align: left; padding: 16px 14px; border: 1px solid #ffffff24; background: #0c101c; border-radius: 10px; color: #edeaf7; cursor: pointer; transition: border-color .15s, background-color .15s; }
#order-standard_cart #frmConfigureProduct .outspace-ram-choice:hover { border-color: #bba7ff80; background: #1a1d30; }
#order-standard_cart #frmConfigureProduct .outspace-ram-choice[aria-pressed="true"] { border-color: #bba7ff; background: #bba7ff14; box-shadow: inset 0 0 0 1px #bba7ff; }
#order-standard_cart #frmConfigureProduct .outspace-ram-choice strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; color: #f3f1fa; }
#order-standard_cart #frmConfigureProduct .outspace-ram-choice span { display: block; margin-top: 7px; color: #b4b1c7; font-size: 12px; }
#order-standard_cart #frmConfigureProduct .outspace-ram-choice[aria-pressed="true"] strong { color: #d7cbff; }
#order-standard_cart #frmConfigureProduct .alert-warning.info-text-sm { background: transparent !important; color: #b4b1c7 !important; border: 0 !important; border-top: 1px solid #ffffff18 !important; padding: 20px 0 0 !important; margin: 24px 0 0; text-align: left; font-size: 12px; line-height: 1.7; }
#order-standard_cart #frmConfigureProduct .alert-warning .alert-link { color: #bba7ff !important; }
#order-standard_cart #frmConfigureProduct .secondary-cart-sidebar { float: none !important; width: 100% !important; margin: 0 !important; min-width: 0; padding: 0 !important; }
#order-standard_cart #frmConfigureProduct #orderSummary { position: static !important; width: 100% !important; margin: 0 !important; }
#order-standard_cart #frmConfigureProduct .order-summary { background: #131827 !important; border: 1px solid #ffffff18; border-radius: 16px; box-shadow: none !important; margin: 0 0 14px !important; padding: 24px !important; color: #edeaf7 !important; }
#order-standard_cart #frmConfigureProduct .order-summary h2 { font-family: 'Space Grotesk', sans-serif; font-size: 20px !important; color: #f3f1fa !important; text-align: left !important; margin: 0 0 22px; }
#order-standard_cart #frmConfigureProduct .summary-container { padding: 0 !important; background: transparent !important; color: #edeaf7; }
#order-standard_cart #frmConfigureProduct .product-name { font-size: 16px; color: #edeaf7; }
#order-standard_cart #frmConfigureProduct .product-group { display: block; font-size: 12px; color: #a2a5b9; margin: 4px 0 20px; }
#order-standard_cart #frmConfigureProduct #producttotal .clearfix { font-size: 13px; margin-bottom: 10px; }
#order-standard_cart #frmConfigureProduct .summary-totals { border-top: 1px solid #ffffff18; margin-top: 22px; padding-top: 18px; }
#order-standard_cart #frmConfigureProduct .total-due-today { text-align: left !important; padding: 22px 0 0 !important; border-top: 1px solid #ffffff18; margin-top: 18px; }
#order-standard_cart #frmConfigureProduct .total-due-today .amt { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 36px !important; line-height: 1.2; color: #d7cbff; font-weight: 600; margin-bottom: 6px; }
#order-standard_cart #frmConfigureProduct .total-due-today > span:last-child { color: #a2a5b9; font-size: 12px; }
#order-standard_cart #btnCompleteProductConfig { width: 100%; min-height: 50px; border-radius: 10px; font-size: 15px; }
#order-standard_cart #frmConfigureProduct .outspace-server-name { margin: 0 0 28px; }
#order-standard_cart #frmConfigureProduct .field-help-text { display: block; margin-top: 8px; color: #a2a5b9; font-size: 12px; line-height: 1.6; }
#order-standard_cart #frmConfigureProduct .outspace-specs { padding: 24px; margin-bottom: 16px; border: 1px solid #ffffff18; border-radius: 16px; background: #131827; }
#order-standard_cart #frmConfigureProduct .outspace-specs h2 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; color: #f3f1fa; margin: 0 0 8px; }
#order-standard_cart #frmConfigureProduct .outspace-specs-name { font-size: 13px; color: #bba7ff; margin: 0 0 20px; overflow-wrap: anywhere; }
#order-standard_cart #frmConfigureProduct .outspace-specs dl { margin: 0; }
#order-standard_cart #frmConfigureProduct .outspace-specs dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #ffffff0c; }
#order-standard_cart #frmConfigureProduct .outspace-specs dt { color: #a2a5b9; font-weight: 400; font-size: 13px; }
#order-standard_cart #frmConfigureProduct .outspace-specs dd { color: #edeaf7; margin: 0; font-weight: 500; font-size: 13px; }
#order-standard_cart #frmConfigureProduct .outspace-latency { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 4px; }
#order-standard_cart #frmConfigureProduct .outspace-latency .btn { border-radius: 8px; font-size: 12px; padding: 9px 12px; }
#order-standard_cart #frmConfigureProduct .outspace-latency-result { color: #d7cbff; font-size: 13px; }
#order-standard_cart #frmConfigureProduct .outspace-latency .field-help-text { flex-basis: 100%; margin: 0; }
#order-standard_cart #frmConfigureProduct .outspace-specs dd[data-spec="location"] { text-align: right; }
#order-standard_cart #frmConfigureProduct .outspace-location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
#order-standard_cart #frmConfigureProduct .outspace-location-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; min-height: 114px; width: 100%; padding: 16px 14px; text-align: left; border: 1px solid #ffffff24; border-radius: 10px; background: #0c101c; color: #edeaf7; cursor: pointer; transition: background-color .15s, border-color .15s; }
#order-standard_cart #frmConfigureProduct .outspace-location-card:hover { border-color: #bba7ff80; background: #1a1d30; }
#order-standard_cart #frmConfigureProduct .outspace-location-card[aria-pressed="true"] { border-color: #bba7ff; background: #bba7ff14; box-shadow: inset 0 0 0 1px #bba7ff; }
#order-standard_cart #frmConfigureProduct .outspace-location-details { min-width: 0; }
#order-standard_cart #frmConfigureProduct .outspace-location-details strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 16px; line-height: 1.4; color: #f3f1fa; }
#order-standard_cart #frmConfigureProduct .outspace-location-state { display: block; margin-top: 6px; color: #bba7ff; font-size: 12px; }
#order-standard_cart #frmConfigureProduct .outspace-location-ping { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; padding: 0; border: 0; text-align: left; }
#order-standard_cart #frmConfigureProduct .outspace-location-ping strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #d7cbff; }
#order-standard_cart #frmConfigureProduct .outspace-location-ping > span { display: block; font-size: 11px; color: #a2a5b9; margin-top: 5px; }
#order-standard_cart #frmConfigureProduct .outspace-location-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
#order-standard_cart #frmConfigureProduct .outspace-location-footer .field-help-text { margin: 0; }
#order-standard_cart #frmConfigureProduct .outspace-latency-refresh { flex-shrink: 0; padding: 5px 0; font-size: 12px; }
#order-standard_cart #frmConfigureProduct .outspace-location-coming-soon { opacity: .65; cursor: not-allowed; justify-content: flex-start; }
#order-standard_cart #frmConfigureProduct .outspace-location-coming-soon > strong { font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #edeaf7; }
#order-standard_cart #frmConfigureProduct .outspace-location-coming-soon .outspace-location-state { color: #a2a5b9; margin-top: 0; }
#order-standard_cart #frmConfigureProduct .outspace-location-coming-soon:hover { background: #0c101c; border-color: #ffffff24; }
@media (max-width: 480px) {
  #order-standard_cart #frmConfigureProduct .outspace-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #order-standard_cart #frmConfigureProduct .outspace-location-card { padding: 16px 12px; gap: 10px; }
  #order-standard_cart #frmConfigureProduct .outspace-location-details strong { font-size: 14px; }
  #order-standard_cart #frmConfigureProduct .outspace-location-ping strong { font-size: 15px; }
}

/* Payment fields use Stripe-hosted inputs; their inner text is themed through Stripe.js. */
#order-standard_cart #frmCheckout #creditCardInputFields {
  background: #131827 !important; color: #edeaf7 !important;
  border: 1px solid #ffffff24; border-radius: 14px; padding: 24px; margin: 20px 0 28px;
}
#order-standard_cart #frmCheckout #creditCardInputFields label,
#order-standard_cart #frmCheckout #paymentGatewaysContainer label { color: #edeaf7 !important; }
#order-standard_cart #frmCheckout #creditCardInputFields > ul { padding: 0; margin: 0 0 24px; list-style: none; }
#order-standard_cart #frmCheckout #creditCardInputFields .stripe-cards-inputs {
  width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0; float: none;
}
#order-standard_cart #frmCheckout .stripe-cards-inputs > .row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 0;
}
#order-standard_cart #frmCheckout .stripe-cards-inputs > .row > div { width: 100%; max-width: 100%; padding: 0; min-width: 0; }
#order-standard_cart #frmCheckout .stripe-cards-inputs label { display: block; font-size: 13px; margin-bottom: 8px; }
#order-standard_cart #frmCheckout #stripeCreditCard,
#order-standard_cart #frmCheckout #stripeExpiryDate,
#order-standard_cart #frmCheckout #stripeCvc {
  background: #0c101c !important; border: 1px solid #ffffff30 !important; border-radius: 9px;
  height: 50px; min-height: 50px; padding: 12px 14px; box-shadow: none;
}
#order-standard_cart #frmCheckout #creditCardInputFields .StripeElement--focus { border-color: #bba7ff !important; box-shadow: 0 0 0 3px #bba7ff18; }
#order-standard_cart #frmCheckout #creditCardInputFields .StripeElement--invalid { border-color: #ff929e !important; }
#order-standard_cart #frmCheckout #inputDescriptionContainer { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
#order-standard_cart #frmCheckout #inputDescription { height: 46px; }
#order-standard_cart #frmCheckout #newCardSaveSettings > .row { margin: 18px -15px 0; }
#order-standard_cart #frmCheckout .field-error-msg,
#order-standard_cart #frmCheckout .gateway-errors { color: #ff929e !important; }
@media (max-width: 600px) {
  #order-standard_cart #frmCheckout #creditCardInputFields { padding: 20px; }
  #order-standard_cart #frmCheckout .stripe-cards-inputs > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #order-standard_cart #frmCheckout .stripe-cards-inputs > .row > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 991px) {
  #frmConfigureProduct > .row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #order-standard_cart #frmConfigureProduct .secondary-cart-body { padding: 24px !important; }
}
@media (max-width: 480px) {
  #order-standard_cart #frmConfigureProduct .secondary-cart-body { padding: 20px !important; }
  #order-standard_cart #frmConfigureProduct .outspace-ram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #order-standard_cart:has(#frmConfigureProduct) .header-lined { margin-bottom: 20px; }
}
