/*
 * DPG Delivery Preview v0.10.0 (update-veilige presentatielaag)
 * Merkkleur via --dpg-blue (instelbaar in beheer).
 * Front-end is bewust leverancier-neutraal.
 */

body.dpg-delivery-preview {
  --dpg-ink: #101828;
  --dpg-muted: #5f6f86;
  --dpg-muted-2: #7c8a9e;
  --dpg-blue: #0786dd;
  --dpg-blue-dark: #056eb8;
  --dpg-blue-soft: #eef7ff;
  --dpg-green: #07874d;
  --dpg-green-soft: #edfbf4;
  --dpg-border: #d9e3ee;
  --dpg-border-soft: #e8eef5;
  --dpg-row-divider: #e7edf5;
  --dpg-surface: #ffffff;
  --dpg-surface-soft: #f7f9fc;
  --dpg-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  --dpg-radius-lg: 16px;
  --dpg-radius-md: 12px;
  --dpg-radius-sm: 9px;
}

body.dpg-delivery-preview #section-connect-configurator-summary {
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 0 !important;
  padding: 0;
  color: var(--dpg-ink);
  container-type: inline-size;
  container-name: dpg-summary;
}


body.dpg-delivery-preview #section-connect-configurator-summary *,
body.dpg-delivery-preview #section-connect-configurator-summary *::before,
body.dpg-delivery-preview #section-connect-configurator-summary *::after {
  box-sizing: border-box;
}

/* -------------------------
   Bovenste informatiekaarten
   ------------------------- */
body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) !important;
  align-items: start !important;
  gap: clamp(16px, 2vw, 24px) !important;
  width: 100% !important;
  margin: 0 !important;
}

body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column {
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: clamp(20px, 2.2vw, 28px) !important;
  background: var(--dpg-surface) !important;
  border: 1px solid var(--dpg-border) !important;
  border-radius: var(--dpg-radius-lg) !important;
  box-shadow: var(--dpg-shadow) !important;
  position: relative !important;
  overflow: hidden !important;
}

body.dpg-delivery-preview .dpg-psp-heading {
  margin: 0 0 clamp(16px, 2vw, 22px) !important;
  padding: 0 !important;
  color: var(--dpg-ink) !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

body.dpg-delivery-preview .dpg-psp-heading__title {
  display: block;
  color: var(--dpg-ink);
  font-size: clamp(1.25rem, 1.08rem + 0.55cqi, 1.7rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

body.dpg-delivery-preview .dpg-psp-heading__eyebrow {
  display: none !important;
}

/* -------------------------
   Samenstelling
   ------------------------- */
body.dpg-delivery-preview .connect-configurator-card {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--dpg-surface-soft) !important;
  border: 1px solid var(--dpg-border) !important;
  border-radius: var(--dpg-radius-md) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.dpg-delivery-preview .connect-options-list {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.dpg-delivery-preview .connect-options-list > div {
  display: grid !important;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.35fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 11px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--dpg-border-soft) !important;
  background: transparent !important;
}

body.dpg-delivery-preview .connect-options-list > div:last-child {
  border-bottom: 0 !important;
}

body.dpg-delivery-preview .connect-options-list dt,
body.dpg-delivery-preview .connect-options-list dd {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1.35 !important;
}

body.dpg-delivery-preview .connect-options-list dt {
  color: var(--dpg-muted) !important;
  font-size: clamp(0.82rem, 0.78rem + 0.12cqi, 0.92rem) !important;
  font-weight: 600 !important;
}

body.dpg-delivery-preview .dpg-psp-mobile-toggle-wrap {
  display: none !important;
}

body.dpg-delivery-preview .dpg-psp-mobile-toggle {
  display: none !important;
}

body.dpg-delivery-preview .connect-options-list dd {
  color: var(--dpg-ink) !important;
  font-size: clamp(0.86rem, 0.82rem + 0.14cqi, 0.98rem) !important;
  font-weight: 700 !important;
  text-align: right !important;
  overflow-wrap: anywhere;
}

body.dpg-delivery-preview #section-connect-configurator-filespecs {
  margin: 16px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.dpg-delivery-preview #section-connect-configurator-filespecs a,
body.dpg-delivery-preview .connect-filespecs-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 38px !important;
  padding: 0 2px !important;
  color: var(--dpg-blue-dark) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: clamp(0.84rem, 0.8rem + 0.12cqi, 0.94rem) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

body.dpg-delivery-preview #section-connect-configurator-filespecs a:hover,
body.dpg-delivery-preview .connect-filespecs-link:hover {
  text-decoration: underline !important;
}

body.dpg-delivery-preview .dpg-psp-filespecs-placeholder {
  cursor: default !important;
  opacity: 0.76;
  text-decoration: none !important;
}

body.dpg-delivery-preview .dpg-psp-filespecs-placeholder::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border: 2px solid color-mix(in srgb, var(--dpg-blue) 22%, transparent);
  border-top-color: var(--dpg-blue-dark);
  border-radius: 999px;
  animation: dpg-spin 0.7s linear infinite;
}

@keyframes dpg-spin { to { transform: rotate(360deg); } }


body.dpg-delivery-preview .connect-filespecs-popover {
  position: fixed !important;
  inset: 50% auto auto 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  width: min(92vw, 560px) !important;
  max-width: 560px !important;
  max-height: min(82vh, 680px) !important;
  overflow: auto !important;
  padding: clamp(20px, 2.2vw, 28px) !important;
  background: #fff !important;
  border: 1px solid var(--dpg-border) !important;
  border-radius: var(--dpg-radius-lg) !important;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24) !important;
}

body.dpg-delivery-preview .connect-filespecs-popover::backdrop {
  background: rgba(15, 23, 42, 0.34) !important;
}

body.dpg-delivery-preview .connect-filespecs-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 0 18px !important;
}

