/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Text Domain: miaskribo
 Domain Path: /languages
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ------------------------------------------------------------
   Basis / Autorenbox
------------------------------------------------------------ */

.profile-image img {
    margin-right: 15px;
    float: left;
    height: 75px;
    width: 75px;
    border-radius: 100%;
}

.profile-image2 img {
    margin-right: 15px;
    float: left;
    height: 150px;
    width: 150px;
    border-radius: 100%;
}

#post-author {
    padding: 10px;
    margin-top: 15px;
    background: #e6e6e6;
    border: medium dashed grey;
}

.remove_red {
    color: red;
    padding: 2px;
}

/* ------------------------------------------------------------
   Generische Details-Elemente
   Hinweis: Produkt-Accordions werden unten separat gezielt gestaltet.
------------------------------------------------------------ */

details {
    background-color: #fff;
    margin: 5px;
    display: block;
}

details > summary {
    background-color: #e8e8e8;
    border: thin dotted;
    padding: 2px 2px 2px 5px;
    cursor: pointer;
}

details > summary:hover {
    background-color: #ededed;
}

details > div > h2,
details > div > h3 {
    font-size: 16pt;
    padding-top: 10pt;
}

details > div > h2 {
    visibility: hidden;
    margin-top: -50px;
}

/* =========================================
   WOOCOMMERCE: HINWEIS-/MESSAGE-BLÖCKE
========================================= */

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    position: relative;
    margin: 1.25rem 0;
    padding: 1.15rem 1.25rem 1.15rem 4rem;

    border: 1px solid rgba(0,0,0,0.08);
    border-left: 5px solid #0d5888;
    border-radius: 10px;

    background: #faf9f7;
    color: #222;

    line-height: 1.55;
    box-shadow: 0 2px 8px rgba(0,0,0,0.035);
}

/* Icon-Kreis */
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    line-height: 1;
}

/* Info */
.woocommerce-info {
    border-left-color: #0d5888;
}

.woocommerce-info::before {
    content: "i";
    background: rgba(13,88,136,0.10);
    color: #0d5888;
}

/* Erfolg */
.woocommerce-message {
    border-left-color: #4f7d4f;
}

.woocommerce-message::before {
    content: "?";
    background: rgba(79,125,79,0.12);
    color: #4f7d4f;
}

/* Fehler */
.woocommerce-error {
    border-left-color: #b00020;
    background: #fff7f7;
}

.woocommerce-error::before {
    content: "!";
    background: rgba(176,0,32,0.10);
    color: #b00020;
}

/* Links */
.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a {
    font-weight: 700;
    color: #0d5888;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: transparent !important;
}

.woocommerce-info a:hover,
.woocommerce-message a:hover,
.woocommerce-error a:hover {
    color: #093f63;
}

