/* Cart/Checkout: Theme-Umschaltungen dürfen den Text des Checkout-Buttons nicht verfärben. */
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-button:visited,
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:focus,
body.woocommerce-cart .wc-block-cart__submit-button:active,
body.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text,
body.woocommerce-cart .wc-block-cart__submit-button:hover .wc-block-components-button__text,
body.woocommerce-cart .wc-block-cart__submit-button:focus .wc-block-components-button__text,
body.woocommerce-cart .wc-block-cart__submit-button:active .wc-block-components-button__text,
body.woocommerce-cart a.checkout-button,
body.woocommerce-cart a.checkout-button:visited,
body.woocommerce-cart a.checkout-button:hover,
body.woocommerce-cart a.checkout-button:focus,
body.woocommerce-cart a.checkout-button:active {
    color: #fff !important;
    text-decoration: none !important;
}

/* Rechtliche Links direkt vor dem Bestellbutton. */
.fbk-checkout-legal {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fafafa;
    font-size: 14px;
    line-height: 1.45;
}
.fbk-checkout-legal p {
    margin: 7px 0 0;
}
.fbk-checkout-legal a {
    text-decoration: underline;
}


/* Zusätzliche Warenkorb-Navigation für Maßkonfigurationen. */
.fbk-cart-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin: 18px 0 28px;
}
.fbk-cart-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 5px;
    border: 1px solid #b8c3cf;
    background: #fff;
    color: #18324d !important;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color .15s ease, border-color .15s ease;
}
.fbk-cart-nav-button:hover,
.fbk-cart-nav-button:focus,
.fbk-cart-nav-button:active {
    background: #f3f6f9;
    border-color: #7f91a3;
    color: #18324d !important;
    text-decoration: none !important;
}
.fbk-cart-nav-button.fbk-cart-empty {
    border-color: #b54b4b;
    color: #8b1f1f !important;
}
.fbk-cart-nav-button.fbk-cart-empty:hover,
.fbk-cart-nav-button.fbk-cart-empty:focus,
.fbk-cart-nav-button.fbk-cart-empty:active {
    background: #fff2f2;
    border-color: #8b1f1f;
    color: #721717 !important;
}

/* Rücknavigation im Checkout vor dem rechtlich relevanten Bestellbereich. */
.fbk-checkout-back {
    margin: 12px 0;
    font-size: 14px;
}
.fbk-checkout-back a {
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .fbk-cart-navigation {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
    .fbk-cart-nav-button {
        width: 100%;
    }
}


/* Checkout: Bestellbutton dauerhaft in Shop-Orange mit weißer Schrift.
   Theme-/Block-Hoverzustände dürfen Farbe und Text nicht umschalten. */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:visited,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:active,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover .wc-block-components-button__text,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus .wc-block-components-button__text,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:active .wc-block-components-button__text,
body.woocommerce-checkout #place_order,
body.woocommerce-checkout #place_order:visited,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #place_order:focus,
body.woocommerce-checkout #place_order:active {
    background: #ff6b00 !important;
    background-color: #ff6b00 !important;
    border-color: #ff6b00 !important;
    color: #fff !important;
    opacity: 1 !important;
    text-decoration: none !important;
    text-shadow: none !important;
}