body.dpg-delivery-preview .connect-filespecs-title {
  margin: 0 !important;
  color: var(--dpg-ink) !important;
  font-size: clamp(1.2rem, 1.05rem + 0.4cqi, 1.45rem) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

body.dpg-delivery-preview .connect-filespecs-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #5b6677 !important;
  cursor: pointer !important;
}

body.dpg-delivery-preview .connect-filespecs-list {
  display: grid !important;
  gap: 4px 10px !important;
}

body.dpg-delivery-preview .connect-filespecs-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: start !important;
  padding: 11px 0 !important;
  border-bottom: 1px solid var(--dpg-border-soft) !important;
}

body.dpg-delivery-preview .connect-filespecs-row:last-child {
  border-bottom: 0 !important;
}

body.dpg-delivery-preview .connect-filespecs-label {
  color: var(--dpg-muted) !important;
  font-size: clamp(0.9rem, 0.86rem + 0.1cqi, 1rem) !important;
  line-height: 1.4 !important;
}

body.dpg-delivery-preview .connect-filespecs-value {
  color: var(--dpg-ink) !important;
  font-size: clamp(0.92rem, 0.88rem + 0.1cqi, 1.02rem) !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  text-align: right !important;
}

/* -------------------------
   Leverdata
   ------------------------- */
body.dpg-delivery-preview #section-connect-configurator-deliverymoments {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 404px !important;
  background: transparent !important;
  border: 0 !important;
}

