.idle-dcm-panel.idle-dcm-custom{border:1px solid #d7d7d7;border-radius:9px;padding:18px;margin:14px 0;background:#fff;color:#242424;text-align:left;font-size:15px}
.idle-dcm-panel.idle-dcm-custom h3{font-size:19px;margin:0 0 13px}
.idle-dcm-panel.idle-dcm-custom label{display:block;font-weight:600;margin:12px 0 6px}
.idle-dcm-method{display:flex;flex-wrap:wrap;gap:10px 22px;margin-bottom:12px}
.idle-dcm-panel.idle-dcm-custom .idle-dcm-method label{font-weight:500;margin:0}
.idle-dcm-panel.idle-dcm-custom input[type=text],.idle-dcm-panel.idle-dcm-custom input[type=number],.idle-dcm-panel.idle-dcm-custom select{display:block;width:100%;max-width:100%;box-sizing:border-box;border:1px solid #bbb;border-radius:5px;padding:9px;background:#fff;color:#222}
.idle-dcm-panel.idle-dcm-custom input[type=radio]{margin-right:5px}
.idle-dcm-message:not([hidden]){padding:11px 12px;border-left:4px solid #ae2828;background:#fff1f1;color:#781414;font-weight:600}
.idle-dcm-hours,.idle-dcm-availability{margin:7px 0}
.idle-dcm-custom .idle-dcm-hours,.idle-dcm-custom .idle-dcm-availability{font-size:14px;color:#444}
.idle-dcm-custom .idle-dcm-status{font-size:13px;color:#555}
.idle-dcm-panel [hidden]{display:none!important}

/* Full-row layout isolation for classic checkout (0.2.1 layout hotfix).
   The 50% setting belongs to the INNER panel, never to the checkout row.
   Both a normal block, a flex child and a grid child should clear prior columns. */
.woocommerce form.checkout .idle-dcm-checkout-section{
  display:flow-root;
  position:relative;
  width:100%;
  max-width:100%;
  clear:both;
  float:none;
  flex:0 0 100%;
  grid-column:1 / -1;
  min-width:0;
  box-sizing:border-box;
}
/* Configurable classic checkout placement and responsive width. */
.idle-dcm-checkout-wrap{display:block;width:var(--idle-dcm-width,50%);max-width:100%;box-sizing:border-box;float:none;clear:both;min-width:0}
.idle-dcm-checkout-wrap.idle-dcm-align-left{margin-left:0;margin-right:auto}
.idle-dcm-checkout-wrap.idle-dcm-align-center{margin-left:auto;margin-right:auto}
.idle-dcm-checkout-wrap.idle-dcm-align-right{margin-left:auto;margin-right:0}
.idle-dcm-checkout-wrap .idle-dcm-panel{width:100%;box-sizing:border-box}
.idle-dcm-address-hint{display:block;line-height:1.4;margin:6px 0}
.idle-dcm-custom .idle-dcm-address-hint{font-size:12px;color:#555}
@media(max-width:767px){.idle-dcm-checkout-wrap{width:var(--idle-dcm-mobile-width,100%)}}

/* 0.2.2: Basket Totals must look like a normal WooCommerce section, not a card. */
.woocommerce .cart_totals .idle-dcm-cart-row .idle-dcm-panel,
.woocommerce-cart .cart_totals .idle-dcm-cart-row .idle-dcm-panel{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
  color:inherit;
}
.woocommerce .cart_totals .idle-dcm-cart-row .idle-dcm-panel h3{
  font-size:inherit;
  line-height:inherit;
  font-weight:600;
  margin:0 0 10px;
}

/* 0.2.3: Flat checkout presentation matching WooCommerce field sections.
   Keep the separate outer layout row and responsive width rules intact. */
.woocommerce form.checkout .idle-dcm-checkout-section .idle-dcm-panel{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
  color:inherit;
}

/* 0.2.6: Theme inheritance is the default. Keep ONLY structural CSS here;
   let the active theme determine fonts, text colours, controls and button aesthetics. */
.idle-dcm-panel.idle-dcm-theme{
  font-family:inherit;
  font-size:inherit;
  color:inherit;
  text-align:inherit;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:0;
  margin:0;
}
.idle-dcm-panel.idle-dcm-theme h3{font-family:inherit;color:inherit;font-size:inherit;line-height:inherit}
.idle-dcm-panel.idle-dcm-theme label{font-family:inherit;color:inherit;font-size:inherit}
.idle-dcm-panel.idle-dcm-theme input,
.idle-dcm-panel.idle-dcm-theme select{font-family:inherit;font-size:inherit}
.idle-dcm-panel.idle-dcm-theme input[type="text"],
.idle-dcm-panel.idle-dcm-theme input[type="number"],
.idle-dcm-panel.idle-dcm-theme select{display:block;max-width:100%;width:100%;box-sizing:border-box}
.idle-dcm-panel.idle-dcm-theme .idle-dcm-method label{display:inline-flex;align-items:center;gap:5px;margin:0}
.idle-dcm-panel.idle-dcm-theme .idle-dcm-method input{margin:0}
.idle-dcm-panel.idle-dcm-theme .idle-dcm-date-label,
.idle-dcm-panel.idle-dcm-theme label[for="idle-dcm-tip"],
.idle-dcm-panel.idle-dcm-theme .idle-dcm-postcode label{display:block;margin:12px 0 6px}
/* Functional error message remains visible under any theme. */
.idle-dcm-panel.idle-dcm-theme .idle-dcm-message:not([hidden]){padding:10px;border-left:4px solid currentColor;background:transparent;color:inherit}
