/* STG-Shop: alle Styles für Header-Warenkorb, Kaufleiste, Produktseite, Warenkorb, Kasse und Konto.
   Wird von shop.php mit dem Änderungsdatum als Version geladen. */


/* =========================================================================
 * 1. Header: Konto-Icon, Warenkorb-Icon und Warenkorb-Dropdown
 * ====================================================================== */

/* Konto- und Warenkorb-Icon: gleiche Größe und etwas Luft */
.l-header .header-account-icon {
    margin-left: 0.4rem !important;
    font-size: 20px;
}

.l-header .header-cart-icon {
    margin-left: 0.5rem !important;
}

/* Warenkorb-Dropdown im Stil der Menü-Dropdowns */
.l-header .w-cart .w-cart-content {
    padding: 20px !important;
    border-top: 0 !important;
    border-right: 1px solid var(--color-rand) !important;
    border-bottom: 1px solid var(--color-rand) !important;
    border-left: 1px solid var(--color-rand) !important;
    border-radius: 0 0 11px 11px !important;
    background-color: #ffffff !important;
    box-shadow: 0px 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
}

.l-header .w-cart .woocommerce-mini-cart-item {
    font-size: 14px;
}

.l-header .w-cart .woocommerce-mini-cart__total {
    margin: 0.5rem 0 0.75rem;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--color-rand);
    font-size: 14px;
}

.l-header .w-cart .woocommerce-mini-cart__buttons .button {
    width: 100%;
    background-color: #0070b8 !important;
    color: #ffffff !important;
    font-size: 14px !important;
}

.l-header .w-cart .woocommerce-mini-cart__buttons .button:hover,
.l-header .w-cart .woocommerce-mini-cart__buttons .button:focus-visible {
    background-color: #005a93 !important;
    color: #ffffff !important;
}

/* Buttons ohne Kontur. Impreza zeichnet sie über ::before. */
.l-header .w-cart .woocommerce-mini-cart__buttons .button::before {
    border-width: 0 !important;
}

/* Auf der Startseite ganz oben durchsichtig wie die Menü-Dropdowns */
@media (min-width: 1024px) {
    .home .l-header:not(.sticky) .w-cart .w-cart-content {
        background: transparent !important;
        transition: all 0.3s ease;
    }

    .home .l-header:not(.sticky) .w-cart .w-cart-content::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        border-radius: 11px;
        background: rgba(0, 22, 37, 0.3);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 50%);
    }

    .home .l-header:not(.sticky) .w-cart .w-cart-content > * {
        position: relative;
        z-index: 1;
    }

    .home .l-header:not(.sticky) .w-cart .w-cart-content,
    .home .l-header:not(.sticky) .w-cart .w-cart-content a:not(.button),
    .home .l-header:not(.sticky) .w-cart .woocommerce-mini-cart__total {
        color: #ffffff !important;
    }

    .home .l-header:not(.sticky) .w-cart .woocommerce-mini-cart__total {
        border-top-color: rgba(255, 255, 255, 0.3);
    }
}


/* =========================================================================
 * 2. Bullentabelle: Warenkorb-Button in der Spalte Shop
 * ====================================================================== */

/* Runder Button im Stil des PDF-Links */
table.bullen-table.compact td a.bullen-shop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px !important;
    height: 26px !important;
    min-width: 0 !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background-color: #0070b8 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    text-decoration: none;
    box-shadow: none !important;
    transition: all 0.3s;
}

table.bullen-table.compact td a.bullen-shop-button:hover,
table.bullen-table.compact td a.bullen-shop-button:focus-visible {
    background-color: #005a93 !important;
    box-shadow: 0 4px 10px rgba(9, 132, 227, 0.3) !important;
}

table.bullen-table.compact td a.bullen-shop-button .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
}

table.bullen-table.compact td:has(> a.bullen-shop-button) {
    text-align: center;
}


/* =========================================================================
 * 3. Kaufleiste unten in der blauen Box der Bullen-Detailseite
 * ====================================================================== */