body.dpg-delivery-preview .connect-delivery-moments {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 332px !important;
  background: var(--dpg-surface) !important;
  border: 1px solid var(--dpg-border) !important;
  border-radius: var(--dpg-radius-md) !important;
  overflow: hidden !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-price-note {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 4px 8px !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  background: #f3f7fb !important;
  border: 0 !important;
  border-bottom: 1px solid var(--dpg-border) !important;
  color: var(--dpg-muted) !important;
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-price-note strong {
  color: #334155 !important;
  font-weight: 750 !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-price-note span {
  display: inline !important;
  color: var(--dpg-muted) !important;
  font-weight: 500 !important;
}

body.dpg-delivery-preview .connect-delivery-moment {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "badges badges"
    "date price"
    "detail detail" !important;
  column-gap: 18px !important;
  row-gap: 4px !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 15px 18px !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--dpg-row-divider) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  cursor: default !important;
  pointer-events: none !important;
  user-select: text !important;
  transform: none !important;
  transition: none !important;
}

body.dpg-delivery-preview .connect-delivery-moment:hover,
body.dpg-delivery-preview .connect-delivery-moment:focus,
body.dpg-delivery-preview .connect-delivery-moment:focus-within,
body.dpg-delivery-preview .connect-delivery-moment:active,
body.dpg-delivery-preview .connect-delivery-moment.dpg-psp-is-fastest,
body.dpg-delivery-preview .connect-delivery-moment.dpg-psp-is-best,
body.dpg-delivery-preview .connect-delivery-moment.dpg-psp-is-fastest.dpg-psp-is-best {
  background: #fff !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  cursor: default !important;
  transform: none !important;
}

body.dpg-delivery-preview .connect-delivery-moment::before,
body.dpg-delivery-preview .connect-delivery-moment::after {
  display: none !important;
  content: none !important;
}

body.dpg-delivery-preview .connect-delivery-moment.dpg-cp-last-visible {
  border-bottom: 0 !important;
}

body.dpg-delivery-preview .connect-delivery-moment input,
body.dpg-delivery-preview .connect-delivery-moment button,
body.dpg-delivery-preview .connect-delivery-moment select,
body.dpg-delivery-preview .connect-delivery-moment a:not(.connect-delivery-date) {
  pointer-events: none !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-badges {
  grid-area: badges !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  min-height: 0 !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-badges:empty {
  display: none !important;
}

body.dpg-delivery-preview .dpg-psp-badge {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-height: 23px !important;
  margin: 0 !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  font-size: clamp(0.7rem, 0.67rem + 0.1cqi, 0.79rem) !important;
  line-height: 1.15 !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
}

body.dpg-delivery-preview .dpg-psp-badge--fast {
  color: var(--dpg-blue-dark) !important;
  background: var(--dpg-blue-soft) !important;
}

body.dpg-delivery-preview .dpg-psp-badge--best {
  color: #087445 !important;
  background: #dff7e9 !important;
}

body.dpg-delivery-preview .connect-delivery-date {
  grid-area: date !important;
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--dpg-ink) !important;
  font-size: clamp(0.92rem, 0.87rem + 0.16cqi, 1.04rem) !important;
  line-height: 1.3 !important;
  font-weight: 760 !important;
  text-decoration: none !important;
  cursor: default !important;
  pointer-events: none !important;
  transition: none !important;
}

body.dpg-delivery-preview .connect-delivery-price {
  grid-area: price !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--dpg-ink) !important;
  font-size: clamp(0.95rem, 0.89rem + 0.2cqi, 1.1rem) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.dpg-delivery-preview .dpg-psp-is-best .connect-delivery-price {
  color: var(--dpg-green) !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-detail {
  grid-area: detail !important;
  min-width: 0 !important;
  color: var(--dpg-muted) !important;
  font-size: clamp(0.75rem, 0.72rem + 0.1cqi, 0.84rem) !important;
  line-height: 1.35 !important;
  font-weight: 550 !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-surcharge {
  display: none !important;
  grid-area: surcharge !important;
  color: #8a5d16 !important;
  font-size: clamp(0.75rem, 0.72rem + 0.1cqi, 0.84rem) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-surcharge--standard {
  color: var(--dpg-green) !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-help {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
  margin: 10px 0 0 !important;
  padding: 12px 14px !important;
  background: #f4f8fc !important;
  border: 1px solid var(--dpg-border) !important;
  border-radius: var(--dpg-radius-sm) !important;
  color: var(--dpg-muted) !important;
}

body.dpg-delivery-preview .dpg-psp-info-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  margin-top: 1px !important;
  color: #fff !important;
  background: #168df0 !important;
  border-radius: 50% !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-help p {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--dpg-muted) !important;
  font-size: clamp(0.76rem, 0.73rem + 0.1cqi, 0.86rem) !important;
  line-height: 1.45 !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-help strong {
  color: #334155 !important;
}

/* -------------------------
   Bestelstrook over volle breedte
   ------------------------- */
body.dpg-delivery-preview #section-connect-configurator-summary > .connect-configurator-footer,
body.dpg-delivery-preview .dpg-psp-footer-stable {
  width: 100% !important;
  margin: clamp(16px, 2vw, 22px) 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.dpg-delivery-preview .dpg-psp-order-panel {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.75fr) minmax(260px, 1.1fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  min-height: 118px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--dpg-surface) !important;
  border: 1px solid var(--dpg-border) !important;
  border-radius: var(--dpg-radius-lg) !important;
  box-shadow: var(--dpg-shadow) !important;
  overflow: hidden !important;
}

body.dpg-delivery-preview #section-connect-configurator-price {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 116px !important;
  margin: 0 !important;
  padding: 18px 22px !important;
  background: #fff !important;
  border: 0 !important;
  border-right: 1px solid var(--dpg-border-soft) !important;
  box-shadow: none !important;
}

body.dpg-delivery-preview .dpg-psp-clean-price {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body.dpg-delivery-preview .dpg-psp-clean-price__eyebrow,
body.dpg-delivery-preview .dpg-psp-shipping-card__label {
  color: var(--dpg-muted) !important;
  font-size: clamp(0.76rem, 0.73rem + 0.1cqi, 0.86rem) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

body.dpg-delivery-preview .dpg-psp-clean-price__values {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  width: 100% !important;
}

body.dpg-delivery-preview .dpg-psp-clean-price__row {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 5px 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.dpg-delivery-preview .dpg-psp-clean-price__row--primary {
  margin-top: 1px !important;
}

body.dpg-delivery-preview .dpg-psp-clean-price__row--primary .dpg-psp-clean-price__amount,
body.dpg-delivery-preview .dpg-psp-clean-price__row--primary .woocommerce-Price-amount {
  color: var(--dpg-ink) !important;
  font-size: clamp(1.35rem, 1.18rem + 0.55cqi, 1.85rem) !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
  letter-spacing: -0.025em !important;
}

body.dpg-delivery-preview .dpg-psp-clean-price__regular {
  color: var(--dpg-muted-2) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  text-decoration-thickness: 1.5px !important;
}

body.dpg-delivery-preview .dpg-psp-clean-price__row--secondary .dpg-psp-clean-price__amount,
body.dpg-delivery-preview .dpg-psp-clean-price__row--secondary .woocommerce-Price-amount {
  color: #45566d !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
}

body.dpg-delivery-preview .dpg-psp-clean-price__vat {
  color: var(--dpg-muted) !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

body.dpg-delivery-preview .dpg-psp-discount-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  margin-top: 6px !important;
  padding: 3px 9px !important;
  color: #087445 !important;
  background: #e8f9ef !important;
  border: 1px solid #c9eed9 !important;
  border-radius: 999px !important;
  font-size: 0.74rem !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
}

body.dpg-delivery-preview #dpg-psp-shipping-card {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 5px !important;
  min-width: 0 !important;
  min-height: 116px !important;
  margin: 0 !important;
  padding: 18px 22px !important;
  background: #fafcff !important;
  border: 0 !important;
  border-right: 1px solid var(--dpg-border-soft) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.dpg-delivery-preview .dpg-psp-shipping-card__head {
  margin: 0 !important;
  padding: 0 !important;
}

body.dpg-delivery-preview .dpg-psp-shipping-card__price,
body.dpg-delivery-preview .dpg-psp-shipping-card__price .woocommerce-Price-amount {
  color: var(--dpg-ink) !important;
  font-size: clamp(1.05rem, 0.98rem + 0.22cqi, 1.26rem) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

body.dpg-delivery-preview .dpg-psp-shipping-card__fallback {
  max-width: 240px !important;
  color: var(--dpg-muted) !important;
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}

body.dpg-delivery-preview .dpg-psp-shipping-card__loading {
  display: flex !important;
  gap: 4px !important;
  min-height: 24px !important;
  align-items: center !important;
}

body.dpg-delivery-preview .dpg-psp-shipping-card__loading span {
  width: 5px !important;
  height: 5px !important;
  background: color-mix(in srgb, var(--dpg-blue) 45%, #fff) !important;
  border-radius: 50% !important;
  animation: dpg-pulse 1s ease-in-out infinite !important;
}

body.dpg-delivery-preview .dpg-psp-shipping-card__loading span:nth-child(2) { animation-delay: .12s !important; }
body.dpg-delivery-preview .dpg-psp-shipping-card__loading span:nth-child(3) { animation-delay: .24s !important; }
@keyframes dpg-pulse { 0%,100%{opacity:.35;transform:translateY(0)} 50%{opacity:1;transform:translateY(-2px)} }


body.dpg-delivery-preview .dpg-design-studio-slot {
  display: none !important;
  min-width: 0 !important;
}

body.dpg-delivery-preview .dpg-design-studio-slot:not(:empty) {
  display: block !important;
}

body.dpg-delivery-preview #section-add-to-cart {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body.dpg-delivery-preview #connect-addtocart {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 11px 16px !important;
  border-radius: 10px !important;
  font-size: clamp(0.9rem, 0.86rem + 0.13cqi, 1rem) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease !important;
}

body.dpg-delivery-preview #connect-addtocart {
  color: #fff !important;
  background: linear-gradient(180deg, #25afea 0%, #169fdc 100%) !important;
  border: 1px solid #078ccc !important;
  box-shadow: 0 5px 12px rgba(0, 142, 209, 0.18) !important;
}

body.dpg-delivery-preview #connect-addtocart:hover:not(:disabled):not(.is-dpg-locked) {
  background: linear-gradient(180deg, #1aa5e3 0%, #0e92cd 100%) !important;
  box-shadow: 0 7px 16px rgba(0, 126, 191, 0.24) !important;
  transform: translateY(-1px) !important;
}

body.dpg-delivery-preview #connect-addtocart:active:not(:disabled):not(.is-dpg-locked) {
  transform: translateY(0) !important;
  box-shadow: 0 3px 7px rgba(0, 126, 191, 0.18) !important;
}

body.dpg-delivery-preview #connect-addtocart:focus-visible {
  outline: 3px solid rgba(22, 141, 240, 0.25) !important;
  outline-offset: 2px !important;
}

body.dpg-delivery-preview #connect-addtocart.is-dpg-locked,
body.dpg-delivery-preview #connect-addtocart:disabled {
  color: #728196 !important;
  background: #e8edf3 !important;
  border-color: #d5dee8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* -------------------------
   Loading placeholders
   ------------------------- */
body.dpg-delivery-preview .dpg-psp-options-placeholder,
body.dpg-delivery-preview .dpg-psp-price-placeholder {
  display: none;
}

body.dpg-delivery-preview .dpg-psp-delivery-placeholder {
  display: block !important;
}

body.dpg-delivery-preview .dpg-psp-options-placeholder,
body.dpg-delivery-preview .dpg-psp-delivery-placeholder {
  padding: 0 !important;
  min-height: 332px !important;
  background: var(--dpg-surface) !important;
  border: 1px solid var(--dpg-border) !important;
  border-radius: var(--dpg-radius-md) !important;
  overflow: hidden !important;
}

body.dpg-delivery-preview .dpg-psp-options-placeholder {
  min-height: 0 !important;
  padding: 14px !important;
  background: var(--dpg-surface-soft) !important;
  overflow: visible !important;
}

body.dpg-delivery-preview .dpg-psp-options-placeholder__row,
body.dpg-delivery-preview .dpg-psp-delivery-placeholder__row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 72px !important;
  padding: 13px 18px !important;
  border-bottom: 1px solid var(--dpg-row-divider) !important;
}

body.dpg-delivery-preview .dpg-psp-options-placeholder__row {
  min-height: 0 !important;
  padding: 9px 0 !important;
  border-bottom: 0 !important;
}

body.dpg-delivery-preview .dpg-psp-options-placeholder__row:last-child,
body.dpg-delivery-preview .dpg-psp-delivery-placeholder__row:last-child {
  border-bottom: 0 !important;
}

body.dpg-delivery-preview .dpg-psp-options-placeholder i,
body.dpg-delivery-preview .dpg-psp-options-placeholder b,
body.dpg-delivery-preview .dpg-psp-delivery-placeholder i,
body.dpg-delivery-preview .dpg-psp-delivery-placeholder b,
body.dpg-delivery-preview .dpg-psp-price-placeholder__line {
  display: block !important;
  height: 11px !important;
  background: linear-gradient(90deg, #e9eef4 25%, #f5f7fa 50%, #e9eef4 75%) !important;
  background-size: 200% 100% !important;
  border-radius: 999px !important;
  animation: dpg-shimmer 1.2s infinite linear !important;
}

body.dpg-delivery-preview .dpg-psp-options-placeholder i,
body.dpg-delivery-preview .dpg-psp-delivery-placeholder i { width: 34% !important; }
body.dpg-delivery-preview .dpg-psp-options-placeholder b,
body.dpg-delivery-preview .dpg-psp-delivery-placeholder b { width: 28% !important; }
body.dpg-delivery-preview .dpg-psp-delivery-placeholder__intro,
body.dpg-delivery-preview .dpg-psp-price-placeholder__eyebrow {
  display: block !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  color: var(--dpg-muted) !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
}

body.dpg-delivery-preview .dpg-psp-delivery-price-note--placeholder {
  border-bottom: 1px solid var(--dpg-border) !important;
}

body.dpg-delivery-preview .dpg-psp-price-placeholder {
  min-height: 116px !important;
  padding: 18px 22px !important;
  border-right: 1px solid var(--dpg-border-soft) !important;
}
body.dpg-delivery-preview .dpg-psp-price-placeholder__line--large { width: 48% !important; height: 20px !important; margin-bottom: 9px !important; }
body.dpg-delivery-preview .dpg-psp-price-placeholder__line--small { width: 34% !important; }

@keyframes dpg-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Verberg placeholders zodra echte inhoud beschikbaar is. */
body.dpg-delivery-preview .dpg-psp-has-options .dpg-psp-options-placeholder,
body.dpg-delivery-preview .dpg-psp-has-delivery .dpg-psp-delivery-placeholder,
body.dpg-delivery-preview .dpg-psp-has-price .dpg-psp-price-placeholder {
  display: none !important;
}

/* -------------------------
   Responsive op componentbreedte
   ------------------------- */
@container dpg-summary (max-width: 820px) {
  body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-columns {
    grid-template-columns: 1fr !important;
  }

  body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column:first-child {
    order: 2 !important;
  }

  body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column:nth-child(2) {
    order: 1 !important;
  }

  body.dpg-delivery-preview .dpg-psp-order-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(160px, .8fr) minmax(220px, 1.05fr) !important;
  }

  body.dpg-delivery-preview #section-connect-configurator-price {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.dpg-delivery-preview #dpg-psp-shipping-card {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body.dpg-delivery-preview #section-connect-configurator-price {
    border-right: 1px solid var(--dpg-border-soft) !important;
    border-bottom: 0 !important;
  }

  body.dpg-delivery-preview #dpg-psp-shipping-card {
    border-right: 1px solid var(--dpg-border-soft) !important;
    border-bottom: 0 !important;
  }

}

@container dpg-summary (max-width: 560px) {
  body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column {
    padding: 18px !important;
    border-radius: 14px !important;
  }

  body.dpg-delivery-preview .dpg-psp-heading {
    margin-bottom: 14px !important;
  }

  body.dpg-delivery-preview .dpg-psp-heading__title {
    font-size: clamp(1.18rem, 1.05rem + 0.42cqi, 1.4rem) !important;
  }

  body.dpg-delivery-preview .connect-options-list > div {
    grid-template-columns: minmax(92px, .84fr) minmax(0, 1.16fr) !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    gap: 10px !important;
  }

  body.dpg-delivery-preview .connect-options-list dt {
    font-size: 0.8rem !important;
  }

  body.dpg-delivery-preview .connect-options-list dd {
    font-size: 0.87rem !important;
  }

  body.dpg-delivery-preview .connect-options-list > div.dpg-psp-mobile-extra {
    display: none !important;
  }

  body.dpg-delivery-preview #section-connect-configurator-summary.dpg-psp-mobile-expanded .connect-options-list > div.dpg-psp-mobile-extra {
    display: grid !important;
  }

  body.dpg-delivery-preview .dpg-psp-mobile-toggle-wrap {
    display: block !important;
    margin: 12px 0 0 !important;
  }

  body.dpg-delivery-preview .dpg-psp-mobile-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 38px !important;
    padding: 0 !important;
    color: var(--dpg-blue-dark) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
  }

  body.dpg-delivery-preview .dpg-psp-mobile-toggle::after {
    content: '▾';
    font-size: 0.9rem;
    line-height: 1;
  }

  body.dpg-delivery-preview #section-connect-configurator-summary.dpg-psp-mobile-expanded .dpg-psp-mobile-toggle::after {
    content: '▴';
  }

  body.dpg-delivery-preview .dpg-psp-delivery-price-note {
    display: block !important;
    padding: 12px 14px !important;
  }

  body.dpg-delivery-preview .dpg-psp-delivery-price-note strong,
  body.dpg-delivery-preview .dpg-psp-delivery-price-note span {
    display: block !important;
  }

  body.dpg-delivery-preview .dpg-psp-delivery-price-note span {
    margin-top: 3px !important;
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
  }

  body.dpg-delivery-preview .connect-delivery-moment {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 76px !important;
    padding: 13px 14px !important;
    column-gap: 10px !important;
  }

  body.dpg-delivery-preview #section-connect-configurator-deliverymoments,
  body.dpg-delivery-preview .connect-delivery-moments,
  body.dpg-delivery-preview .dpg-psp-delivery-placeholder {
    min-height: 352px !important;
  }

  body.dpg-delivery-preview .connect-delivery-price {
    font-size: 1rem !important;
  }

  body.dpg-delivery-preview .dpg-psp-delivery-detail {
    font-size: 0.78rem !important;
  }

  body.dpg-delivery-preview .dpg-psp-order-panel {
    grid-template-columns: 1fr !important;
  }

  body.dpg-delivery-preview #section-connect-configurator-price,
  body.dpg-delivery-preview #dpg-psp-shipping-card,


  body.dpg-delivery-preview #section-connect-configurator-price {
    grid-row: 1 !important;
    order: 1 !important;
    border-bottom: 1px solid var(--dpg-border-soft) !important;
  }

  body.dpg-delivery-preview #dpg-psp-shipping-card {
    grid-row: 2 !important;
    order: 2 !important;
    border-bottom: 0 !important;
    background: #fbfcfe !important;
  }

  body.dpg-delivery-preview .dpg-psp-clean-price__eyebrow,
  body.dpg-delivery-preview .dpg-psp-shipping-card__label {
    font-size: 0.8rem !important;
  }
}

