
/* ============================================================
   DELFO – Warenkorb & Kasse (BLOCK-Versionen, wc-block-…)
   Dein Shop nutzt die neuen WooCommerce-Blöcke – diese Datei
   stylt genau die. Einfügen: Additional CSS, UNTER das Bisherige.
   ============================================================ */

/* ---------- Grundschrift ---------- */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout{
  font-family:'Poppins',sans-serif !important;
}

/* ---------- Seitliche Abstände: NUR die Woo-Inhalte selbst ----------
   Kein .e-con / kein Container-Padding → Header, Footer und alle
   anderen Sektionen bleiben komplett unberührt. */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
body.woocommerce-account .woocommerce{
  padding-left:16px !important;
  padding-right:16px !important;
  max-width:1180px;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box;
}
@media (min-width:769px){
  .wp-block-woocommerce-cart,
  .wp-block-woocommerce-checkout,
  body.woocommerce-account .woocommerce{
    padding-left:24px !important;
    padding-right:24px !important;
  }
}

/* Seitentitel („Cart" / „Checkout") exakt gleich einrücken */
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout h1.entry-title,
body.woocommerce-account h1.entry-title,
body.woocommerce-cart .elementor-widget-heading h1,
body.woocommerce-checkout .elementor-widget-heading h1{
  padding-left:16px !important;
  padding-right:16px !important;
  max-width:1180px;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif !important;
  font-weight:700 !important;
  color:#123E68 !important;
}
@media (min-width:769px){
  body.woocommerce-cart h1.entry-title,
  body.woocommerce-checkout h1.entry-title,
  body.woocommerce-account h1.entry-title,
  body.woocommerce-cart .elementor-widget-heading h1,
  body.woocommerce-checkout .elementor-widget-heading h1{
    padding-left:24px !important;
    padding-right:24px !important;
  }
}

/* ---------- WARENKORB: Produktzeilen ---------- */
.wc-block-cart-items__row{
  padding:16px 0 !important;
}
.wc-block-cart-items__row + .wc-block-cart-items__row{
  border-top:1px solid #EEF2F6 !important;
}
.wc-block-cart-items th{display:none !important}   /* Kopfzeile weg */

.wc-block-cart-item__image img{
  border-radius:12px !important;
  border:1px solid #EEF2F6;
  background:#fff;
}
.wc-block-components-product-name{
  color:#335A8A !important;
  font-weight:500 !important;
  font-size:14.5px !important;
  line-height:1.4 !important;
  text-decoration:none !important;
}
.wc-block-components-product-name:hover{text-decoration:underline !important}

/* Preise grün + fett */
.wc-block-cart-item__prices .wc-block-components-product-price,
.wc-block-cart-item__total .wc-block-components-product-price,
.wc-block-components-product-price .wc-block-formatted-money-amount{
  color:#507821 !important;
  font-weight:700 !important;
}
.wc-block-components-product-price del .wc-block-formatted-money-amount{
  color:#B1B1B1 !important;font-weight:400 !important;
}

/* Produkt-Kurzbeschreibung: klein + auf 2 Zeilen begrenzen */
.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description{
  font-size:12px !important;
  line-height:1.5 !important;
  color:#8A94A0 !important;
}
.wc-block-components-product-metadata__description{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.wc-block-components-product-details{display:none !important}  /* „Pasticciotto Leccese"-Attributzeile weg */

/* Mengen-Stepper */
.wc-block-components-quantity-selector{
  border:1px solid #D9E0E7 !important;
  border-radius:10px !important;
  box-shadow:none !important;
  overflow:hidden;
}
.wc-block-components-quantity-selector::after{display:none !important}
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input{
  font-family:'Poppins',sans-serif !important;
  font-weight:600 !important;
  color:#123E68 !important;
  border:0 !important;
}
.wc-block-components-quantity-selector button{
  color:#123E68 !important;
}
.wc-block-components-quantity-selector button:hover{
  background:#F2F6FA !important;
}

/* Entfernen-Link/Icon */
.wc-block-cart-item__remove-link,
.wc-block-cart-item__wrap button[aria-label*="ntfernen"],
.wc-block-cart-item__wrap button[aria-label*="emove"]{
  color:#B4232F !important;
  font-size:12.5px !important;
}

/* ---------- Gutschein + Summen ---------- */
.wc-block-components-totals-wrapper{
  border-top:1px solid #EEF2F6 !important;
  padding:14px 0 !important;
}
.wc-block-components-panel__button{
  font-family:'Poppins',sans-serif !important;
  font-weight:500 !important;
  color:#2484C0 !important;
}
.wc-block-components-totals-coupon input{
  border:1.5px solid #E6ECF2 !important;
  border-radius:11px !important;
}
.wc-block-components-totals-coupon button{
  border-radius:11px !important;
  background:#2484C0 !important;
  color:#fff !important;
  border:0 !important;
}

/* Gesamtsumme groß + dunkelblau */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  font-family:'Poppins',sans-serif !important;
  font-weight:700 !important;
  color:#123E68 !important;
  font-size:18px !important;
}