/* Nur sichtbar, wenn der Bulle wirklich kaufbar ist */
.bulle-kaufleiste {
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.bulle-kaufleiste:not(:has(.single_add_to_cart_button)) {
    display: none !important;
}

/* Alte Preis-Pillen aus den Stammdaten nur ausblenden, wenn der Bulle kaufbar ist */
.info-header-uebersicht:has(.single_add_to_cart_button) .bull-info-item.group_stammdaten_field_preis,
.info-header-uebersicht:has(.single_add_to_cart_button) .bull-info-item.group_stammdaten_field_preis-gesext {
    display: none !important;
}

/* Preis und Versandhinweis links */
.bulle-kaufleiste .bulle-preisblock {
    margin: 0 !important;
    color: #ffffff;
}

.bulle-kaufleiste .bulle-preis {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
}

.bulle-kaufleiste .bulle-preis * {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.bulle-kaufleiste .bulle-preishinweis {
    margin-top: 0.3rem;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0.8;
}

.bulle-kaufleiste .bulle-preishinweis a {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Sorte, Menge und Button rechts */
.bulle-kaufleiste .bulle-warenkorb {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 0 0 0 auto;
}

.bulle-warenkorb form.cart {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

/* Auswahl gesext oder ungesext als Pillen */
.bulle-warenkorb .stg-sorte {
    display: flex;
    flex-basis: 100%;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.bulle-warenkorb .stg-sorte label {
    display: inline-flex;
    align-items: center;
    height: 37.8px;
    padding: 0 1.1em;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bulle-warenkorb .stg-sorte input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bulle-warenkorb .stg-sorte label:has(input:checked) {
    border-color: #ffffff;
    background-color: #ffffff;
    color: #0070b8;
}

.bulle-warenkorb .stg-sorte label:has(input:focus-visible) {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.bulle-warenkorb .stg-sorte .woocommerce-Price-amount {
    margin-left: 0.4em;
    color: inherit;
}

/* Menge mit Minus und Plus. Impreza blendet die beiden Buttons sonst aus. */
.bulle-warenkorb .quantity {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 0.35rem;
    border-radius: 50px;
    background-color: #f5f6f7;
}

.bulle-warenkorb .quantity input.minus,
.bulle-warenkorb .quantity input.plus {
    display: block !important;
    width: 26px !important;
    height: 37.8px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #141414;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.bulle-warenkorb .quantity input.qty {
    width: 2.6em !important;
    height: 37.8px;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #141414;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}

.bulle-warenkorb .quantity input.qty::-webkit-inner-spin-button,
.bulle-warenkorb .quantity input.qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.bulle-warenkorb .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    height: 37.8px;
    padding: 0 1.6em !important;
    border: 0 !important;
    border-radius: 50px !important;
    background-color: #f5f6f7 !important;
    color: #141414 !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em;
    transition: all 0.3s;
}

.bulle-warenkorb .single_add_to_cart_button::after {
    content: "\f07a";
    font-family: fontawesome;
    font-size: 14px;
    font-weight: 900;
}

.bulle-warenkorb .single_add_to_cart_button:hover,
.bulle-warenkorb .single_add_to_cart_button:focus-visible {
    background-color: #ffffff !important;
    color: #0070b8 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Hinweis auf Mindestmenge und Mengenrabatt über Sorte, Menge und Button */
.bulle-warenkorb .stg-kaufhinweis {
    flex-basis: 100%;
    margin: 0 0 0.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: right;
}

/* Meldung nach dem Hinzufügen: helle Pille unter dem Button */
.bulle-warenkorb .woocommerce-notices-wrapper:empty {
    display: none;
}

.bulle-warenkorb .woocommerce-message {
    margin: 0.6rem 0 0 !important;
    padding: 0.6em 1.2em !important;
    border: 0 !important;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: right;
}

.bulle-warenkorb .woocommerce-message a.wc-forward {
    margin-left: 0.4em;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bulle-warenkorb .woocommerce-message a.wc-forward:hover {
    opacity: 0.8;
}


/* Bullen-Detailseite: Kaufleiste unten in der Infospalte.
   Preis links an der Unterkante, Hinweis, Sorte, Menge und Button rechts an der Unterkante. */
.bull-info-wrapper .bulle-kaufleiste {
    justify-content: space-between !important;
    align-items: flex-end !important;
    column-gap: 2rem;
    row-gap: 1rem;
}

.bull-info-wrapper .bulle-kaufleiste .bulle-warenkorb {
    align-items: flex-end;
    margin-left: auto;
}

.bull-info-wrapper .bulle-warenkorb form.cart {
    justify-content: flex-end;
}

.bull-info-wrapper .bulle-warenkorb .stg-sorte {
    flex-basis: auto;
    justify-content: flex-end;
    margin-right: 0.5rem;
}

.bull-info-wrapper .bulle-warenkorb .stg-kaufhinweis {
    text-align: right;
}

.bull-info-wrapper .bulle-preis {
    white-space: nowrap;
}

/* Ab 1400px passt alles in eine Zeile */
@media (min-width: 1400px) {
    .bull-info-wrapper .bulle-kaufleiste {
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 600px) {
    .bull-info-wrapper .bulle-warenkorb .stg-sorte {
        flex-basis: 100%;
        margin-right: 0;
    }

    .bull-info-wrapper .bulle-warenkorb .stg-sorte label {
        flex: 1;
        justify-content: center;
        padding: 0 0.6em;
        font-size: 13px;
        white-space: nowrap;
    }
}


/* =========================================================================
 * 4. Produktseite (Seitenvorlage "Produkt Detailseite") für sonstige Produkte
 * ====================================================================== */

/* Bild und Infos in einem blauen Kasten wie auf der Bullen-Detailseite */
.l-section.produkt-kopf {
    padding-bottom: 24px !important;
}

.produkt-kopf > .l-section-h > .g-cols {
    margin-left: 12px;
    margin-right: 12px;
    padding: 12px;
    border-radius: 22px;
    background-color: #0070b8;
}

.produkt-kopf > .l-section-h > .g-cols > .wpb_column > .vc_column-inner {
    padding-left: 0;
    padding-right: 0;
}

/* Produktfotos haben weißen Hintergrund und werden nie beschnitten */
.produkt-kopf .produkt-bild {
    overflow: hidden;
    border-radius: 16px;
    background-color: #ffffff;
}

.produkt-kopf .produkt-bild img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.produkt-kopf > .l-section-h > .g-cols > .wpb_column:last-child .wpb_wrapper,
.produkt-kopf .produkt-infos {
    height: 100%;
}

.produkt-kopf .produkt-infos {
    justify-content: flex-end;
    padding: 20px 20px 20px 32px;
    color: #ffffff;
}

.produkt-kopf .produkt-infos .g-breadcrumbs,
.produkt-kopf .produkt-infos .g-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 12px;
    text-transform: uppercase;
}

.produkt-kopf .produkt-titel {
    margin: 0;
    color: #ffffff;
    font-size: 3rem;
    line-height: 1.1;
}

.produkt-kopf .produkt-kurz {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

/* Ausführliche Beschreibung als weiße Karte darunter */
.l-section.produkt-unten {
    padding-top: 0 !important;
}

.produkt-unten .produkt-beschreibung {
    padding: 2rem;
    border-radius: 22px;
    background-color: #ffffff;
}

@media (max-width: 1024px) {
    .produkt-kopf .produkt-infos {
        padding: 20px 12px 12px;
    }

    .produkt-kopf .produkt-titel {
        font-size: 2rem;
    }
}


/* =========================================================================
 * 5. Gemeinsamer Aufbau von Warenkorb, Kasse und Konto
 * ====================================================================== */

/* Abstände wie auf der Bullen-Detailseite: 24px unter dem Titelkasten, Luft zum Footer */
.woocommerce-cart .l-main > section.l-section:first-child,
.woocommerce-checkout .l-main > section.l-section:first-child,
.woocommerce-account .l-main > section.l-section:first-child {
    padding-bottom: 24px !important;
}

.woocommerce-cart .l-main > section.l-section:last-child,
.woocommerce-checkout .l-main > section.l-section:last-child,
.woocommerce-account .l-main > section.l-section:last-child {
    padding-bottom: 6rem !important;
}

/* Durchgestrichener und neuer Preis mit Abstand, auch im Warenkorb-Dropdown */
del .woocommerce-Price-amount {
    margin-right: 0.35em;
}

/* Block "Versand und Lieferung" unter den Summen in Warenkorb und Kasse */
.l-body .stg-versand .w-vwrapper.versand-lieferung {
    max-width: none;
    margin-top: 1rem;
    background-color: #005a93 !important;
}

/* Passwortfelder: Augen-Symbol im Feld. Impreza lädt das WooCommerce-Styling dafür nicht. */
.woocommerce .password-input {
    position: relative;
    display: block;
}

.woocommerce .password-input .show-password-input {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #636e72;
    cursor: pointer;
}

.woocommerce .password-input .show-password-input::after {
    content: "\f06e";
    font-family: fontawesome;
    font-size: 14px;
    font-weight: 900;
}

.woocommerce .password-input .show-password-input.display-password::after {
    content: "\f070";
}


/* Buttons ohne Kontur. Impreza zeichnet sie über ::before. */
.bulle-warenkorb .button::before,
.produkt-kopf .button::before,
.woocommerce-cart .l-main .button::before,
.woocommerce-checkout .l-main .button::before,
.woocommerce-account .l-main .button::before {
    border-width: 0 !important;
}


/* =========================================================================
 * 6. Warenkorb
 * ====================================================================== */

/* Produkte und Summen im Verhältnis 7 zu 5 wie oben auf der Bullen-Detailseite */
@media (min-width: 1025px) {
    .woocommerce-cart .l-main .woocommerce {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: start;
        gap: 24px;
    }

    .woocommerce-cart .l-main .woocommerce > .woocommerce-notices-wrapper,
    .woocommerce-cart .l-main .woocommerce > .cart-empty,
    .woocommerce-cart .l-main .woocommerce > .return-to-shop {
        grid-column: 1 / -1;
    }

    .woocommerce-cart .l-main .woocommerce > form.woocommerce-cart-form,
    .woocommerce-cart .l-main .woocommerce > .cart-collaterals {
        width: auto !important;
        margin: 0 !important;
        float: none !important;
    }

    .woocommerce-cart table.shop_table.cart {
        width: 100% !important;
    }

    /* Rechte Spalte: oben "Passend dazu", darunter die Summen. Links die Produkte über beide Zeilen. */
    .woocommerce-cart .l-main .woocommerce {
        grid-template-rows: auto auto 1fr;
        row-gap: 0;
    }

    .woocommerce-cart .l-main .woocommerce > .woocommerce-notices-wrapper {
        grid-row: 1;
    }

    .woocommerce-cart .l-main .woocommerce > form.woocommerce-cart-form {
        grid-column: 1;
        grid-row: 2 / span 2;
    }

    .woocommerce-cart .l-main .woocommerce > .cross-sells {
        grid-column: 2;
        grid-row: 2;
        width: auto !important;
        margin: 0 0 24px !important;
        float: none !important;
    }

    .woocommerce-cart .l-main .woocommerce > .cart-collaterals {
        grid-column: 2;
        grid-row: 3;
    }
}

/* Zusatzprodukte ("Passend dazu") als kompakte Zeilen: Bild, Name und Preis, runder Warenkorb-Button */
.woocommerce-cart .cross-sells > h2 {
    margin: 0 0 1rem;
    font-size: 20px;
    font-weight: 600;
}

/* !important, weil Impreza auf dem Handy zwei Spalten erzwingt */
.woocommerce-cart .cross-sells ul.products {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-cart .cross-sells ul.products::before,
.woocommerce-cart .cross-sells ul.products::after {
    display: none;
}

.woocommerce-cart .cross-sells li.product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 1rem;
    width: auto !important;
    margin: 0 !important;
    padding: 10px 16px 10px 10px;
    border-radius: 22px;
    background-color: #ffffff;
    text-align: left;
}

/* Der Produktlink umschließt Bild, Name und Preis. So werden sie selbst Teil des Rasters. */
.woocommerce-cart .cross-sells li.product > a.woocommerce-LoopProduct-link {
    display: contents;
}

.woocommerce-cart .cross-sells li.product img {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 64px;
    height: 64px;
    margin: 0;
    border-radius: 11px;
    object-fit: contain;
}

.woocommerce-cart .cross-sells .woocommerce-loop-product__title {
    grid-column: 2;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.woocommerce-cart .cross-sells .price {
    display: block;
    grid-column: 2;
    margin: 0;
    color: #0070b8;
    font-size: 14px;
    font-weight: 600;
}

.woocommerce-cart .cross-sells .wc-gzd-additional-info {
    grid-column: 2;
    margin: 0;
    font-size: 11px;
}

.woocommerce-cart .cross-sells li.product .quantity {
    grid-column: 3;
    grid-row: 1 / 4;
}

.woocommerce-cart .cross-sells .add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 4;
    grid-row: 1 / 4;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background-color: #0070b8 !important;
    color: #ffffff !important;
    font-size: 0;
}

.woocommerce-cart .cross-sells .add_to_cart_button::after {
    content: "\f07a";
    font-family: fontawesome;
    font-size: 14px;
    font-weight: 900;
}

.woocommerce-cart .cross-sells .add_to_cart_button:hover {
    background-color: #005a93 !important;
}

.woocommerce-cart .cross-sells .added_to_cart {
    grid-column: 2 / 5;
    font-size: 12px;
}

.woocommerce-cart .woocommerce-notices-wrapper > * {
    margin-bottom: 1.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 11px;
    font-size: 14px;
}

/* Produkte als weiße Karte */
.woocommerce-cart table.shop_table.cart {
    padding: 0.75rem 1.5rem;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 22px;
    background-color: #ffffff;
}

.woocommerce-cart table.shop_table.cart th {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: #636e72;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.woocommerce-cart table.shop_table.cart td {
    font-size: 14px;
    vertical-align: middle;
}

.woocommerce-cart table.shop_table.cart td.product-price {
    white-space: nowrap;
}

.woocommerce-cart table.shop_table.cart td.product-subtotal {
    font-weight: 600;
    white-space: nowrap;
}

.woocommerce-cart table.shop_table.cart td.product-name a {
    font-weight: 600;
}

.woocommerce-cart table.shop_table.cart .variation {
    margin: 0.2rem 0 0;
    color: #636e72;
    font-size: 12px;
}

.woocommerce-cart table.shop_table.cart .product-thumbnail img {
    border-radius: 11px;
}

.woocommerce-cart .quantity input.qty {
    width: 4.5em;
    height: 37.8px;
    padding: 0 0.5em;
    border: 0;
    border-radius: 50px;
    background-color: #f5f6f7;
    font-weight: 600;
    text-align: center;
}

/* Gutschein, Aktualisieren und Herdbuch-Meldung unter den Produkten */
.woocommerce-cart td.actions {
    padding-top: 1.25rem !important;
}

.woocommerce-cart td.actions .coupon {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    width: auto !important;
}

.woocommerce-cart td.actions .coupon input {
    width: 14em;
    height: 37.8px;
    padding: 0 1.2em;
    border: 0;
    border-radius: 50px;
    background-color: #f5f6f7;
    font-size: 14px;
}

.woocommerce-cart td.actions .button {
    width: auto;
    height: 37.8px;
    padding: 0 1.4em;
    border-radius: 50px;
    font-size: 14px;
    white-space: nowrap;
}

/* Aktualisieren erst zeigen, wenn sich eine Menge geändert hat */
.woocommerce-cart td.actions button[name=update_cart][disabled] {
    display: none;
}

.woocommerce-cart .stg-herdbuch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 1rem 0.5rem 0;
    font-size: 14px;
    cursor: pointer;
}

/* Summen im blauen Kasten wie die Kaufleiste */
.woocommerce-cart .cart-collaterals .cart_totals {
    padding: 2rem;
    border-radius: 22px;
    background-color: #0070b8;
    color: #ffffff;
}

.woocommerce-cart .cart_totals h2 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td,
.woocommerce-cart .cart_totals a {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-size: 14px;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
    font-size: 18px;
    font-weight: 600;
}

/* Eingelöster Außendienst-Code als dunkelblaue Zeile */
.woocommerce-cart .cart_totals tr.cart-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.4rem 1rem;
    border-radius: 11px;
    background-color: #005a93;
}

.woocommerce-cart .cart_totals tr.cart-discount th,
.woocommerce-cart .cart_totals tr.cart-discount td {
    padding: 0.4rem 0 !important;
    border: 0 !important;
    background: transparent;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    width: 100%;
    border-radius: 50px;
    background-color: #ffffff !important;
    color: #0070b8 !important;
    font-size: 15px;
    font-weight: 600;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background-color: #f5f6f7 !important;
    color: #005a93 !important;
}


/* Versand in einer Zeile: "Sendung" links, Versandart rechts */
.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals {
    flex-wrap: nowrap;
    justify-content: space-between;
}

.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals th {
    flex-shrink: 0;
    white-space: nowrap;
}

.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td {
    flex: 1;
    text-align: right;
}

.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td {
    padding-top: 9.6px !important;
}

.woocommerce-cart .cart_totals #shipping_method {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-cart .cart_totals #shipping_method li {
    justify-content: flex-end;
}

/* Eingelösten Code entfernen: kleiner runder Button mit X statt "[Entfernen]" */
.woocommerce-cart .cart_totals .woocommerce-remove-coupon,
.woocommerce-checkout #order_review .woocommerce-remove-coupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 0;
    vertical-align: middle;
    transition: background-color 0.3s;
}

.woocommerce-cart .cart_totals .woocommerce-remove-coupon::after,
.woocommerce-checkout #order_review .woocommerce-remove-coupon::after {
    content: "\f00d";
    color: #ffffff;
    font-family: fontawesome;
    font-size: 11px;
    font-weight: 900;
}

.woocommerce-cart .cart_totals .woocommerce-remove-coupon:hover,
.woocommerce-checkout #order_review .woocommerce-remove-coupon:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

/* "Passend dazu": kein zusätzlicher Abstand oben, Button nur mit weißem Icon */
.woocommerce-cart .cross-sells {
    padding-top: 0 !important;
}

.woocommerce-cart .cross-sells .add_to_cart_button .w-btn-label {
    display: none;
}

.woocommerce-cart .cross-sells .add_to_cart_button,
.woocommerce-cart .cross-sells .add_to_cart_button:hover,
.woocommerce-cart .cross-sells .add_to_cart_button::after {
    color: #ffffff !important;
}

/* Leerer Warenkorb: eine weiße Karte in der Mitte mit Icon, Hinweis, kurzem Text und Button zur Sale-Seite */
.woocommerce-cart .l-main .woocommerce:has(.cart-empty) {
    display: block;
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-radius: 22px;
    background-color: #ffffff;
    text-align: center;
}

.woocommerce-cart .l-main .woocommerce:has(.cart-empty) > * {
    margin-top: 0 !important;
}

.woocommerce-cart .cart-empty.woocommerce-info {
    margin: 0 0 0.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

/* Warenkorb-Icon im hellblauen Kreis */
.woocommerce-cart .cart-empty.woocommerce-info::before {
    display: flex;
    position: static;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background-color: rgba(0, 112, 184, 0.1);
    color: #0070b8;
    content: "\f07a";
    font-family: fontawesome;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.woocommerce-cart .stg-leer-text {
    max-width: 420px;
    margin: 0 auto 1.75rem;
    color: #636e72;
    font-size: 15px;
    line-height: 1.5;
}

.woocommerce-cart .return-to-shop {
    margin: 0;
    padding: 0;
}

.woocommerce-cart .return-to-shop .button {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.9em 1.8em;
    border-radius: 50px;
    background-color: #0070b8 !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
}

/* Pfeil hinter dem Text */
.woocommerce-cart .return-to-shop .button::after {
    content: "\f061";
    font-family: fontawesome;
    font-size: 13px;
    font-weight: 900;
    transition: transform 0.3s;
}

.woocommerce-cart .return-to-shop .button:hover {
    background-color: #005a93 !important;
    color: #ffffff !important;
}

.woocommerce-cart .return-to-shop .button:hover::after {
    transform: translateX(3px);
}

/* Gestapelt (Tablet und Handy): Kästen mit Abstand untereinander */
@media (max-width: 1024px) {
    .woocommerce-cart .l-main .woocommerce > * + * {
        margin-top: 24px !important;
    }
}


/* =========================================================================
 * 7. Kasse
 * ====================================================================== */

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-notices-wrapper > * {
    padding: 0.9rem 1.5rem;
    border-radius: 11px;
    font-size: 14px;
}

.woocommerce-checkout form.checkout_coupon {
    padding: 1.5rem;
    border: 0;
    border-radius: 22px;
    background-color: #ffffff;
}

/* Kundendaten als weiße Karte */
.woocommerce-checkout #customer_details {
    padding: 2rem;
    border-radius: 22px;
    background-color: #ffffff;
}

.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review h3 {
    margin-bottom: 1rem;
    font-size: 20px;
    font-weight: 600;
}

/* "Lieferung an eine andere Adresse?" in normaler Feldgröße statt als Überschrift */
.woocommerce-checkout #customer_details h3#ship-to-different-address,
.woocommerce-checkout #ship-to-different-address label {
    font-size: 15px;
    font-weight: 600;
}

.woocommerce-checkout .form-row label {
    color: #636e72;
    font-size: 13px;
    font-weight: 600;
}

.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row .select2-selection,
.woocommerce-checkout form.checkout_coupon .input-text {
    min-height: 44px;
    padding: 0 1rem;
    border: 0 !important;
    border-radius: 11px !important;
    background-color: #f5f6f7 !important;
    box-shadow: none !important;
    font-size: 14px;
}

.woocommerce-checkout .form-row textarea.input-text {
    min-height: 110px;
    padding: 0.75rem 1rem;
}

.woocommerce-checkout .select2-selection__rendered {
    padding-left: 0 !important;
    line-height: 44px !important;
}

.woocommerce-checkout .select2-selection__arrow {
    height: 44px !important;
}

/* Zahlungsart, Bestellung und Kaufen im blauen Kasten */
.woocommerce-checkout #order_review {
    padding: 2rem;
    border-radius: 22px;
    background-color: #0070b8;
    color: #ffffff;
}

.woocommerce-checkout #order_review h3,
.woocommerce-checkout #order_review a,
.woocommerce-checkout #order_review label,
.woocommerce-checkout #order_review th,
.woocommerce-checkout #order_review td,
.woocommerce-checkout #order_review p,
.woocommerce-checkout #order_review .amount {
    color: #ffffff !important;
}

.woocommerce-checkout #order_review #order_review_heading {
    width: 100%;
    margin: 1.5rem 0 1rem;
    text-align: left;
}

.woocommerce-checkout #order_review table.shop_table {
    border: 0;
    border-radius: 0;
    background: transparent !important;
}

.woocommerce-checkout #order_review table th,
.woocommerce-checkout #order_review table td {
    border-color: rgba(255, 255, 255, 0.25) !important;
    font-size: 14px;
}

