/* ══════════════════════════════════════════════
   AutoLogg Shop – Warenkorb und Kasse (sisu-cart-checkout.php)
   ══════════════════════════════════════════════ */

/* ── Kein Chat-Popup in Warenkorb und Kasse ── */
#intercom-container,#intercom-frame,.intercom-lightweight-app,.intercom-namespace{display:none!important}

/* ── Lizenzname ── */
.autologg-item-name{display:block;font-weight:700;font-size:16px;color:#18212d;line-height:1.35}
.autologg-item-sub{display:block;color:#5a6574;font-size:14px;margin-top:2px}
/* Kasse am Desktop: Germanized stellt Bild, Name und Menge nebeneinander – Name und Zahlungsweise untereinander
   neben dem Bild (auf dem Handy stapelt Germanized selbst) */
@media (min-width:768px){
    .woocommerce-checkout-review-order-table .wc-gzd-cart-item-name-wrapper{display:grid!important;grid-template-columns:48px minmax(150px,1fr);column-gap:12px;align-items:start}
    .woocommerce-checkout-review-order-table .wc-gzd-cart-item-name-wrapper>.wc-gzd-cart-item-thumbnail{grid-row:1 / span 3;width:48px;max-width:48px}
    .woocommerce-checkout-review-order-table .wc-gzd-cart-item-thumbnail img{width:100%;height:auto}
    .woocommerce-checkout-review-order-table .wc-gzd-cart-item-name-wrapper>*:not(.wc-gzd-cart-item-thumbnail){grid-column:2}
}

/* ── Zusammenfassung: heute / danach ── */
.al-sum{background:#eef7ff;border:1px solid #b9dcf7;border-radius:14px;padding:16px 18px;margin:18px 0;color:#18212d;font-size:15px;line-height:1.5}
.al-sum .al-today{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px;font-weight:700;font-size:18px}
.al-sum .al-today small{font-weight:600;font-size:13px;color:#1d7f55;background:#dff3e8;border-radius:999px;padding:2px 10px;white-space:nowrap}
.al-sum .al-later{margin-top:6px;color:#3c4756}
.al-sum .al-later b{color:#18212d}
.al-trial{color:#1d7f55!important;font-weight:600}
tr.cart-subtotal:not(.recurring-total){display:none!important}

/* ── Warenkorb: ein Hauptknopf ── */
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button{
    display:block!important;width:100%!important;max-width:none!important;font-size:19px!important;font-weight:700!important;
    padding:16px 20px!important;border-radius:12px!important;background:#1683d8!important;color:#fff!important;
    text-align:center!important;line-height:1.3!important;box-shadow:0 6px 16px rgba(22,131,216,.25)!important;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button:after{display:none!important}
body.woocommerce-cart .wc-stripe-cart-checkout-container{transform:scale(.82);transform-origin:top center}

/* ── Warenkorb: Gutschein als Link ── */
.al-coupon-link{display:inline-block;margin:6px 0 4px;color:#1683d8;font-weight:600;cursor:pointer;text-decoration:underline;font-size:15px;background:none;border:0;padding:0}
body.woocommerce-cart td.actions .coupon.al-hidden{display:none!important}
body.woocommerce-cart button[name=update_cart]{display:none!important}

/* ── Warenkorb: Menge −/+ und Entfernen ── */
.al-stepper{display:inline-flex;align-items:center;gap:6px}
.al-stepper button{width:40px;height:40px;border-radius:10px;border:1px solid #c9d6e4;background:#fff;font-size:20px;font-weight:700;color:#1683d8;cursor:pointer;line-height:1;padding:0}
.al-stepper input.qty{width:56px!important;text-align:center;font-size:16px!important}
.al-remove{display:block;margin-top:8px;font-size:14px;color:#5a6574;text-decoration:underline;background:none;border:0;padding:0;cursor:pointer}

/* ── Warenkorb: feste Leiste auf dem Handy ── */
.al-bar{
    position:fixed;left:0;right:0;bottom:0;z-index:9999;background:#fff;border-top:1px solid #dce2ea;
    box-shadow:0 -6px 18px rgba(0,0,0,.08);padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    display:flex;align-items:center;gap:12px;
}
.al-bar .al-bar-txt{flex:1;font-size:13px;color:#5a6574;line-height:1.3}
.al-bar .al-bar-txt b{display:block;font-size:16px;color:#18212d}
.al-bar a{background:#1683d8;color:#fff;font-weight:700;font-size:16px;padding:13px 18px;border-radius:12px;text-decoration:none;white-space:nowrap}
@media (min-width:768px){.al-bar{display:none}}
@media (max-width:767px){body.al-has-bar{padding-bottom:84px}}

/* ── Felder: 16 px auf dem Handy (iOS zoomt sonst), größere Auswahlfelder ── */
@media (max-width:767px){
    body.woocommerce-checkout form.checkout input.input-text,
    body.woocommerce-checkout form.checkout select,
    body.woocommerce-checkout form.checkout textarea,
    body.woocommerce-cart input.input-text{font-size:16px!important}
}
body.woocommerce-checkout #payment ul.payment_methods li{padding:8px 4px!important}
body.woocommerce-checkout #payment ul.payment_methods li input.input-radio{width:20px;height:20px;vertical-align:middle}
body.woocommerce-checkout .payment_method_ppcp-gateway .woocommerce-SavedPaymentMethods[data-count="0"]{display:none}

/* ── Kasse: E-Mail zuerst, Hinweis direkt darunter ── */
body.woocommerce-checkout .autologg-account-hint{font-size:14px;color:#3c4756;margin-top:-6px!important}
body.woocommerce-checkout .wc-gzd-edit-data-notice{display:none!important}

/* ── Kasse: Zahlart → Bestellung → Zusammenfassung → AGB-Häkchen → Knopf ── */
body.woocommerce-checkout #order_review{display:flex;flex-direction:column}
body.woocommerce-checkout #order_review>*{order:8}
body.woocommerce-checkout #order_review>#order_payment_heading{order:1}
body.woocommerce-checkout #order_review>#payment{order:2}
body.woocommerce-checkout #order_review>#order_review_heading{order:3;margin-top:22px}
body.woocommerce-checkout #order_review>.woocommerce-checkout-review-order-table{order:4}
body.woocommerce-checkout #order_review>.al-sum{order:5}
body.woocommerce-checkout #order_review>.wc-gzd-checkbox-placeholder{order:6}
body.woocommerce-checkout #order_review>.wc-gzd-order-submit{order:7}
body.woocommerce-checkout .woocommerce-checkout-review-order-table{width:100%!important;max-width:100%!important;table-layout:auto}

body.woocommerce-checkout .wc-gzd-checkbox-placeholder-legal p.legal{background:#f6f8fb;border:1px solid #dce2ea;border-radius:12px;padding:12px 14px!important;margin:14px 0 10px!important}
body.woocommerce-checkout #legal{width:20px;height:20px;vertical-align:middle;margin-right:6px}
body.woocommerce-checkout #place_order{width:100%!important;font-size:19px!important;font-weight:700!important;padding:16px 20px!important;border-radius:12px!important;background:#1683d8!important;color:#fff!important}