/* Fallback voor browsers zonder container queries. */
@media (max-width: 700px) {
  body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-columns {
    grid-template-columns: 1fr !important;
  }

  body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column:first-child {
    order: 2 !important;
  }

  body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column:nth-child(2) {
    order: 1 !important;
  }
}

@media (max-width: 480px) {
  body.dpg-delivery-preview .connect-delivery-moment {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "badges"
      "date"
      "detail"
      "price" !important;
    row-gap: 6px !important;
    min-height: auto !important;
  }

  body.dpg-delivery-preview #section-connect-configurator-deliverymoments,
  body.dpg-delivery-preview .connect-delivery-moments,
  body.dpg-delivery-preview .dpg-psp-delivery-placeholder {
    min-height: 0 !important;
  }

  body.dpg-delivery-preview .connect-delivery-price {
    justify-self: start !important;
    text-align: left !important;
    font-size: 1.05rem !important;
  }

  body.dpg-delivery-preview .dpg-psp-delivery-badges {
    gap: 5px !important;
  }

  body.dpg-delivery-preview .dpg-psp-badge {
    white-space: normal !important;
  }

  body.dpg-delivery-preview .dpg-psp-delivery-price-note {
    font-size: 0.78rem !important;
  }
}


@media (max-width: 640px) {
  body.dpg-delivery-preview .connect-filespecs-popover {
    width: min(94vw, 560px) !important;
    max-height: 86vh !important;
    padding: 18px !important;
  }

  body.dpg-delivery-preview .connect-filespecs-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  body.dpg-delivery-preview .connect-filespecs-value {
    text-align: left !important;
  }
}