.woocommerce-checkout #order_review .order-total th,
.woocommerce-checkout #order_review .order-total td {
    font-size: 18px;
    font-weight: 600;
}

.woocommerce-checkout #order_review img {
    border-radius: 11px;
}

.woocommerce-checkout #order_review .wc-gzd-checkbox-placeholder,
.woocommerce-checkout #order_review .legal {
    font-size: 13px;
}

.woocommerce-checkout #payment,
.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment div.payment_box {
    border: 0;
    background: transparent !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 1rem 1.25rem;
    border-radius: 11px;
    background-color: rgba(255, 255, 255, 0.12);
}

.woocommerce-checkout #payment div.payment_box {
    padding: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}

.woocommerce-checkout #place_order {
    width: 100%;
    border-radius: 50px;
    background-color: #ffffff !important;
    color: #0070b8 !important;
    font-size: 15px;
    font-weight: 600;
}

.woocommerce-checkout #place_order:hover {
    background-color: #f5f6f7 !important;
    color: #005a93 !important;
}


/* Pfeil im Länderfeld mittig */
.woocommerce-checkout .select2-selection::after {
    top: calc(50% - 2px) !important;
    right: 1rem !important;
    transform: none !important;
}

/* Bestellübersicht: Bild links, rechts Name mit Menge und direkt darunter die Sorte. Trennlinien zwischen den Produkten. */
.woocommerce-checkout #order_review tr.cart_item td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    vertical-align: middle;
}