/* Buttons/Forward-Links in Hinweisen */
.woocommerce-info .button,
.woocommerce-message .button,
.woocommerce-error .button,
a.wc-forward {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.35rem 0.75rem !important;
    border-radius: 999px;

    background: #0d5888 !important;
    color: #fff !important;

    text-decoration: none !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

.woocommerce-info .button:hover,
.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
a.wc-forward:hover {
    background: #093f63 !important;
    color: #fff !important;
}

/* ------------------------------------------------------------
   WooCommerce allgemein
------------------------------------------------------------ */

.wp-block-column {
    padding: 20px;
}



@media only screen and (max-width: 600px) {
    .woo-variation-product-gallery {
        width: 100%;
        place-items: left;
    }
}

/* ------------------------------------------------------------
   MiaSkribo Media & Frontend Shortcodes
------------------------------------------------------------ */

/* Bildquelle */
.img_source,
.img_source_loop {
    position: relative;
    text-decoration: none;
    float: right;
    top: 30px;
    right: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #e6e6e6;
    padding: 3px;
    font-size: 10px;
    white-space: nowrap;
    display: inline;
    z-index: 2;
}

/* Breadcrumb */
.mia_breadcrumb,
.mia-breadcrumb {
    font-size: 0.92rem;
    margin: 0.75rem 0 1.25rem;
}

.mia_breadcrumb__list,
.mia-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Bildunterschrift */
.bu,
.mia-bu {
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0.35rem 0 1rem;
}

/* Category Excerpt */
.mia-category-excerpt {
    margin: 1.5rem 0;
}

.mia-category-excerpt__image {
    display: block;
    width: 100%;
    height: auto;
}

/* Slider */
.mmfs-slider {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.mmfs-slider__track {
    display: flex;
    transition: transform 0.8s cubic-bezier(.77, 0, .175, 1);
}

.mmfs-slider__slide {
    position: relative;
    flex: 0 0 100%;
    line-height: 0;
}

.mmfs-slider__slide img {
    display: block;
    width: 100%;
    height: auto;
}

.mmfs-slider__caption {
    position: absolute;
    left: 20px;
    bottom: 24px;
    line-height: 1.4;
    padding: 5px;
}

.mmfs-slider__caption a,
.mmfs-slider__caption-link {
    color: #fff;
    text-decoration: underline;
    background: rgba(13, 88, 136, 0.72);
    padding: 9px 8px;
    line-height: 1.5;
    transition: background-color 0.25s ease;
}

.mmfs-slider__caption a:hover,
.mmfs-slider__caption a:focus,
.mmfs-slider__caption-link:hover,
.mmfs-slider__caption-link:focus {
    color: #fff;
    text-decoration: underline;
    background: rgba(13, 88, 136, 0.88);
}

/* Slider-Navigation: Pfeile */
.mmfs-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmfs-slider__nav:hover,
.mmfs-slider__nav:focus {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.mmfs-slider__prev {
    left: 12px;
}

.mmfs-slider__next {
    right: 12px;
}

/* Slider-Navigation: Punkte */
.mmfs-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.mmfs-slider__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    opacity: 0.75;
}

.mmfs-slider__dot:hover,
.mmfs-slider__dot:focus,
.mmfs-slider__dot.is-active {
    background: #000;
    opacity: 0.85;
}

/* ------------------------------------------------------------
   Mini Product Information
------------------------------------------------------------ */

.mpi-product-description-text {
    max-width: 72ch;
    margin-bottom: 1.5rem;
}

.mpi-product-description-text > :first-child {
    margin-top: 0;
}

.mpi-product-description-text > :last-child {
    margin-bottom: 0;
}

/* Hinweis-/Linkblock */
.mpi-tab-link-block {
    margin: 1.5rem 0;
}

.mpi-tab-link-block__heading {
    margin: 0 0 0.4rem;
}

.mpi-tab-link-block__list {
    margin: 0;
    padding-left: 1.25em;
}

.mpi-tab-link-block__item + .mpi-tab-link-block__item {
    margin-top: 0.25rem;
}

.mpi-tab-link-block__link {
    font-weight: 700;
}

/* Accordion */
.mpi-product-accordion {
    margin: 1.5rem 0;
}

.mpi-product-accordion__item {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #faf9f7;
    overflow: hidden;
    border-radius: 3px;
}

.mpi-product-accordion__summary {
    cursor: pointer;
    font-weight: 700;
    padding: 1rem 1.25rem;
    list-style: none;
    background: #f1ede8;
    line-height: 1.5;
    border: 0;
    outline: none;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.mpi-product-accordion__summary:hover {
    background: #e9e1d7;
}

.mpi-product-accordion__summary:focus,
.mpi-product-accordion__summary:focus-visible,
.mpi-product-accordion__summary:active {
    outline: none;
    box-shadow: none;
}

.mpi-product-accordion__summary::-webkit-details-marker {
    display: none;
}

.mpi-product-accordion__summary::after {
    content: "+";
    float: right;
    font-weight: 700;
}

.mpi-product-accordion__item[open] .mpi-product-accordion__summary::after {
    content: "-";
}

.mpi-product-accordion__panel {
    max-width: none;
    box-sizing: border-box;
    padding: 1.35rem 1.5rem !important;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    line-height: 1.7;
}

.mpi-product-accordion__panel .mpi-product-tab-content,
.mpi-product-accordion__panel .entry-content,
.mpi-product-accordion__panel .wc-tab {
    box-sizing: border-box;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0;
    margin-right: 0;
    max-width: 72ch;
}

.mpi-product-accordion__panel > * {
    margin-left: 0;
    margin-right: 0;
}

.mpi-product-accordion__panel > :first-child,
.mpi-product-accordion__panel .mpi-product-tab-content > :first-child {
    margin-top: 0;
}

.mpi-product-accordion__panel > :last-child,
.mpi-product-accordion__panel .mpi-product-tab-content > :last-child {
    margin-bottom: 0;
}

.mpi-product-accordion details[open] > .mpi-product-accordion__panel,
.woocommerce .mpi-product-accordion details[open] > .mpi-product-accordion__panel,
.woocommerce-tabs .mpi-product-accordion details[open] > .mpi-product-accordion__panel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.mpi-product-accordion details:not([open]) > .mpi-product-accordion__panel {
    display: none !important;
}

/* =========================================================
   MINI-WARENKORB (Header-Widget)
========================================================= */

.mch-mini-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Loading-State: Platzhalter während AJAX-Nachladen */
.mch-mini-cart--loading {
    opacity: 0.5;
    pointer-events: none;
}

.mch-mini-cart--loading .mch-mini-cart__badge {
    font-size: 0.55em;
    animation: mch-pulse 1.2s ease-in-out infinite;
}

@keyframes mch-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Gefüllter Zustand: klickbarer Pill-Link */
.mch-mini-cart__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(13, 88, 136, 0.18);
    border-radius: 999px;
    background: #faf9f7;
    color: #0d5888;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mch-mini-cart__link:hover,
.mch-mini-cart__link:focus {
    background: #eef4ff;
    border-color: rgba(13, 88, 136, 0.35);
    color: #093f63;
    text-decoration: none;
}

/* Leerer Zustand: dezent, aber sichtbar */
.mch-mini-cart--empty .mch-mini-cart__button {
    opacity: 0.45;
}

.mch-mini-cart__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
}

.mch-mini-cart__subtotal {
    font-weight: 700;
    color: #0d5888;
    font-size: 0.95rem;
}

.mch-mini-cart__badge-wrap {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
}

.mch-mini-cart__icon {
    display: block;
    width: 20px;
    height: 20px;
}

.mch-mini-cart__badge {
    position: absolute;
    top: -0.7em;
    right: -0.8em;
    min-width: 1.35em;
    height: 1.35em;
    padding: 0 0.25em;
    border-radius: 999px;
    background: #b00020;
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    line-height: 1.35em;
    text-align: center;
}

/* Badge bei 0 Artikeln: grau statt rot */
.mch-mini-cart--empty .mch-mini-cart__badge {
    background: #999;
}

/* ------------------------------------------------------------
   Kasse / Checkout
------------------------------------------------------------ */
/* =========================================
   CHECKOUT: POSITIONEN + SUMMENBEREICH
========================================= */

/* Tabelle als ruhige Karte */
.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

/* Tabellenkopf */
.woocommerce-checkout-review-order-table thead th {
    padding: 1rem 1.25rem;
    background: #f7f7f5;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.woocommerce-checkout-review-order-table thead th:last-child {
    text-align: right;
}

/* Produktzeilen */
.woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.woocommerce-checkout-review-order-table tbody td {
    padding: 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.woocommerce-checkout-review-order-table tbody td.product-total {
    text-align: right !important;
    white-space: nowrap;
    font-size: 1.05rem;
}

/* Produktdarstellung */
.mch-checkout-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.mch-checkout-item__media img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    float: none !important;
    margin: 0 !important;
}

.mch-checkout-item__title {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.mch-checkout-item__meta {
    font-size: 0.92rem;
    line-height: 1.45;
    opacity: 0.85;
}

/* Mengenfeld + Löschen */
.mch-checkout-quantity {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-top: 0.75rem;
}

.mch-checkout-quantity .quantity input.qty {
    width: 4.5em;
    border: 1px solid rgba(0,0,0,0.18) !important;
    background: #fff;
}

.woocommerce .mch-checkout-remove.remove,
.mch-checkout-remove.remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: auto;
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(176,0,32,0.35);
    border-radius: 5px;
    background: #fff;
    color: #b00020 !important;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.woocommerce .mch-checkout-remove.remove:hover,
.woocommerce .mch-checkout-remove.remove:focus,
.mch-checkout-remove.remove:hover,
.mch-checkout-remove.remove:focus {
    background: #b00020 !important;
    color: #fff !important;
    border-color: #b00020;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Summenbereich */
.woocommerce-checkout-review-order-table tfoot {
    display: table-footer-group;
}

.woocommerce-checkout-review-order-table tfoot tr {
    background: #faf9f7;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    padding: 1.25rem 1.25rem 1.25rem 5rem !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    background: #faf9f7 !important;
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
    border-bottom: 0 !important;
}

.woocommerce-checkout-review-order-table tfoot th {
    position: relative;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
}

.woocommerce-checkout-review-order-table tfoot td {
    text-align: right !important;
    font-size: 1.1rem;
    font-weight: 600;
    padding-left: 1.25rem !important;
}

/* Icon-Kreis */
.woocommerce-checkout-review-order-table tfoot th::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background-color: #eee9e3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 22px 22px;
}

/* Icon: Preisschild */
.woocommerce-checkout-review-order-table tfoot .cart-subtotal th::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.59 13.41 11 3.83A2 2 0 0 0 9.59 3H4a1 1 0 0 0-1 1v5.59A2 2 0 0 0 3.59 11l9.59 9.59a2 2 0 0 0 2.82 0l4.59-4.59a2 2 0 0 0 0-2.82Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.2'/%3E%3C/svg%3E");
}

/* Icon: Lieferung */
.woocommerce-checkout-review-order-table tfoot .woocommerce-shipping-totals th::before,
.woocommerce-checkout-review-order-table tfoot .shipping th::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7h11v10H3z'/%3E%3Cpath d='M14 11h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}

/* Icon: Gesamtsumme */
.woocommerce-checkout-review-order-table tfoot .order-total th::before {
    background-color: rgba(176,0,32,0.08);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23b00020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M7 15h3'/%3E%3C/svg%3E");
}

/* Gesamtsumme */
.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
    color: #b00020;
    font-weight: 700;
}

.woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 1.7rem;
    line-height: 1.15;
}

.woocommerce-checkout-review-order-table tfoot .order-total small,
.woocommerce-checkout-review-order-table tfoot .order-total .includes_tax {
    display: block;
    margin-top: 0.35rem;
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Versandmethoden */
.woocommerce-checkout-review-order-table tfoot .woocommerce-shipping-methods {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-checkout-review-order-table tfoot .woocommerce-shipping-methods li {
    margin: 0.25rem 0;
}

/* Mobile */
@media (max-width: 768px) {
    .mch-checkout-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .mch-checkout-item__media img {
        width: 64px;
        height: 64px;
    }

    .woocommerce-checkout-review-order-table thead {
        display: none;
    }

    .woocommerce-checkout-review-order-table tbody td,
    .woocommerce-checkout-review-order-table tfoot th,
    .woocommerce-checkout-review-order-table tfoot td {
        padding: 1rem !important;
    }

    .woocommerce-checkout-review-order-table tfoot th {
        padding-left: 4rem !important;
    }

    .woocommerce-checkout-review-order-table tfoot th::before {
        left: 1rem;
        width: 34px;
        height: 34px;
        background-size: 18px 18px;
    }

    .woocommerce-checkout-review-order-table tfoot .order-total td {
        font-size: 1.35rem;
    }
}

/* Zahlungsarten */
.woocommerce-checkout #payment {
    background: transparent;
}

.woocommerce-checkout #payment ul.payment_methods {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.woocommerce-checkout #payment input[type="radio"]:checked + label {
    font-weight: 700;
}
/* =========================================
   CHECKOUT: NEWSLETTER / AGB / BUTTON
   Modernisierte Optik
========================================= */