/* Interne bron uit dezelfde leverdatumresponse; nooit visueel tonen. */
body.dpg-delivery-preview .dpg-psp-shipping-source {
  display: none !important;
}

/* Het configuratorblok sloot visueel te ruim af richting de productinformatie. */
@media (min-width: 821px) {
  body.dpg-delivery-preview .connect-configurator-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.dpg-delivery-preview #section-connect-configurator-summary {
    margin-bottom: -20px !important;
  }
}

/* -------------------------
   Stabiele leverdatakolom
   ------------------------- */
body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column:nth-child(2) {
  min-height: 552px !important;
}
@media (max-width: 700px) {
  body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column:nth-child(2) {
    min-height: 0 !important;
  }
}

/* De DOM zelf bepaalt of de skeleton zichtbaar moet zijn. Dit voorkomt dat een
   achterlopende JS-class de placeholder onterecht verborgen houdt. */
body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column:nth-child(2):not(:has(.connect-delivery-moment)) .dpg-psp-delivery-placeholder {
  display: block !important;
}
body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column:nth-child(2):has(.connect-delivery-moment) .dpg-psp-delivery-placeholder {
  display: none !important;
}
body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column:nth-child(2):has(.dpg-psp-delivery-placeholder):not(:has(.connect-delivery-moment)) #section-connect-configurator-deliverymoments {
  display: none !important;
}