/* height wirkt bei Tabellenzellen wie eine Mindesthöhe: 56px Bild plus 12px Abstand oben und unten */
.woocommerce-checkout #order_review td.product-name {
    position: relative;
    height: 80px;
    padding-left: 72px !important;
}

.woocommerce-checkout #order_review td.product-name .wc-gzd-cart-item-name-wrapper {
    display: block;
}

.woocommerce-checkout #order_review td.product-name .wc-gzd-cart-item-thumbnail {
    position: absolute;
    top: 50%;
    left: 0;
    width: 56px;
    transform: translateY(-50%);
}

.woocommerce-checkout #order_review td.product-name .wc-gzd-cart-item-thumbnail img {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.woocommerce-checkout #order_review td.product-name .product-quantity {
    display: inline;
}

.woocommerce-checkout #order_review td.product-name dl.variation {
    margin: 0.15rem 0 0;
    font-size: 12px;
    opacity: 0.85;
}

.woocommerce-checkout #order_review td.product-name dl.variation dd,
.woocommerce-checkout #order_review td.product-name dl.variation p {
    display: inline;
    margin: 0;
}

.woocommerce-checkout #order_review td.product-total,
.woocommerce-checkout #order_review tfoot td {
    text-align: right;
    white-space: nowrap;
}

