/* Apitz – Warenkorb, Express-Kasse und Galerie */
body.woocommerce-cart {
  .wp-block-woocommerce-cart .wc-block-components-totals-footer-item {display:flex; flex-direction:column; align-items:flex-end; gap:8px; text-align:right;
    > .wc-block-components-totals-item__label, > .wc-block-components-totals-item__value, > .wc-block-components-totals-item__description {flex:0 1 auto; width:100%; max-width:100%; margin:0; text-align:right; white-space:normal;}
  }
  .wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax {text-align:right;}
}
body.woocommerce-checkout {
  .wc-block-components-express-payment--checkout {
    .wc-block-components-express-payment__title-container {position:static; display:flex; align-items:center; gap:10px; margin:0 0 24px;
      &::before, &::after {content:""; display:block; flex:1; border-bottom:1px solid var(--wc-separator-color,color-mix(in srgb,currentColor 20%,transparent));}
    }
    .wc-block-components-express-payment__title {position:static; margin:0; padding:0; transform:none; font-size:var(--wp--preset--font-size--small,14px); font-weight:400; line-height:1.4; letter-spacing:0; text-align:center;}
  }
  .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description {
    > .wc-block-components-product-name {flex:0 1 auto;}
    > .wc-block-cart-item__prices {display:none;}
  }
  .wc-block-components-express-payment--checkout .wc-block-components-express-payment__event-buttons {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,128px),1fr)); gap:12px; align-items:center; margin:0; padding:0; list-style:none;
    > li {width:auto; min-width:0; margin:0; padding:0; list-style:none;}
  }
  .wc-block-components-express-payment__event-buttons {
    > li > div {width:100%; min-height:48px;}
    paypal-button {display:block; width:100%; height:48px!important;}
  }
}
/* Nur das Hochformat-Verpackungsbild füllt seinen Vorschaurahmen. */
body.single-product .woocommerce-product-gallery .flex-control-thumbs img.apitz-gallery-thumbnail-cover {object-fit:cover!important;}

body.woocommerce-cart .apitz-express-checkout-heading {display:flex; align-items:center; gap:10px; margin:0 0 24px; padding:0; font-size:var(--wp--preset--font-size--small,14px); font-weight:400; line-height:1.4; letter-spacing:0; text-align:center;
  &::before, &::after {content:" "; flex:1; border-bottom:1px solid var(--wc-separator-color,color-mix(in srgb,currentColor 20%,transparent));}
}