body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-column:nth-child(2) {
  display: flex !important;
  flex-direction: column !important;
}
body.dpg-delivery-preview #section-connect-configurator-deliverymoments {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}
body.dpg-delivery-preview .connect-delivery-moments,
body.dpg-delivery-preview .dpg-psp-delivery-placeholder {
  flex: 0 0 auto !important;
}
body.dpg-delivery-preview .dpg-psp-delivery-help {
  min-height: 48px !important;
}
body.dpg-delivery-preview .connect-delivery-moment.dpg-cp-last-visible,
body.dpg-delivery-preview .dpg-psp-delivery-placeholder__row:last-child {
  border-bottom: 0 !important;
}

/* WooCommerce plaatst na toevoegen een extra link onder de knop; die verbergt
   de compacte bestelstrook zodat de drie kolommen even hoog blijven. */
body.dpg-delivery-preview .dpg-psp-order-panel .added_to_cart.wc-forward,
body.dpg-delivery-preview .dpg-psp-order-panel a.added_to_cart,
body.dpg-delivery-preview #section-add-to-cart .added_to_cart.wc-forward {
  display: none !important;
}

/* =========================================================================
   v0.9.0 - aanvullingen voor de update-veilige opbouw
   De configurator-HTML blijft ongewijzigd; onderstaande regels positioneren
   de bestaande elementen en de door DPG toegevoegde elementen (data-dpg).
   ========================================================================= */

