/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
   Body, Main styles um Footer immer am unteren Rand zu halten
*/

body{
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}

.site-main{
    flex: 1 0 auto;
}



/***
 Spendenseite (Produktseite)
***/

.mwd-spenden-product-page form.cart {
    text-align: center;
}

.mwd-spenden-product-page input[type="number"] {
    width: 250px !important;
}

.mwd-spenden-product-page label {
    width: 100%;
    margin-bottom: 1em;
}

.mwd-spenden-product-page .single_add_to_cart_button {
    min-width: 180px;
}

.mwd-spenden-product-page .quantity {
    display: none;
}



/***
  Checkout
 */
#order_review_heading,
.woocommerce-checkout-review-order thead,
.woocommerce-checkout-review-order .product-quantity,
.woocommerce-checkout-review-order tfoot .cart-subtotal {
    display: none;
}

.order-total {
    font-size: 1.7rem !important;
}

.order-total td {
    text-align: right
}

.order-total th, .order-total td {
    color: #000 !important;
    border-top: 1px solid #333 !important;
}

.order-total bdi {
    font-weight: 400;
}

.cart_item:nth-child(2), .cart_item:nth-child(2) .product-name, .cart_item:nth-child(2) .product-total {
    padding-top: 0 !important;
}

.cart_item .product-name {
    font-size: 1.7rem !important;
    font-weight: 600 !important;
}

.cart_item .product-total {
    font-size: 1.7rem !important;
    vertical-align: middle !important;
    width: 23%;
    text-align: right;
}



@media(max-width: 768px) {
    .cart_item .product-total {
        vertical-align: bottom !important;
    }}

button#place_order, button#apply_donation_button {
    font-family: "Arial", Sans-serif !important;
    font-size: unset;
    font-weight: 600 !important;
    background-color: var( --e-global-color-secondary )!important;
}

button#place_order:hover, button#apply_donation_button:hover {
    background-color: var( --e-global-color-primary )!important;
}

.e-checkout-layout-two-column {
    margin-top: 70px;
}

.woocommerce-checkout .woocommerce-notices-wrapper {
    display: none;
}

.product-template-default .woocommerce-notices-wrapper {
    position: fixed;
    top: 30%;
    width: 100%;
    z-index: 21;
    display: flex;
    justify-content: center;
}

/***
  After Checkout
***/
.woocommerce-order-pay .site-main {
    margin-top: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* ********************************************************************** */
/* ***                       MWD SPENDEN TEASER                       *** */
/* ***   Task (DMX): https://app-eu.wrike.com/open.htm?id=778677743   *** */
/* ********************************************************************** */
.mwd-beer-teaser__wrapper {
    height: 0;
}

.mwd-beer-teaser {
    position: fixed;
    bottom: 0px;
    right: 10px;
    width: 110px;
    max-width: 110px;
    height: 160px;
    z-index: 99;
}

@media(min-width: 768px) {
    .mwd-beer-teaser {
        position: fixed;
        bottom: 50px;
        right: 10px;
        width: 150px;
        max-width: 150px;
        height: 200px;
        z-index: 99;
    }
}

.mwd-beer-teaser img {
    display: block;
}

.mwd-beer-teaser__background {
    position: absolute;
}

.mwd-beer-teaser__beer {
    position: absolute;
    width: 30px;
}

@media(min-width: 768px) {
    .mwd-beer-teaser__beer {
        position: absolute;
        width: 48px;
    }
}

.mwd-beer-teaser__beer--left {
    animation: mwd-slide-top-right 1.85s cubic-bezier(0.250, 0.460, 0.450, 0.940) infinite;
}

.mwd-beer-teaser__beer--right {
    animation: mwd-slide-top-left 1.85s cubic-bezier(0.250, 0.460, 0.450, 0.940) infinite;
}

:root {
    --mwd-slide-top-right-x-start: 21px;
    --mwd-slide-top-right-y-start: 30px;
    --mwd-slide-top-right-x-end: 29px;
    --mwd-slide-top-right-y-end: 23px;

    --mwd-slide-top-left-x-start: 60px;
    --mwd-slide-top-left-y-start: 20px;
    --mwd-slide-top-left-x-end: 50px;
    --mwd-slide-top-left-y-end: 18px;
}

@media(min-width: 768px) {
    :root {
        --mwd-slide-top-right-x-start: 20px;
        --mwd-slide-top-right-y-start: 38px;
        --mwd-slide-top-right-x-end: 34px;
        --mwd-slide-top-right-y-end: 28px;

        --mwd-slide-top-left-x-start: 82px;
        --mwd-slide-top-left-y-start: 33px;
        --mwd-slide-top-left-x-end: 68px;
        --mwd-slide-top-left-y-end: 23px;
    }
}

@keyframes mwd-slide-top-right {
    0% {
        transform: translateX(var(--mwd-slide-top-right-x-start)) translateY(var(--mwd-slide-top-right-y-start)) scale(0.85);
    }

    50% {
        transform: translateX(var(--mwd-slide-top-right-x-end)) translateY(var(--mwd-slide-top-right-y-end)) scale(1);
    }

    100% {
        transform: translateX(var(--mwd-slide-top-right-x-start)) translateY(var(--mwd-slide-top-right-y-start)) scale(0.85);
    }
}

@keyframes mwd-slide-top-left {
    0% {
        transform: translateX(var(--mwd-slide-top-left-x-start)) translateY(var(--mwd-slide-top-left-y-start)) scale(0.85);
    }

    50% {
        transform: translateX(var(--mwd-slide-top-left-x-end)) translateY(var(--mwd-slide-top-left-y-end)) scale(1);
    }

    100% {
        transform: translateX(var(--mwd-slide-top-left-x-start)) translateY(var(--mwd-slide-top-left-y-start)) scale(0.85);
    }
}

.mwd-beer-teaser {
    display: none!important;
}

/* DSGVO Video overlay anpassungen */
.mwd-dsgvo-video-connection-overlay p {
    font-size: 0.6rem;
    line-height: 0.75rem;
    margin-bottom: 0;
    color: #fff;
}

.mwd-dsgvo-video-connection-overlay .confirm {
    padding: 3px 6px;
    margin-top: 12px;
}

/* Checkout Validation - Hide Data Protection Field */
.woocommerce-error li[data-id="billing_data_protection_checkbox"]{
    display: none!important;
}

/* Media query for positioning on checkout page  */

@media screen AND (max-width: 1024px) {
    .e-checkout__column-end {
        order: -1;
    }
}

/* abgeschnitte Order Buttons verhindern */
button[name="add-to-cart"]{
    width: auto!important;
}

@media(max-width: 767px){
    .cart_item .product-name,
    .cart_item .product-total {
        display: block;
    }
}

/* Verschlagwortet mit: */
.type-post .page-content .post-tags{
    display: none;
}

/* FriendlyCaptcha */
.elementor-field-type-frcaptcha{
    max-width: 350px;
}

/* Donation Funktionalität auf Checkout wenn Mitgliedschaft */

#donation_form {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.woocommerce h3.donation_form_headline {
    font-family: "Arial", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 0.5rem;
}

.donation_form_input {
    max-width: 200px;
}

.donation_form_button {
    max-width: 195px;
    margin-left: 10px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}