/* Reihenfolge im blauen Kasten: Zahlungsart, Bestellung, Bestätigung der AGB direkt über "Jetzt kaufen" */
.woocommerce-checkout #order_review {
    display: flex;
    flex-direction: column;
}

.woocommerce-checkout #order_review > #order_payment_heading { order: 1; }
.woocommerce-checkout #order_review > #payment { order: 2; }
.woocommerce-checkout #order_review > #order_review_heading { order: 3; }
.woocommerce-checkout #order_review > table.shop_table { order: 4; }
.woocommerce-checkout #order_review > .wc-gzd-checkbox-placeholder { order: 5; margin-top: 1rem; }
.woocommerce-checkout #order_review > .wc-gzd-order-submit { order: 6; }
.woocommerce-checkout #order_review > .stg-versand { order: 7; }

/* Rechnung ist die einzige Zahlungsart, also nichts zum Anklicken */
.woocommerce-checkout #payment ul.payment_methods li label {
    cursor: default;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding-bottom: 0.75rem;
}

.woocommerce-checkout #payment div.payment_box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .woocommerce-checkout #order_review {
        margin-top: 24px;
        padding: 1.5rem;
    }

    /* Bestelltabelle bleibt zweispaltig, sonst rutscht jeder Preis unter sein Produkt */
    .woocommerce-checkout #order_review table.shop_table tr {
        display: table-row !important;
    }

    .woocommerce-checkout #order_review table.shop_table th,
    .woocommerce-checkout #order_review table.shop_table td {
        display: table-cell !important;
        width: auto !important;
    }

    .woocommerce-checkout #customer_details {
        padding: 1.5rem;
    }
}