/* ---------- Buttons: „Zur Kasse" / „Jetzt kaufen" ---------- */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-mini-cart-checkout-button-block{
  background:#EC0280 !important;
  color:#fff !important;
  border:0 !important;
  border-radius:20px !important;
  font-family:'Poppins',sans-serif !important;
  font-weight:600 !important;
  font-size:15px !important;
  min-height:50px !important;
  box-shadow:0 10px 24px rgba(236,2,128,.25) !important;
  transition:background .18s ease !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover{
  background:#C40068 !important;
}
/* „Weiter einkaufen"-Link */
.wc-block-components-button--outlined,
.wc-block-cart__submit-container + a{
  border-radius:20px !important;
}

/* ---------- KASSE (Checkout-Block) ---------- */
.wc-block-components-checkout-step__heading,
.wc-block-components-title{
  font-family:'Poppins',sans-serif !important;
  font-weight:700 !important;
  color:#123E68 !important;
}
.wc-block-components-checkout-step__description{
  color:#8A94A0 !important;
  font-size:13px !important;
}

/* Eingabefelder */
.wc-block-components-text-input input,
.wc-block-components-combobox input,
.wc-block-components-select select,
.wc-block-components-textarea{
  border:1.5px solid #E6ECF2 !important;
  border-radius:11px !important;
  background:#FAFBFC !important;
  font-family:'Poppins',sans-serif !important;
  font-size:16px !important;      /* verhindert iOS-Zoom */
}
.wc-block-components-text-input input:focus,
.wc-block-components-combobox input:focus,
.wc-block-components-select select:focus{
  border-color:#2484C0 !important;
  background:#fff !important;
  box-shadow:0 0 0 3px rgba(36,132,192,.13) !important;
}
.wc-block-components-text-input label,
.wc-block-components-combobox label{
  font-family:'Poppins',sans-serif !important;
  color:#8A94A0 !important;
}

/* Versand-/Zahlungsoptionen als Karten */
.wc-block-components-radio-control__option,
.wc-block-components-payment-method-label{
  font-family:'Poppins',sans-serif !important;
}
.wc-block-components-radio-control__option{
  border-radius:12px !important;
}
.wc-block-checkout__payment-method .wc-block-components-radio-control__option{
  border:1px solid #E6ECF2 !important;
  margin-bottom:8px !important;
  padding:14px !important;
}
.wc-block-components-radio-control__input:checked{
  border-color:#EC0280 !important;
  background:#EC0280 !important;
}

/* Bestellübersicht rechts/unten als Karte */
.wc-block-checkout__sidebar .wc-block-components-sidebar,
.wc-block-checkout__sidebar{
  background:#F7FAFC;
  border:1px solid #E6ECF2;
  border-radius:14px;
  padding:14px;
}

/* ---------- Mobil-Feinschliff ---------- */
@media (max-width:600px){
  .wc-block-cart-item__image{width:76px !important}
  .wc-block-components-product-name{font-size:13.5px !important}
  .wc-block-components-quantity-selector{transform:scale(.95);transform-origin:left center}
  .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
  .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{font-size:17px !important}
}


/* ============================================================
   DELFO • Single Post reading layout (Astra)
   Paste into: Appearance → Customize → Additional CSS
   Scope: .single-post  (blog posts only, not pages)
   ============================================================ */

/* Comfortable reading column */
.single-post .entry-header,
.single-post .entry-content,
.single-post .ast-single-post-featured-section {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Title */
.single-post .entry-title {
  color: #123E68;
  font-weight: 700;
  line-height: 1.22;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

/* Meta line (author / date) */
.single-post .entry-meta,
.single-post .ast-single-post-meta {
  font-size: 13px;
  color: #8A94A0 !important;
  text-transform: none;
}
.single-post .entry-meta a { color: #2484C0 !important; }

/* Body text */
.single-post .entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #3B4652;
}
.single-post .entry-content p { margin: 0 0 22px; }

/* Section headings */
.single-post .entry-content h2 {
  color: #123E68;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.35;
  margin: 42px 0 14px;
}
.single-post .entry-content h3 {
  color: #2F79AA;
  font-weight: 700;
  font-size: 21px;
  margin: 30px 0 12px;
}

/* Bold accents in Delfo blue */
.single-post .entry-content strong { color: #123E68; }

/* Blockquote (your "Ballaststoffe sind die stillen Architekten…" box) */
.single-post .entry-content blockquote {
  border-left: 4px solid #EC0280;
  background: #FBF3F8;
  margin: 30px 0;
  padding: 18px 24px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #123E68;
}

/* Images rounded */
.single-post .ast-single-post-featured-section img,
.single-post .entry-content img { border-radius: 16px; }

/* Links in Delfo pink */
.single-post .entry-content a {
  color: #EC0280;
  text-decoration: underline;
  text-underline-offset: 3px;
}








/* =========================================================
   DELFO — CHECKOUT UI (FINAL CONSOLIDATED VERSION)
   Scope: WooCommerce checkout page only
========================================================= */

/* ---------- Checkout payment method cards ---------- */
body.woocommerce-checkout
#payment-method
.wc-block-components-radio-control{
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

body.woocommerce-checkout
#payment-method
.wc-block-components-radio-control
.wc-block-components-radio-control-accordion-option{
  margin:0 0 10px !important;
  overflow:hidden !important;
  border:1px solid #E2EAF1 !important;
  border-radius:12px !important;
  background:#FFFFFF !important;
  box-shadow:none !important;
}

/* Selected method: one clean pink border, without a glow */
body.woocommerce-checkout
#payment-method
.wc-block-components-radio-control
.wc-block-components-radio-control-accordion-option--checked-option-highlighted{
  border-color:#EC0280 !important;
  box-shadow:none !important;
}

/* Keep the radio button separate from its label */
body.woocommerce-checkout
#payment-method
.wc-block-components-radio-control__option{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  min-height:52px !important;
  margin:0 !important;
  padding:15px 16px 15px 52px !important;
  border:0 !important;
  border-radius:0 !important;
  background:#FFFFFF !important;
  box-shadow:none !important;
}

body.woocommerce-checkout
#payment-method
.wc-block-components-radio-control__input{
  position:absolute !important;
  top:50% !important;
  left:16px !important;
  width:20px !important;
  height:20px !important;
  margin:0 !important;
  transform:translateY(-50%) !important;
}

body.woocommerce-checkout
#payment-method
.wc-block-components-radio-control__input:checked{
  border-color:#EC0280 !important;
  background:#EC0280 !important;
}

body.woocommerce-checkout
#payment-method
.wc-block-components-radio-control__option-layout,
body.woocommerce-checkout
#payment-method
.wc-block-components-radio-control__label-group{
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}

body.woocommerce-checkout
#payment-method
.wc-block-components-payment-method-label{
  color:#123E68 !important;
  font-family:'Poppins',sans-serif !important;
  font-size:14px !important;
  font-weight:600 !important;
  line-height:1.4 !important;
}

body.woocommerce-checkout
#payment-method
.wc-block-components-radio-control-accordion-content{
  margin:0 !important;
  padding:0 16px 16px 52px !important;
  border:0 !important;
  background:#FFFFFF !important;
  color:#5A6672 !important;
  font-family:'Poppins',sans-serif !important;
  font-size:13px !important;
  line-height:1.55 !important;
}

/* ---------- Checkout fields: clean neutral focus ---------- */
body.woocommerce-checkout
.wc-block-components-text-input input:focus,
body.woocommerce-checkout
.wc-block-components-combobox input:focus,
body.woocommerce-checkout
.wc-block-components-select select:focus,
body.woocommerce-checkout
.wc-block-components-textarea:focus{
  outline:0 !important;
  border-color:#9EAFBE !important;
  background:#FFFFFF !important;
  box-shadow:none !important;
}

/* Prevent accidental blue text-selection on floating labels */
body.woocommerce-checkout
.wc-block-components-text-input label,
body.woocommerce-checkout
.wc-block-components-combobox label{
  user-select:none !important;
  -webkit-user-select:none !important;
}

/* ---------- Note and legal checkboxes ---------- */
body.woocommerce-checkout
.wc-block-components-checkbox label{
  align-items:flex-start !important;
  color:#34495E !important;
  font-family:'Poppins',sans-serif !important;
  font-size:13.5px !important;
  line-height:1.55 !important;
}

body.woocommerce-checkout
.wc-block-components-checkbox__input{
  flex:0 0 20px !important;
  width:20px !important;
  height:20px !important;
  margin-top:1px !important;
}

body.woocommerce-checkout
.wc-gzd-checkbox{
  margin-top:18px !important;
  padding:14px 16px !important;
  border:1px solid #E6ECF2 !important;
  border-radius:11px !important;
  background:#F7FAFC !important;
}

body.woocommerce-checkout
.wc-block-components-validation-error{
  margin-top:8px !important;
  color:#B4232F !important;
  font-size:12.5px !important;
  line-height:1.5 !important;
}

/* ---------- Checkout mobile adjustments ---------- */
@media(max-width:600px){
  body.woocommerce-checkout
  #payment-method
  .wc-block-components-radio-control__option{
    min-height:50px !important;
    padding:14px 12px 14px 48px !important;
  }

  body.woocommerce-checkout
  #payment-method
  .wc-block-components-radio-control__input{
    left:14px !important;
  }

  body.woocommerce-checkout
  #payment-method
  .wc-block-components-radio-control-accordion-content{
    padding:0 12px 14px 48px !important;
  }

  body.woocommerce-checkout
  .wc-gzd-checkbox{
    padding:12px 13px !important;
  }
}


/* =========================================================
   DELFO — PREMIUM EMPTY CART
   Scope: /cart/ when the WooCommerce cart is empty
========================================================= */

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block{
  box-sizing:border-box !important;
  width:calc(100% - 32px) !important;
  max-width:760px !important;
  margin:42px auto 86px !important;
  padding:58px 34px 54px !important;
  text-align:center !important;
  border:1px solid #E2EAF1 !important;
  border-radius:24px !important;
  background:
    radial-gradient(circle at 50% 0,
      rgba(36,132,192,.10),transparent 44%),
    linear-gradient(180deg,#FFFFFF 0%,#F7FAFC 100%) !important;
  box-shadow:0 20px 55px rgba(18,62,104,.10) !important;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__title{
  margin:0 !important;
  padding:0 !important;
  color:#123E68 !important;
  font-family:'Poppins',sans-serif !important;
  font-size:clamp(23px,3vw,31px) !important;
  font-weight:800 !important;
  line-height:1.25 !important;
  letter-spacing:-.4px !important;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__title::before{
  content:"🛒" !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:72px !important;
  height:72px !important;
  margin:0 auto 22px !important;
  border-radius:22px !important;
  background:#EEF7FC !important;
  color:#2484C0 !important;
  font-size:31px !important;
  line-height:1 !important;
  box-shadow:0 10px 25px rgba(36,132,192,.14) !important;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block > p{
  max-width:560px !important;
  margin:15px auto 27px !important;
  color:#5A6672 !important;
  font-family:'Poppins',sans-serif !important;
  font-size:15px !important;
  line-height:1.7 !important;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-buttons{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap:11px !important;
  margin-top:27px !important;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-button__link{
  min-width:190px !important;
  padding:14px 25px !important;
  border:2px solid #2484C0 !important;
  border-radius:100px !important;
  background:#2484C0 !important;
  color:#FFFFFF !important;
  font-family:'Poppins',sans-serif !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.3 !important;
  text-decoration:none !important;
  box-shadow:0 10px 22px rgba(36,132,192,.22) !important;
  transition:transform .2s ease,background .2s ease !important;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-button__link:hover{
  border-color:#185490 !important;
  background:#185490 !important;
  color:#FFFFFF !important;
  transform:translateY(-2px) !important;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-button:nth-child(2) .wp-block-button__link{
  background:#FFFFFF !important;
  color:#185490 !important;
  box-shadow:none !important;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-button:nth-child(2) .wp-block-button__link:hover{
  background:#EEF7FC !important;
  color:#185490 !important;
}

/* Hide the original separator and newest-products recommendations */
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block > .wp-block-separator,
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title),
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block > .wp-block-woocommerce-product-new,
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block > .wp-block-product-new{
  display:none !important;
}

@media(max-width:600px){
  body.woocommerce-cart
  .wp-block-woocommerce-empty-cart-block{
    width:calc(100% - 24px) !important;
    margin:24px auto 54px !important;
    padding:42px 20px 38px !important;
    border-radius:19px !important;
  }

  body.woocommerce-cart
  .wp-block-woocommerce-empty-cart-block
  .wc-block-cart__empty-cart__title::before{
    width:62px !important;
    height:62px !important;
    font-size:27px !important;
  }

  body.woocommerce-cart
  .wp-block-woocommerce-empty-cart-block
  .wp-block-buttons{
    flex-direction:column !important;
  }

  body.woocommerce-cart
  .wp-block-woocommerce-empty-cart-block
  .wp-block-button,
  body.woocommerce-cart
  .wp-block-woocommerce-empty-cart-block
  .wp-block-button__link{
    width:100% !important;
  }
}

@media(prefers-reduced-motion:reduce){
  body.woocommerce-cart
  .wp-block-woocommerce-empty-cart-block
  .wp-block-button__link{
    transition:none !important;
  }
}


/* =========================================================
   DELFO — CHECKOUT FIELD BORDER HOTFIX
   Keep this block LAST. It overrides the older global blue
   focus rule without changing field sizes, layout or behavior.
========================================================= */

html body.woocommerce-checkout
div.wc-block-components-text-input > input:focus,
html body.woocommerce-checkout
div.wc-block-components-text-input > input:focus-visible,
html body.woocommerce-checkout
div.wc-block-components-combobox > input:focus,
html body.woocommerce-checkout
div.wc-block-components-combobox > input:focus-visible,
html body.woocommerce-checkout
.wc-block-components-select select:focus,
html body.woocommerce-checkout
.wc-block-components-select select:focus-visible,
html body.woocommerce-checkout
textarea.wc-block-components-textarea:focus,
html body.woocommerce-checkout
textarea.wc-block-components-textarea:focus-visible{
  outline:none !important;
  outline-offset:0 !important;
  border-color:#A9B7C4 !important;
  background:#FFFFFF !important;
  box-shadow:none !important;
  -webkit-box-shadow:none !important;
}

html body.woocommerce-checkout
div.wc-block-components-text-input:focus-within,
html body.woocommerce-checkout
div.wc-block-components-combobox:focus-within,
html body.woocommerce-checkout
.wc-block-components-select:focus-within{
  outline:none !important;
  box-shadow:none !important;
  -webkit-box-shadow:none !important;
}

html body.woocommerce-checkout
div.wc-block-components-text-input > label,
html body.woocommerce-checkout
div.wc-block-components-combobox > label{
  user-select:none !important;
  -webkit-user-select:none !important;
}


/* =========================================================
   DELFO — ELEMENTOR / CLASSIC CHECKOUT TEST PAGE
   Page ID 2509: /checkout-test/
   This page does not receive the WooCommerce checkout body
   class, so it needs its own tightly scoped focus override.
========================================================= */

html body.page-id-2509
form.checkout input.input-text:focus,
html body.page-id-2509
form.checkout input.input-text:focus-visible,
html body.page-id-2509
form.checkout textarea.input-text:focus,
html body.page-id-2509
form.checkout textarea.input-text:focus-visible{
  outline:none !important;
  outline-offset:0 !important;
  box-shadow:none !important;
  -webkit-box-shadow:none !important;
}

html body.page-id-2509
form.checkout .select2-container--focus .select2-selection,
html body.page-id-2509
form.checkout .select2-container--open .select2-selection{
  outline:none !important;
  border-color:#A9B7C4 !important;
  box-shadow:none !important;
  -webkit-box-shadow:none !important;
}