.woocommerce-checkout #payment .place-order {
    margin-top: 1.5rem;
    padding: 0 !important;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background: #f8f8f6;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Newsletter */
.woocommerce-checkout 
#payment 
.place-order 
label[data-automation-id="woo-commerce-subscription-opt-in"] {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;

    margin: 0 !important;
    padding: 1.6rem 1.8rem 1.2rem 1.8rem;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.45;
}

/* AGB-Bereich */
.woocommerce-checkout 
#payment 
.woocommerce-terms-and-conditions-wrapper {
    padding: 0 1.8rem 1.8rem 1.8rem;
}

/* Datenschutztext */
.woocommerce-checkout 
#payment 
.woocommerce-privacy-policy-text {
    margin: 0.4rem 0 1.6rem 2rem;
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
    max-width: 92%;
}

/* AGB-Checkbox */
.woocommerce-checkout 
#payment 
.woocommerce-terms-and-conditions-wrapper 
.form-row {
    margin: 0 !important;
    padding: 0;
}

.woocommerce-checkout 
#payment 
.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    line-height: 1.6;
}

/* Checkboxen */
.woocommerce-checkout 
#payment 
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    accent-color: #b00020;
    flex-shrink: 0;
}

/* AGB-Link */
.woocommerce-checkout 
#payment 
.woocommerce-terms-and-conditions-link,
.woocommerce-checkout 
#payment 
.woocommerce-privacy-policy-link {
    color: #0D5888;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Hidden MailPoet-Feld */
#mailpoet_woocommerce_checkout_optin_present_field {
    display: none !important;
}

