/* Nordwand Buchungsbuttons v1.3.0 */

/* Produktseiten: beide Buchungsmoeglichkeiten in voller Breite. */
body.single-product .summary form.cart button.single_add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    height: 45px !important;
    min-height: 45px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 14px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
}

body.single-product .summary .ppc-button-wrapper,
body.single-product .summary #ppc-button-ppcp-gateway {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: both !important;
}
body.single-product .summary #ppc-button-ppcp-gateway {
    display: block !important;
    margin: 20px 0 0 !important;
}
body.single-product .summary #ppc-button-ppcp-gateway::before {
    content: var(--nw-separator, "oder");
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0 15px;
    color: #777;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

/* Warenkorb: den Abstand DIREKT am oberen Button setzen.
   Das funktioniert auch dann, wenn PayPal andere Wrapper verwendet. */
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout,
body.woocommerce-cart .cart_totals .ppc-button-wrapper,
body.woocommerce-cart .cart_totals #ppc-button-ppcp-gateway {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    clear: both !important;
    overflow: visible !important;
}
body.woocommerce-cart .cart_totals .checkout-button,
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: 45px !important;
    min-height: 45px !important;
    box-sizing: border-box !important;
    padding: 0 14px !important;
    margin: 0 0 40px !important;
    overflow: visible !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    position: relative !important;
}
/* Pseudoelement ausserhalb des orangefarbenen Buttons; nicht klickbar. */
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button::after {
    content: var(--nw-separator, "oder");
    display: block !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: none !important;
    border: 0 !important;
    color: #777 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    text-transform: none !important;
    text-align: center !important;
    pointer-events: none !important;
    opacity: 1 !important;
    transform: none !important;
}
/* The v1.2 PayPal-wrapper separator is now redundant. */
body.woocommerce-cart .cart_totals .ppc-button-wrapper::before {
    content: none !important;
}
body.woocommerce-cart .cart_totals .ppc-button-wrapper {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Kasse: zahlungspflichtiger Abschlussbutton gut lesbar und gross. */
body.woocommerce-checkout form.checkout #payment .place-order,
body.woocommerce-checkout form.checkout #payment .form-row.place-order {
    box-sizing: border-box !important;
    width: 100% !important;
}
body.woocommerce-checkout form.checkout #place_order {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 54px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    text-align: center !important;
    white-space: normal !important;
}

/* Newsletter original field is moved (never cloned) below the terms checkbox. */
body.woocommerce-checkout .nw-newsletter-row {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    margin: 8px 0 18px !important;
    padding: 0 !important;
}
body.woocommerce-checkout .nw-newsletter-row label {
    text-transform: none !important;
    font-weight: normal !important;
    cursor: pointer !important;
}

@media (max-width: 767px) {
    body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
        margin-bottom: 40px !important;
    }
    body.woocommerce-checkout form.checkout #place_order {
        min-height: 52px !important;
        padding: 12px 16px !important;
    }
}
