/* DM24 Financing & Delivery Premium v1.0.5
 * Deliberately excludes sticky, width ratio and description layout.
 */
body.single-product .summary .dm24-alior-native-panel.dm24-finance-premium {
  position: relative;
  border: 1px solid #e0e6ee !important;
  border-radius: 12px !important;
  padding: 12px 14px 11px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.single-product .summary .dm24-finance-premium > :is(div,section,article) {
  margin-top: 0 !important;
  background: #fff !important;
}
body.single-product .summary .dm24-finance-premium :is(h2,h3,h4) {
  color: #153155 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  margin: 0 0 5px !important;
}
body.single-product .summary .dm24-finance-premium .dm24-compact-rate-row {
  display:flex !important;
  flex-flow:row nowrap !important;
  justify-content:space-between !important;
  align-items:baseline !important;
  gap:10px !important;
  margin: 1px 0 3px !important;
}
body.single-product .summary .dm24-finance-premium .dm24-compact-rate-badge,
body.single-product .summary .dm24-finance-premium :is([class*="badge"],[class*="pill"],[class*="tag"]) {
  display:inline-flex !important;
  width:auto !important;
  padding:3px 7px !important;
  border:0 !important;
  border-radius:6px !important;
  background:#edf2f8 !important;
  color:#153155 !important;
  font-size:10px !important;
  font-weight:700 !important;
  line-height:1.3 !important;
  white-space:nowrap !important;
}
body.single-product .summary .dm24-finance-premium .dm24-compact-monthly {
  font-size:clamp(18px, 1.75vw, 23px) !important;
  font-weight:800 !important;
  line-height:1.15 !important;
  margin:0 !important;
  letter-spacing:-.03em !important;
  white-space:nowrap !important;
  color:#153155 !important;
}
body.single-product .summary .dm24-finance-premium :is(p,small) {
  font-size:10px !important;
  line-height:1.35 !important;
  margin-bottom:3px !important;
  color:#748092 !important;
}
/* Unclutter the inner bank card: keep typography, remove duplicate outlines */
body.single-product .summary .dm24-finance-premium > :is(div,section,article):not(.dm24-compact-rate-row) {
  box-shadow:none !important;
}
/* Native bank link/button: compact, right-aligned, without modifying its handlers */
body.single-product .summary .dm24-finance-premium .dm24-finance-premium-action {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:32px !important;
  padding:6px 11px !important;
  margin:4px 0 3px auto !important;
  border-radius:7px !important;
  border:0 !important;
  font-size:11px !important;
  line-height:1.2 !important;
  font-weight:700 !important;
  white-space:normal !important;
  box-sizing:border-box !important;
}
body.single-product .summary .dm24-finance-premium .dm24-finance-premium-action:focus-visible {
  outline:2px solid #153155 !important;
  outline-offset:3px !important;
}
/* The original native control remains mounted in its original DOM parent.
   If its wrapper is full width, align via parent flex rather than moving it. */
body.single-product .summary .dm24-finance-premium :is(div,p):has(> .dm24-finance-premium-action) {
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  margin:1px 0 3px !important;
  padding:0 !important;
  background:transparent !important;
}
/* Bank internal padding; no selector touching the cart or sticky framework */
body.single-product .summary .dm24-finance-premium :is([class*="inner"],[class*="content"]) {
  padding-top:5px !important;
  padding-bottom:5px !important;
}
/* Free delivery unchanged in purpose: inline logistic row */
body.single-product .summary .dm24-product-free-delivery {
  display:flex;align-items:center;gap:8px;padding:8px 12px;margin:8px 0 10px;
  border:1px solid #d9e3ed;background:#f5f8fc;border-radius:9px;color:#153155;
}
body.single-product .summary .dm24-product-free-delivery > svg {width:17px;height:17px;flex:0 0 17px;}
body.single-product .summary .dm24-product-free-delivery span {display:inline-flex;align-items:center;min-width:0;}
body.single-product .summary .dm24-product-free-delivery strong {font-size:12px;line-height:1.3;font-weight:600;}
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid {row-gap:10px !important;column-gap:18px !important;}
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > * {min-width:0 !important;}
body.single-product .summary .dm24-logistics-grid > .dm24-product-free-delivery {
  grid-column:1 / -1 !important;width:100% !important;min-width:0 !important;margin:0 !important;
  padding:10px 0 0 !important;border:0 !important;border-top:1px solid #e1e7ef !important;
  border-radius:0 !important;background:transparent !important;box-shadow:none !important;
  gap:8px !important;align-items:center !important;
}
body.single-product .summary .dm24-logistics-grid > .dm24-product-free-delivery > svg {width:16px !important;height:16px !important;flex-basis:16px !important;}
body.single-product .summary .dm24-logistics-grid > .dm24-product-free-delivery strong {font-size:12px !important;color:#153155 !important;font-weight:600 !important;white-space:nowrap !important;}
/* Tighten ONLY the gap after PayPo and before benefit cards */
body.single-product .summary .dm24-finance-unified--below-alior {
  margin-bottom:6px !important;
}
body.single-product .summary .dm24-finance-unified__paypo {
  margin-bottom:0 !important;
}
body.single-product .summary .dm24-product-benefits {
  margin-top:5px !important;
  margin-bottom:9px !important;
  gap:6px !important;
}
@media (max-width:767px) {
  body.single-product .summary .dm24-finance-premium {padding:10px !important;}
  body.single-product .summary .dm24-finance-premium .dm24-compact-monthly {font-size:18px !important;}
  body.single-product .summary .dm24-finance-premium .dm24-finance-premium-action {min-height:34px !important;}
}

/* v1.0.5 — screenshot-aligned layout, native button remains mounted. */
body.single-product .summary .dm24-finance-premium .dm24-compact-rate-row {
  align-items: center !important;
  margin: 0 0 6px !important;
  gap: 14px !important;
}
body.single-product .summary .dm24-finance-premium .dm24-finance-native-bottom-row {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  justify-content: stretch !important;
  column-gap: 12px !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  background: transparent !important;
}
body.single-product .summary .dm24-finance-premium .dm24-finance-native-bottom-row .dm24-finance-premium-note {
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
  line-height: 1.35 !important;
}
body.single-product .summary .dm24-finance-premium .dm24-finance-native-bottom-row .dm24-finance-premium-action {
  max-width: 220px !important;
  width: auto !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  font-size: 10px !important;
  white-space: normal !important;
}
@media (max-width: 600px) {
  body.single-product .summary .dm24-finance-premium .dm24-finance-native-bottom-row {
    grid-template-columns: 1fr !important;
    row-gap: 7px !important;
  }
  body.single-product .summary .dm24-finance-premium .dm24-finance-native-bottom-row .dm24-finance-premium-action {
    justify-self: end !important;
  }
  body.single-product .summary .dm24-finance-premium .dm24-compact-monthly {
    white-space: normal !important;
  }
}
/* Override the previous native-button wrapper flex rule explicitly. */
body.single-product .summary .dm24-finance-premium :is(div,p).dm24-finance-native-bottom-row:has(> .dm24-finance-premium-action) {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 12px !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}
@media (max-width:600px) {
  body.single-product .summary .dm24-finance-premium :is(div,p).dm24-finance-native-bottom-row:has(> .dm24-finance-premium-action) {
    grid-template-columns: 1fr !important;
    row-gap: 7px !important;
  }
}

/* v1.0.6 — NEW structure created only inside the original Alior widget.
   Prevent older rules from styling the compact rows as full-width buttons. */
body.single-product .summary .dm24-alior-compact-106-ready {
  padding: 10px 12px !important;
}
body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-empty-106:empty {
  display: none !important;
}
body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-compact-106 {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-compact-106__top,
body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-compact-106__bottom {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-compact-106__badge {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 5px 9px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #edf2f8 !important;
  color: #153155 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-compact-106__amount {
  display: block !important;
  flex: 0 1 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #153155 !important;
  font-size: clamp(18px, 1.7vw, 23px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: right !important;
  white-space: nowrap !important;
}
body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-compact-106__note {
  display: block !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 10px !important;
  color: #758193 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}
body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-compact-106__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 60% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  padding: 7px 10px !important;
  margin: 0 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  border-radius: 7px !important;
}
@media (max-width: 530px) {
  body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-compact-106__bottom {
    align-items: start !important;
    flex-wrap: wrap !important;
  }
  body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-compact-106__link {
    margin-left: auto !important;
    max-width: 100% !important;
  }
}

/* v1.0.7 — remove bank headline / footer copy, emphasize the main 10-installment hook. */
body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-copy-hidden-107 {
  display: none !important;
}
body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-compact-106__badge {
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  letter-spacing: .01em !important;
}
@media (max-width: 480px) {
  body.single-product .summary .dm24-alior-compact-106-ready .dm24-alior-compact-106__badge {
    font-size: 13px !important;
    padding: 7px 9px !important;
  }
}


/* v1.0.8 — modernize logistics segment: availability / shipping / free delivery */

body.single-product .summary .dm24-product-logistics {
  border-radius: 14px !important;
  border: 1px solid #dde5ee !important;
  background: #fff !important;
  padding: 14px 16px !important;
}
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > * {
  min-width: 0 !important;
}
/* top two info items as soft cards */
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > *:nth-child(1):not(.dm24-product-free-delivery),
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > *:nth-child(2):not(.dm24-product-free-delivery) {
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fc 100%) !important;
  border: 1px solid #e6edf5 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  min-height: 82px !important;
  box-shadow: none !important;
}
/* keep the internal availability pill modern but not oversized */
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > *:nth-child(1) :is(.availability, .stock, [class*="stock"], [class*="availability"], .dm24-stock-pill, span, strong),
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > *:nth-child(2) :is(.shipping, [class*="shipping"], [class*="wysyl"], span, strong) {
  box-shadow: none !important;
}
/* compact free delivery row: a light chip, no divider */
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > .dm24-product-free-delivery {
  grid-column: 1 / -1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #dbe7f3 !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > .dm24-product-free-delivery > svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  color: #153155 !important;
}
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > .dm24-product-free-delivery strong {
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #153155 !important;
}
/* order/cutoff info full width and visually subordinate to the buy button */
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > [class*="cutoff"],
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > [class*="deadline"],
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > [class*="shipping-timer"],
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > [class*="dispatch"],
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > [class*="wyslemy"],
body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > [class*="today"] {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
@media (max-width: 640px) {
  body.single-product .summary .dm24-product-logistics {
    padding: 12px !important;
  }
  body.single-product .summary .dm24-product-logistics .dm24-logistics-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > *:nth-child(1):not(.dm24-product-free-delivery),
  body.single-product .summary .dm24-product-logistics .dm24-logistics-grid > *:nth-child(2):not(.dm24-product-free-delivery) {
    min-height: auto !important;
  }
}
