/* Product configuration: ordinary section headings and explicit field spacing. */
body.dp-theme #front-content:has(.dp-configure-order) { background:var(--paper-deep)!important; background-image:none!important; }
body.dp-theme #order-standard_cart.dp-configure-order { padding-top:0; }
body.dp-theme #order-standard_cart.dp-configure-order>.dp-product-workspace {
  display:grid; grid-template-columns:240px minmax(0,1fr); gap:24px; align-items:start; margin:0;
}
body.dp-theme #order-standard_cart.dp-configure-order>.dp-product-workspace>:is(.cart-sidebar,.cart-body) {
  float:none; width:100%; min-width:0; max-width:100%; margin:0; padding:0;
}
body.dp-theme #order-standard_cart.dp-configure-order #frmConfigureProduct { margin:0; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-product-layout {
  display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:22px; align-items:start; margin:0;
}
body.dp-theme #order-standard_cart.dp-configure-order .dp-product-layout>:is(.secondary-cart-body,.secondary-cart-sidebar) {
  float:none; position:static; width:100%; min-width:0; max-width:100%; margin:0; padding:0;
}
body.dp-theme #order-standard_cart.dp-configure-order .secondary-cart-body { display:grid; gap:20px; align-content:start; }
body.dp-theme #order-standard_cart.dp-configure-order .secondary-cart-body>.alert { margin:0; }
body.dp-theme #order-standard_cart.dp-configure-order :is(.product-info,.dp-config-section) {
  min-width:0; margin:0; padding:22px; border:1px solid var(--line); border-radius:18px;
  background:var(--surface); color:var(--ink); text-align:start; box-shadow:none;
}
body.dp-theme #order-standard_cart.dp-configure-order .product-title {
  margin:0 0 16px; padding:0 0 14px; border-bottom:1px solid var(--line-soft);
  color:var(--ink); font-family:inherit; font-size:23px; font-weight:700; line-height:1.8; overflow-wrap:anywhere;
}
body.dp-theme #order-standard_cart.dp-configure-order .dp-order-features { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-order-features li { font-size:13px; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-order-description { font-size:13px; line-height:1.9; overflow-wrap:anywhere; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-order-description>:last-child { margin-bottom:0; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-section-title {
  display:block; position:static; height:auto; margin:0 0 20px; padding:0 0 14px;
  border:0; border-bottom:1px solid var(--line-soft); background:transparent;
  color:var(--ink); font:700 16px/1.9 var(--site-font-family); text-align:start;
}
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-section-help {
  margin:-6px 0 18px; font-size:12px; line-height:1.9; color:var(--ink-500);
}
body.dp-theme #order-standard_cart.dp-configure-order .row.dp-config-fields {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 24px; align-items:start; margin:0;
}
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-fields>[class*=col-] {
  float:none; flex:initial; width:100%; min-width:0; max-width:100%; margin:0; padding:0;
}
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-fields>.col-sm-12,
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-custom-field:has(textarea) { grid-column:1/-1; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-section .form-group { min-width:0; margin:0; }
body.dp-theme #order-standard_cart.dp-configure-order :is(.dp-config-fields,.dp-config-billing) :is(.form-group>label:not(.dp-config-choice),.dp-config-label) {
  display:block; margin:0 0 9px; color:var(--ink-700); font:500 13px/1.9 var(--site-font-family); text-align:start;
}
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-section :is(input.form-control,select.form-control,textarea.form-control) {
  width:100%; min-width:0; max-width:100%; min-height:48px; height:48px; margin:0; padding:10px 13px;
  border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink);
  font:14px/1.7 var(--site-font-family); box-shadow:none;
}
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-section input[dir=ltr] { text-align:left; font-family:Tahoma,Arial,sans-serif; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-section select.form-control { padding-inline-end:34px; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-section textarea.form-control { height:auto; min-height:110px; resize:vertical; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-section select[multiple] { height:auto; min-height:110px; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-section :is(input,select,textarea):focus { border-color:var(--action); box-shadow:none; }
body.dp-theme #order-standard_cart.dp-configure-order :is(button,a.btn,input,select,textarea):focus-visible { outline:2px solid var(--action); outline-offset:3px; }
body.dp-theme #order-standard_cart.dp-configure-order .field-help-text { display:block; margin-top:8px; color:var(--ink-500); font-size:12px; line-height:1.9; overflow-wrap:anywhere; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-choice {
  display:flex; align-items:flex-start; gap:10px; width:100%; margin:0 0 10px; font-size:13px; line-height:1.9; cursor:pointer;
}
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-choice:last-child { margin-bottom:0; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-choice>:is(input,.icheckbox_square-blue,.iradio_square-blue) { flex:none; margin:3px 0 0!important; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-custom-field>input:is([type=checkbox],[type=radio]),
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-custom-field>:is(.icheckbox_square-blue,.iradio_square-blue) { margin-inline:0 8px; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-quantity { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-quantity .form-control-qty { flex:0 1 110px; width:110px; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-quantity .form-control-static { flex:1 1 160px; margin:0; padding:0; font-size:13px; line-height:1.9; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-fields .irs { max-width:100%; margin-bottom:12px; }

/* The native billing-cycle select remains the submitted control. */
body.dp-theme #order-standard_cart.dp-configure-order .dp-cycle-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-cycle-option {
  min-width:0; width:100%; min-height:50px; height:auto; margin:0; padding:12px;
  gap:10px; border-radius:12px; font-size:12px; line-height:1.9; font-family:inherit; box-shadow:none!important;
}
body.dp-theme #order-standard_cart.dp-configure-order .dp-cycle-option>span { min-width:0; overflow-wrap:anywhere; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-cycle-check { margin:0!important; }

/* Add-ons retain WHMCS selection handlers and use real keyboard-accessible buttons. */
body.dp-theme #order-standard_cart.dp-configure-order .row.dp-config-addon-grid { display:flex; flex-wrap:wrap; align-items:flex-start; gap:16px; margin:0; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-addon-grid>[class*=col-] { flex:1 1 calc(50% - 8px); min-width:min(100%,230px); max-width:100%; margin:0; padding:0; }
body.dp-theme #order-standard_cart.dp-configure-order .panel-addon {
  display:flex; flex-direction:column; min-width:0; margin:0; padding:0; border:1px solid var(--line);
  border-radius:14px; background:var(--surface); color:var(--ink); text-align:start; font-family:inherit; box-shadow:none;
}
body.dp-theme #order-standard_cart.dp-configure-order .panel-addon.panel-addon-selected { border-color:var(--action); background:var(--brand-50); }
body.dp-theme #order-standard_cart.dp-configure-order .panel-addon .panel-body { min-width:0; padding:18px 16px; background:transparent; }
body.dp-theme #order-standard_cart.dp-configure-order .panel-addon .panel-body label { display:flex; align-items:flex-start; gap:10px; margin:0; color:var(--ink); font:700 13px/1.9 var(--site-font-family); }
body.dp-theme #order-standard_cart.dp-configure-order .panel-addon label>:is(input,.icheckbox_square-blue) { flex:none; margin:2px 0 0!important; }
body.dp-theme #order-standard_cart.dp-configure-order .panel-addon label>span { flex:1; min-width:0; overflow-wrap:anywhere; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-addon-description { margin-top:10px; color:var(--ink-500); font-size:12px; line-height:1.9; overflow-wrap:anywhere; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-addon-description>:last-child { margin-bottom:0; }
body.dp-theme #order-standard_cart.dp-configure-order .panel-addon .panel-price { margin:0 16px; padding:12px 0; border-top:1px solid var(--line-soft); background:transparent; color:var(--ink); font-size:13px; line-height:1.9; }
body.dp-theme #order-standard_cart.dp-configure-order .panel-addon .panel-add {
  display:flex; align-items:center; justify-content:center; gap:8px; width:calc(100% - 32px); min-height:42px;
  margin:0 16px 16px; padding:9px 12px; border:1px solid var(--action); border-radius:10px;
  background:var(--action); color:#fff; font:500 12px/1.8 var(--site-font-family); text-align:center; white-space:normal; box-shadow:none!important;
}
body.dp-theme #order-standard_cart.dp-configure-order .panel-addon .panel-add:hover { background:var(--action-hover); border-color:var(--action-hover); color:#fff; }
body.dp-theme #order-standard_cart.dp-configure-order .panel-addon .panel-add>i { flex:none; margin:0!important; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-metrics>ul { margin:0; padding-inline-start:20px; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-metrics>ul>li { margin-bottom:12px; font-size:13px; line-height:1.9; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-metrics>ul>li:last-child { margin-bottom:0; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-metrics .btn { margin-inline-start:8px; }

/* Summary and continue action share a compact card, without scroll offsets. */
body.dp-theme #order-standard_cart.dp-configure-order #orderSummary {
  position:static!important; width:100%!important; margin:0!important; padding:20px;
  border:1px solid var(--line); border-radius:18px; background:var(--surface); color:var(--ink);
}
body.dp-theme #order-standard_cart.dp-configure-order .order-summary { margin:0; padding:0!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
body.dp-theme #order-standard_cart.dp-configure-order .order-summary h2 { margin:0!important; font-size:18px!important; line-height:1.8; text-align:start; }
body.dp-theme #order-standard_cart.dp-configure-order .order-summary .summary-container { margin:0; padding:0!important; }
body.dp-theme #order-standard_cart.dp-configure-order .dp-config-summary-actions { margin-top:18px; padding-top:16px; border-top:1px solid var(--line-soft); }
body.dp-theme #order-standard_cart.dp-configure-order #btnCompleteProductConfig { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:46px; margin:0; padding:10px 14px; font-size:13px; line-height:1.9; }
body.dp-theme #order-standard_cart.dp-configure-order #btnCompleteProductConfig>i { flex:none; margin:0!important; }
@media(max-width:1199px) {
  body.dp-theme #order-standard_cart.dp-configure-order .dp-product-layout { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:991px) {
  body.dp-theme #order-standard_cart.dp-configure-order>.dp-product-workspace { grid-template-columns:minmax(0,1fr); gap:18px; }
}
@media(max-width:600px) {
  body.dp-theme #order-standard_cart.dp-configure-order :is(.product-info,.dp-config-section) { padding:18px 16px; }
  body.dp-theme #order-standard_cart.dp-configure-order .product-title { font-size:21px; }
  body.dp-theme #order-standard_cart.dp-configure-order .row.dp-config-fields { grid-template-columns:minmax(0,1fr); gap:20px; }
  body.dp-theme #order-standard_cart.dp-configure-order .dp-order-features,
  body.dp-theme #order-standard_cart.dp-configure-order .dp-cycle-options { grid-template-columns:minmax(0,1fr); }
  body.dp-theme #order-standard_cart.dp-configure-order .dp-config-addon-grid>[class*=col-] { flex-basis:100%; }
  body.dp-theme #order-standard_cart.dp-configure-order .dp-config-section :is(input.form-control,select.form-control,textarea.form-control) { font-size:16px; }
}