/* =========================================================================
 * 8. Mein Konto
 * ====================================================================== */

/* Menü links und Inhalt rechts mit 24px Abstand wie auf der Bullen-Detailseite */
@media (min-width: 1025px) {
    .woocommerce-account .l-main .woocommerce:has(> .woocommerce-MyAccount-navigation) {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        align-items: start;
        gap: 24px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: auto !important;
        margin: 0 !important;
        float: none !important;
    }
}

/* Navigation als blauer Kasten, aktiver Punkt als weiße Pille */
.woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 1.25rem;
    border-radius: 22px;
    background-color: #0070b8;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li + li {
    margin-top: 4px;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background-color: #ffffff;
    color: #0070b8 !important;
}

/* Inhalt, Login, Registrierung und Passwort als weiße Karten */
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register,
.woocommerce-account .woocommerce-ResetPassword {
    padding: 2rem;
    border: 0;
    border-radius: 22px;
    background-color: #ffffff;
    font-size: 14px;
}

.woocommerce-account .woocommerce-MyAccount-content .input-text,
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-form-login .input-text,
.woocommerce-account .woocommerce-form-register .input-text,
.woocommerce-account .woocommerce-ResetPassword .input-text {
    min-height: 44px;
    padding: 0 1rem;
    border: 0 !important;
    border-radius: 11px !important;
    background-color: #f5f6f7 !important;
    box-shadow: none !important;
    font-size: 14px;
}