/* Verborgen door DPG (originele kop, dubbel label, extra leverdatums). */
body.dpg-delivery-preview .dpg-cp-hidden,
body.dpg-delivery-preview .connect-delivery-moment.dpg-cp-row-hidden {
  display: none !important;
}

/* Tijdens herberekenen: bestaande gegevens gedimd met duidelijke status,
   zodat oude waarden niet als actueel overkomen. Werkt de class van de
   configurator na een update anders, dan geldt gewoon het standaardgedrag. */
body.dpg-delivery-preview #section-connect-configurator-summary.dpg-cp-was-ready.notready {
  display: block !important;
}
body.dpg-delivery-preview #section-connect-configurator-summary.dpg-cp-updating {
  position: relative !important;
}
body.dpg-delivery-preview #section-connect-configurator-summary.dpg-cp-updating .connect-configurator-column,
body.dpg-delivery-preview #section-connect-configurator-summary.dpg-cp-updating #section-connect-configurator-price,
body.dpg-delivery-preview #section-connect-configurator-summary.dpg-cp-updating #dpg-psp-shipping-card {
  opacity: .55 !important;
  transition: opacity .15s ease !important;
}
body.dpg-delivery-preview #section-connect-configurator-summary.dpg-cp-updating::before {
  content: "Wordt bijgewerkt…";
  position: fixed;
  z-index: 9990;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 14px;
  color: var(--dpg-blue-dark);
  background: var(--dpg-blue-soft);
  border: 1px solid color-mix(in srgb, var(--dpg-blue) 25%, #fff);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .08);
  pointer-events: none;
}

/* Eerste laadmelding in het configuratorvlak. */
body.dpg-delivery-preview .dpg-cp-boot-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  margin: 0 0 12px;
  padding: 18px;
  color: var(--dpg-muted);
  background: var(--dpg-surface-soft);
  border: 1px dashed var(--dpg-border);
  border-radius: var(--dpg-radius-md);
  font-size: .95rem;
  font-weight: 650;
  animation: dpg-boot-fade 0s linear 30s forwards;
}
body.dpg-delivery-preview .dpg-cp-boot-notice__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--dpg-blue) 20%, transparent);
  border-top-color: var(--dpg-blue-dark);
  border-radius: 999px;
  animation: dpg-spin .7s linear infinite;
}
@keyframes dpg-boot-fade { to { display: none; visibility: hidden; height: 0; min-height: 0; margin: 0; padding: 0; border: 0; } }