/* Pflichtstern */
.woocommerce-checkout abbr.required {
    color: #b00020;
    text-decoration: none;
    margin-left: 0.2rem;
}

/* Bezahlbutton */
.woocommerce-checkout #payment #place_order {
    float: none !important;
    display: block !important;

    width: calc(100% - 3.6rem);
    margin: 1.8rem auto 1.8rem auto !important;
    padding: 1.15rem 1.4rem !important;

    border: 0 !important;
    border-radius: 10px;

    background: linear-gradient(
        to bottom,
        #d50032 0%,
        #b00020 100%
    ) !important;

    color: #fff !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;

    box-shadow:
        0 4px 12px rgba(176,0,32,0.25),
        inset 0 1px 0 rgba(255,255,255,0.15);

    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

/* Hover */
.woocommerce-checkout #payment #place_order:hover,
.woocommerce-checkout #payment #place_order:focus {
    background: linear-gradient(
        to bottom,
        #e10035 0%,
        #98001b 100%
    ) !important;

    color: #fff !important;

    transform: translateY(-1px);

    box-shadow:
        0 6px 16px rgba(176,0,32,0.30),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

/* PayPal / Apple Pay / Google Pay */
.woocommerce-checkout #payment div[id^="ppc-button-"] {
    margin: 1rem 1.8rem 0 1.8rem;
}

/* Mobile */
@media (max-width: 768px) {

    .woocommerce-checkout 
    #payment 
    .place-order 
    label[data-automation-id="woo-commerce-subscription-opt-in"] {
        padding: 1.3rem 1.2rem 1rem 1.2rem;
        font-size: 1rem;
    }

    .woocommerce-checkout 
    #payment 
    .woocommerce-terms-and-conditions-wrapper {
        padding: 0 1.2rem 1.2rem 1.2rem;
    }

    .woocommerce-checkout 
    #payment 
    .woocommerce-privacy-policy-text {
        margin-left: 0;
        max-width: 100%;
        font-size: 0.96rem;
    }

    .woocommerce-checkout #payment #place_order {
        width: calc(100% - 2.4rem);
        font-size: 1.25rem !important;
    }
}

/* =========================================================
   Checkout-Überschriften modernisieren
   Rechnungsdaten + Bezahlmethoden
========================================================= */

/* Mehr Abstand oberhalb der Bereiche */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    margin-top: 2rem;
}

/* Überschriften */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading {
    display: flex;
    align-items: center;
    gap: 0.9rem;

    margin-bottom: 1.75rem;
    padding-top: 0.5rem;

    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f1f1f;
}

/* Icon-Kreis */
.woocommerce-checkout #customer_details h3::before,
.woocommerce-checkout #order_review_heading::before {
    content: "";
    display: inline-flex;

    width: 46px;
    height: 46px;
    min-width: 46px;

    border-radius: 50%;

    background-color: #eef4ff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;

    box-shadow: inset 0 0 0 1px rgba(13,88,136,0.08);
}

/* Rechnungsdaten-Icon */
.woocommerce-checkout #customer_details h3::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230D5888' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12h6m-6 4h6M7 4h7l5 5v11a1 1 0 01-1 1H7a1 1 0 01-1-1V5a1 1 0 011-1z'/%3E%3C/svg%3E");
}