.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-form-login .button,
.woocommerce-account .woocommerce-form-register .button,
.woocommerce-account .woocommerce-ResetPassword .button {
    border-radius: 50px;
    background-color: #0070b8 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-form-login .button:hover,
.woocommerce-account .woocommerce-form-register .button:hover,
.woocommerce-account .woocommerce-ResetPassword .button:hover {
    background-color: #005a93 !important;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
    border-radius: 11px;
    background: transparent;
    font-size: 14px;
}

/* Hinweise wie "Es wurde noch keine Bestellung aufgegeben" mit runden Ecken */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-notices-wrapper > * {
    padding: 0.9rem 1.5rem;
    border-radius: 11px;
}

/* Kontodetails und Formulare enger */
.woocommerce-account .woocommerce-MyAccount-content .form-row,
.woocommerce-account .woocommerce-form-login .form-row,
.woocommerce-account .woocommerce-form-register .form-row {
    margin-bottom: 14px;
}

.woocommerce-account .woocommerce-MyAccount-content .form-row label,
.woocommerce-account .woocommerce-form-login .form-row label,
.woocommerce-account .woocommerce-form-register .form-row label {
    margin-bottom: 4px;
    color: #636e72;
    font-size: 13px;
    font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset {
    margin: 1.5rem 0 14px;
}

/* Auge im Passwortfeld genau mittig */
.woocommerce .password-input .show-password-input {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text bleibt beim Hover weiß */
.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-form-login .button:hover,
.woocommerce-account .woocommerce-form-register .button:hover,
.woocommerce-account .woocommerce-ResetPassword .button:hover {
    color: #ffffff !important;
}

@media (max-width: 1024px) {
    .woocommerce-account .woocommerce-MyAccount-content {
        margin-top: 24px !important;
    }
}


/* =========================================================================
 * 9. Seite "Sonstige Produkte": Karten aus dem Shortcode [stg_zusatzprodukte]
 * ====================================================================== */

.stg-zusatzprodukte {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.stg-zusatzprodukt {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
    padding: 12px 16px 12px 12px;
    border-radius: 22px;
    background-color: #ffffff;
}

.stg-zusatzprodukt-bild img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 11px;
    object-fit: contain;
}

.stg-zusatzprodukt-name {
    display: block;
    color: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.stg-zusatzprodukt-preis {
    display: inline-block;
    margin: 0.35rem 0;
    padding: 0.15em 0.7em;
    border-radius: 50px;
    background-color: #f5f6f7;
    color: #0070b8;
    font-size: 13px;
    font-weight: 600;
}

.stg-zusatzprodukt-kurz,
.stg-zusatzprodukt-kurz p {
    margin: 0;
    color: #636e72;
    font-size: 13px;
    line-height: 1.4;
}

.stg-zusatzprodukt .add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background-color: #0070b8 !important;
    color: #ffffff !important;
    font-size: 0;
}

.stg-zusatzprodukt .add_to_cart_button::before {
    border-width: 0 !important;
}

.stg-zusatzprodukt .add_to_cart_button::after {
    color: #ffffff;
    content: "\f07a";
    font-family: fontawesome;
    font-size: 15px;
    font-weight: 900;
}

.stg-zusatzprodukt .add_to_cart_button .w-btn-label {
    display: none;
}

.stg-zusatzprodukt .add_to_cart_button:hover {
    background-color: #005a93 !important;
}

@media (max-width: 1280px) {
    .stg-zusatzprodukte {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .stg-zusatzprodukte {
        grid-template-columns: minmax(0, 1fr);
    }

    .stg-zusatzprodukt {
        grid-template-columns: 72px minmax(0, 1fr) auto;
    }

    .stg-zusatzprodukt-bild img {
        width: 72px;
        height: 72px;
    }
}


/* Menge und Warenkorb-Button nebeneinander, "Warenkorb anzeigen" nach dem Hinzufügen darunter */
.stg-zusatzprodukt-kauf {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

/* Der Link liegt unten rechts in der Karte, damit er die Spalten nicht verbreitert */
.stg-zusatzprodukt {
    position: relative;
}

.stg-zusatzprodukt:has(.added_to_cart) {
    padding-bottom: 30px;
}

.stg-zusatzprodukt-kauf .added_to_cart {
    position: absolute;
    right: 16px;
    bottom: 8px;
    font-size: 12px;
}

.stg-zusatzprodukt .quantity,
.woocommerce-cart .cross-sells .quantity {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 0.25rem;
    border-radius: 50px;
    background-color: #f5f6f7;
}

.stg-zusatzprodukt .quantity .stg-minus,
.stg-zusatzprodukt .quantity .stg-plus,
.woocommerce-cart .cross-sells .quantity .stg-minus,
.woocommerce-cart .cross-sells .quantity .stg-plus {
    display: block !important;
    width: 24px !important;
    height: 38px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #141414;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.stg-zusatzprodukt .quantity input.stg-qty,
.woocommerce-cart .cross-sells .quantity input.stg-qty {
    width: 2.2em !important;
    height: 38px;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}

.stg-zusatzprodukt .quantity input.stg-qty::-webkit-inner-spin-button,
.stg-zusatzprodukt .quantity input.stg-qty::-webkit-outer-spin-button,
.woocommerce-cart .cross-sells .quantity input.stg-qty::-webkit-inner-spin-button,
.woocommerce-cart .cross-sells .quantity input.stg-qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}


/* =========================================================================
 * 10. Gemeinsame Details für alle Shop-Seiten
 * ====================================================================== */

/* Produktbilder immer mit dezentem grauem Rahmen */
.l-header .w-cart .mini_cart_item img,
.woocommerce-cart table.shop_table.cart .product-thumbnail img,
.woocommerce-cart .cross-sells li.product img,
.woocommerce-checkout #order_review .wc-gzd-cart-item-thumbnail img,
.produkt-kopf .produkt-bild,
.stg-zusatzprodukt-bild img {
    border: 1px solid var(--color-rand);
}

/* Beschriftungen, die nichts auslösen, ohne Hand-Cursor. Checkboxen und Auswahlfelder behalten ihn. */
.woocommerce label {
    cursor: default;
}

.woocommerce label:has(input[type=checkbox]),
.woocommerce label:has(input[type=radio]),
.woocommerce label.checkbox,
.bulle-warenkorb .stg-sorte label {
    cursor: pointer;
}

/* Versandart ist nicht auswählbar, wenn es nur eine gibt */
#shipping_method label {
    pointer-events: none;
}

/* Versandart in Warenkorb und Kasse rechtsbündig */
#shipping_method {
    margin: 0;
    padding: 0;
    list-style: none;
}

#shipping_method li {
    justify-content: flex-end;
    text-align: right;
}

/* Kasse: Abstand zwischen letztem Produkt und Zwischensumme */
.woocommerce-checkout #order_review tfoot tr:first-child th,
.woocommerce-checkout #order_review tfoot tr:first-child td {
    padding-top: 1rem !important;
}

/* AGB-Checkbox auf Blau: Text eingerückt daneben, nicht angehakt durchsichtig, angehakt weiß mit blauem Haken.
   Impreza zeichnet den Haken weiß auf hellgrau, angehakt wäre er sonst unsichtbar. */
.woocommerce-checkout #order_review .wc-gzd-checkbox-placeholder label.checkbox {
    display: block;
    position: relative;
    padding-left: 32px;
}