/* Leverdatums: visuele volgorde zonder DOM-verplaatsing. */
body.dpg-delivery-preview .connect-delivery-moments.dpg-cp-orderable {
  display: flex !important;
  flex-direction: column !important;
}
body.dpg-delivery-preview .connect-delivery-moments.dpg-cp-orderable > .dpg-psp-delivery-price-note {
  order: 0 !important;
}
body.dpg-delivery-preview .connect-delivery-moment:not(.dpg-cp-last-visible) {
  border-bottom: 1px solid var(--dpg-row-divider) !important;
}

/* Bestelstrook: de footer van de configurator is zelf het paneel. */
body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-footer.dpg-psp-order-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, .75fr) minmax(260px, 1.1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  min-height: 118px !important;
  margin: clamp(16px, 2vw, 22px) 0 0 !important;
  padding: 0 !important;
  background: var(--dpg-surface) !important;
  border: 1px solid var(--dpg-border) !important;
  border-radius: var(--dpg-radius-lg) !important;
  box-shadow: var(--dpg-shadow) !important;
  overflow: hidden !important;
}
/* Staat de strook direct in het kolommengrid, dan over de volle breedte. */
body.dpg-delivery-preview .connect-configurator-columns > .connect-configurator-footer {
  grid-column: 1 / -1 !important;
}
/* Onbekende extra elementen van de configurator: onderaan, volle breedte. */
body.dpg-delivery-preview .dpg-psp-order-panel > * {
  grid-column: 1 / -1;
}
body.dpg-delivery-preview .dpg-psp-order-panel > #section-connect-configurator-price {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}
body.dpg-delivery-preview .dpg-psp-order-panel > #dpg-psp-shipping-card {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
}
body.dpg-delivery-preview .dpg-psp-order-panel > .dpg-design-studio-slot {
  grid-column: 3 !important;
  grid-row: 1 !important;
  padding: 18px 22px 0 !important;
}
body.dpg-delivery-preview .dpg-psp-order-panel > #section-add-to-cart {
  grid-column: 3 !important;
  grid-row: 2 !important;
  align-self: center !important;
  padding: 18px 22px !important;
  background: #fff !important;
}
body.dpg-delivery-preview .dpg-psp-order-panel:has(> .dpg-design-studio-slot:empty) > #section-add-to-cart {
  grid-row: 1 / span 2 !important;
}

/* Prijsblok: toon het DPG-overzicht; het origineel blijft aanwezig maar verborgen. */
body.dpg-delivery-preview #section-connect-configurator-price:has(> .dpg-psp-clean-price) > :not(.dpg-psp-clean-price) {
  display: none !important;
}

@container dpg-summary (max-width: 560px) {
  body.dpg-delivery-preview #section-connect-configurator-summary .connect-configurator-footer.dpg-psp-order-panel {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
  }
  body.dpg-delivery-preview .dpg-psp-order-panel > #section-connect-configurator-price {
    grid-column: 1 !important;
    grid-row: 1 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--dpg-border-soft) !important;
  }
  body.dpg-delivery-preview .dpg-psp-order-panel > #dpg-psp-shipping-card {
    grid-column: 1 !important;
    grid-row: 2 !important;
    border-right: 0 !important;
    min-height: auto !important;
    padding: 16px 18px !important;
  }
  body.dpg-delivery-preview .dpg-psp-order-panel > .dpg-design-studio-slot {
    grid-column: 1 !important;
    grid-row: 3 !important;
    padding: 16px 18px 0 !important;
  }
  body.dpg-delivery-preview .dpg-psp-order-panel > #section-add-to-cart,
  body.dpg-delivery-preview .dpg-psp-order-panel:has(> .dpg-design-studio-slot:empty) > #section-add-to-cart {
    grid-column: 1 !important;
    grid-row: 4 !important;
    padding: 16px 18px !important;
  }
}

/* Keuzerondjes in leverdatums zijn hier alleen informatief (keuze in winkelmandje). */
body.dpg-delivery-preview .connect-delivery-moment.dpg-psp-preview-only input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Een aparte 'Toon meer'-uitbreiding (thema/snippet) botst met de vaste
   selectie van 5 leverdatums; binnen deze weergave niet tonen. */
body.dpg-delivery-preview #section-connect-configurator-summary .connect-delivery-moments > .show-more-item {
  display: none !important;
}

/* Herberekening rondt niet af: duidelijk melden in plaats van eindeloos wachten. */
body.dpg-delivery-preview #section-connect-configurator-summary.dpg-cp-stalled::before {
  content: "Bijwerken lukt niet. Pas de configuratie opnieuw aan of vernieuw de pagina.";
  color: #8a2d0b;
  background: #fff4ed;
  border-color: #f6c9ae;
  white-space: normal;
  max-width: min(92vw, 520px);
  text-align: center;
}