/* Zahlungsarten-Icon */
.woocommerce-checkout #order_review_heading::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230D5888' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' ry='2'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 10h18'/%3E%3C/svg%3E");
}

/* Entfernt alte harte Borders */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout #payment {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Zahlungsarten optisch luftiger */
.woocommerce-checkout #payment ul.payment_methods {
    margin-top: 0.5rem;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 0.9rem;
    padding: 1rem 1.1rem;

    border-radius: 10px;
    background: #fafafa;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    background: #f4f4f4;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

/* Mobile */
@media (max-width: 768px) {

    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        margin-top: 1.5rem;
    }

    .woocommerce-checkout #customer_details h3,
    .woocommerce-checkout #order_review_heading {
        font-size: 1.35rem;
    }

    .woocommerce-checkout #customer_details h3::before,
    .woocommerce-checkout #order_review_heading::before {
        width: 40px;
        height: 40px;
        min-width: 40px;

        background-size: 18px 18px;
    }
}

/* Doppelte Plus-/Minus-Buttons im Woo-Quantity-Feld ausblenden */
.mch-checkout-quantity .quantity button:not(.mch-checkout-qty-button),
.mch-checkout-quantity .quantity input[type="button"],
.mch-checkout-quantity .quantity .minus,
.mch-checkout-quantity .quantity .plus {
    display: none !important;
}

/* Quantity-Wrapper neutralisieren */
.mch-checkout-quantity .quantity {
    display: inline-flex !important;
    margin: 0 !important;
}

/* Plugin-Mengensteuerung (Checkout) */
.mch-checkout-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mch-checkout-qty-button {
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.mch-checkout-qty-button:hover,
.mch-checkout-qty-button:focus {
    border-color: #0d5888;
    background: #eef4ff;
    color: #0d5888;
}

/* Zahlenfeld */
.mch-checkout-quantity .quantity input.qty,
.mch-checkout-qty-input {
    width: 4rem !important;
    height: 2.4rem;
    text-align: center;
    margin: 0 !important;
}

/* Alte WC-Quantity-Buttons im Checkout ausblenden (Plugin nutzt eigene) */
.mch-checkout-quantity .quantity {
    display: none !important;
}

/* =========================================================
   WARENKORB: Eigene Quantity-Steuerung (.mch-cart-quantity)
   Ersetzt das native WC-Quantity-Template komplett.
========================================================= */

.mch-cart-quantity {
    display: inline-flex;
    gap: 0;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.mch-cart-quantity .mch-cart-qty-input {
    width: 3.5em;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-left: 0;
    border-right: 0;
    padding: 0.45rem 0.2rem;
    font-size: 0.95rem;
    line-height: 1;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.mch-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #f7f5f2;
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mch-qty-btn:hover,
.mch-qty-btn:focus {
    border-color: #0d5888;
    background: #eef4ff;
    color: #0d5888;
}

.mch-qty-btn:active {
    background: #dde8f4;
}

.mch-qty-minus {
    border-radius: 4px 0 0 4px;
}

.mch-qty-plus {
    border-radius: 0 4px 4px 0;
}

/* PayPal Smart Payment Buttons (Apple Pay, Google Pay, Kreditkarte) ausblenden */
.woocommerce-checkout #payment div[id^="ppc-button-"] {
    display: none !important;
}

/* Alternative: Nur spezifische Buttons ausblenden */
.woocommerce-checkout #payment .ppcp-button-apm,
.woocommerce-checkout #payment .ppcp-button-googlepay,
.woocommerce-checkout #payment .ppcp-button-applepay {
    display: none !important;
}

/* Falls PayPal einen zweiten "Bestellen"-Button rendert */
.woocommerce-checkout #payment #place_order ~ button,
.woocommerce-checkout #payment .ppcp-button-wrapper ~ button {
    display: none !important;
}

/* Alle PayPal-Express-Buttons ausblenden, nur Radio-Button-Zahlung behalten */
.woocommerce-checkout #payment .payment_method_ppcp-gateway .payment_box {
    display: block !important; /* Zahlungsart-Beschreibung anzeigen */
}

.woocommerce-checkout #payment .payment_method_ppcp-gateway .ppcp-button-wrapper {
    display: none !important; /* Express-Buttons ausblenden */
}