.woocommerce-checkout #order_review .wc-gzd-checkbox-placeholder input[type=checkbox] {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px !important;
    min-width: 20px;
    height: 20px !important;
    margin: 0 !important;
    border: 1.5px solid #ffffff !important;
    background-color: transparent !important;
}

.woocommerce-checkout #order_review .wc-gzd-checkbox-placeholder input[type=checkbox]:checked {
    background-color: #ffffff !important;
}

.woocommerce-checkout #order_review .wc-gzd-checkbox-placeholder input[type=checkbox]:checked::before {
    color: #0070b8 !important;
}

/* Runde Warenkorb-Buttons: genau kreisrund, Icon mittig */
.woocommerce-cart .cross-sells .add_to_cart_button {
    width: 38px !important;
    min-width: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.woocommerce-cart .cross-sells .add_to_cart_button::after,
.stg-zusatzprodukt .add_to_cart_button::after {
    line-height: 1;
}

.stg-zusatzprodukt .add_to_cart_button {
    flex-shrink: 0;
    min-width: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}


/* =========================================================================
 * 11. Online-Sale: Kaufhinweis, Herdbuch-Erklärung, Kurzbeschreibung, MwSt.
 * ====================================================================== */

/* Kaufhinweis auf der Bullenseite als Liste untereinander, darunter die Fußnote zum Rabatt */
.bulle-warenkorb .stg-kaufhinweis ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bulle-warenkorb .stg-kaufhinweis li {
    margin: 0;
    line-height: 1.5;
}

.bulle-warenkorb .stg-kaufhinweis li:first-child {
    color: #ffffff;
    font-weight: 600;
}

.bulle-warenkorb .stg-kaufhinweis p {
    margin: 0.25rem 0 0;
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.85;
}

/* Kurzbeschreibung bei "Passend dazu", z. B. "100 Stück pro Paket" */
.woocommerce-cart .cross-sells .stg-kurz {
    grid-column: 2;
    color: #636e72;
    font-size: 12px;
    line-height: 1.4;
}

/* Herdbuch-Meldung mit Fragezeichen, die Erklärung erscheint beim Darüberfahren oder Antippen */
.woocommerce-cart .stg-herdbuch {
    cursor: default;
}

.woocommerce-cart .stg-herdbuch label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}

.stg-info {
    display: inline-flex;
    position: relative;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #0070b8;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

.stg-info-text {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    z-index: 20;
    width: 280px;
    padding: 0.75rem 1rem;
    border-radius: 11px;
    background-color: #001625;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.stg-info-text::after {
    position: absolute;
    top: 100%;
    left: 50%;
    border: 6px solid transparent;
    border-top-color: #001625;
    content: "";
    transform: translateX(-50%);
}

.stg-info:hover .stg-info-text,
.stg-info:focus .stg-info-text {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 600px) {
    .stg-info-text {
        right: -12px;
        left: auto;
        width: min(280px, 80vw);
        transform: none;
    }

    .stg-info-text::after {
        right: 15px;
        left: auto;
        transform: none;
    }
}

/* MwSt.: eigene Zeilen Nettosumme und MwSt. vor der Bruttosumme, die Standardzeilen entfallen */
.woocommerce-cart .cart_totals tr.tax-rate,
.woocommerce-cart .cart_totals tr.tax-total,
.woocommerce-checkout #order_review tr.tax-rate,
.woocommerce-checkout #order_review tr.tax-total {
    display: none;
}

/* Preisangaben unter dem Preis der Kaufleiste ("exkl. MwSt.", "zzgl. Versandkosten") ohne Absatzabstand untereinander */
.bulle-preishinweis p {
    margin: 0 !important;
    line-height: 1.5;
}

/* Sortenauswahl auf Produktkarten (Bullen ohne Detailseite bei "Passend dazu" und auf der Seite Zusatzprodukte):
   kleine Pillen wie in der Kaufleiste, die gewählte Sorte blau gefüllt */
.stg-sorte-wahl {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stg-sorte-wahl label {
    margin: 0;
    cursor: pointer;
}

.stg-sorte-wahl input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.stg-sorte-wahl span {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #0070b8;
    border-radius: 50px;
    color: #0070b8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    transition: background-color 0.2s, color 0.2s;
}

.stg-sorte-wahl input:checked + span {
    background-color: #0070b8;
    color: #ffffff;
}

.stg-sorte-wahl input:focus-visible + span {
    outline: 2px solid #0070b8;
    outline-offset: 2px;
}

.woocommerce-cart .cross-sells li.product .stg-sorte-wahl {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
}

/* Mehr Zeilen in der Karte (Name, Preis, Hinweise, Kurztext, Sorte): Menge und Button bleiben senkrecht mittig */
.woocommerce-cart .cross-sells li.product .quantity,
.woocommerce-cart .cross-sells li.product .add_to_cart_button {
    grid-row: 1 / 8;
    align-self: center;
}

.stg-zusatzprodukt-text .stg-sorte-wahl {
    margin-top: 0.5rem;
}
