/*!
Theme Name: Kava Child
Theme URI:
Author: Zemez
Author URI:
Description: Kava child theme.
Template: kava
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kava-child
*/


/* My Account > Hinweisleiste: Button-Breite korrigieren */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-info > a.woocommerce-Button.wc-forward.button {
  width: auto !important;          /* killt die 90px */
  display: inline-flex !important;  /* passt sich dem Inhalt an */
  align-items: center !important;
  white-space: nowrap !important;   /* kein Zeilenumbruch im Button-Text */
}


.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-info > a.woocommerce-Button.wc-forward.button {
  min-width: 0 !important;
  max-width: none !important;
}

/* Fix für Buttons in WooCommerce MyAccount Info-Boxen */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-info > .button,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-info > .jet-compare-button__link,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-info > .jet-wishlist-button__link {
  width: auto !important;         /* überschreibt width: 90px */
  min-width: 0 !important;
  max-width: none !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}


.password-input .show-password-input::before {
  	content: "Passwort anzeigen"; /* Auge */
  	font-size: 8px;
}

.password-input .show-password-input.display-password::before {
  content: "Passwort verbergen"; /* durchgestrichenes Auge / anderes Symbol */
	font-size: 8px;
}




/* Verhindert, dass volle Container den Viewport sprengen */
.e-con-full {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* JetBlocks Cart: im Tablet-View begrenzen */
.jet-blocks-cart {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Bilder in Elementor niemals größer als der Container */
.elementor img {
  max-width: 100% !important;
  height: auto !important;
}

/* Transformierte Bilder: Skalierung überschreibt oft den Container */
.elementor-element-5a4f924 img {
  transform: none !important; /* oder testweise auf 1.0 setzen */
  max-width: 100% !important;
}


html, body {
  overflow-x: hidden;
}


/* WPForms Submit Button im Elementor-Stil */
.wpforms-submit,
.wpforms-form button[type="submit"] {
    background-color: var(--e-global-color-text) !important;
    font-family: "Source Sans Pro", Sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #fff !important;/* Falls dein Standard-Button weißen Text hat */
    border: none !important;
    border-radius: 4px !important; /* Anpassen, falls dein Standard-Button abgerundet ist */
    padding: 10px 20px !important; /* Ggf. anpassen, um gleiches Buttonmaß zu erreichen */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* Hover-Zustand wie beim Elementor-Button */
.wpforms-submit:hover,
.wpforms-form button[type="submit"]:hover {
    background-color: #5A5A5A !important;
}



/* Warenkorb CSS */
body.woocommerce-cart main#main {
    min-height: 65vh;
    display: block;
}


body.woocommerce-cart small.includes_tax .woocommerce-Price-amount,
body.woocommerce-cart small.includes_tax .woocommerce-Price-amount bdi,
body.woocommerce-cart small.includes_tax .woocommerce-Price-currencySymbol {
    font-weight: normal !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

body.woocommerce-cart td[data-title="Gesamtsumme"] small.includes_tax {
    display: block;
    margin-top: 4px;
    font-size: 0.9em;
}


body.woocommerce-cart .shipping_method {
    margin-right: 4px; 
}

body.woocommerce-cart p.woocommerce-shipping-destination {
    padding-top: 8px;
}

body.woocommerce-cart tr.order-total {
    padding-top: 8px;     /* Padding für moderne Browser */
}

body.woocommerce-cart tr.order-total > th,
body.woocommerce-cart tr.order-total > td {
    padding-top: 8px;     /* notwendig für Tabellenzellen */
}


/* Nur auf der Cart-Seite, nur für Versandmethoden */
body.woocommerce-cart ul.woocommerce-shipping-methods li {
    display: flex !important;
    align-items: flex-start;         /* Radio bleibt oben links */
}

body.woocommerce-cart ul.woocommerce-shipping-methods li input.shipping_method {
    flex: 0 0 auto;
    margin-top: 2px;                 /* optisch mittig */
}

body.woocommerce-cart ul.woocommerce-shipping-methods li label {
    white-space: normal !important;  /* Text darf umbrechen */
    display: block;
}


/* Checkout CSS */

body.woocommerce-checkout #place_order {
    margin-bottom: 20px; /* oder jede gewünschte Höhe */
}

body.woocommerce-checkout small.includes_tax .woocommerce-Price-amount,
body.woocommerce-checkout small.includes_tax .woocommerce-Price-amount bdi,
body.woocommerce-checkout small.includes_tax .woocommerce-Price-currencySymbol {
    font-weight: normal !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

body.woocommerce-checkout td[data-title="Gesamtsumme"] small.includes_tax {
    display: block;
    margin-top: 4px;
    font-size: 0.9em;
}

body.woocommerce-checkout ul.woocommerce-shipping-methods li {
    display: flex !important;
    align-items: flex-start;         /* Radio bleibt oben links */
}

body.woocommerce-checkout ul.woocommerce-shipping-methods li input.shipping_method {
    flex: 0 0 auto;
    margin-top: 2px;                 /* optisch mittig */
}

body.woocommerce-checkout ul.woocommerce-shipping-methods li label {
    white-space: normal !important;  /* Text darf umbrechen */
    display: block;
	margin-left: 4px;
}

.woocommerce-checkout .woocommerce-checkout-review-order table .amount {
    font-size: 14px !important;
    line-height: 1;
}


/* Nur auf der Checkout-Seite */
body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
    width: 50% !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total {
    width: 50% !important;
    text-align: left; /* optional – falls du die Zahl sauber rechts willst */
}


label.checkbox input[type="checkbox"]+span::before, label.inline input[type="checkbox"]+span::before {
    border: 1px solid #000000 !important;
}

label.checkbox.woocommerce-form__label, label.inline.woocommerce-form__label {
    color: #000000 !important;
}


.woocommerce-cart table tr td.actions {
    background-color: rgba(20, 20, 19, 0) !important;
}


@media (min-width: 640px) {
    .woocommerce-cart table.cart tr td.actions>.button, .woocommerce-cart table.cart tr .jet-compare-button__container td.actions>.jet-compare-button__link, .jet-compare-button__container .woocommerce-cart table.cart tr td.actions>.jet-compare-button__link, .woocommerce-cart table.cart tr .jet-wishlist-button__container td.actions>.jet-wishlist-button__link, .jet-wishlist-button__container .woocommerce-cart table.cart tr td.actions>.jet-wishlist-button__link {
        float: left !important;
        margin-top: 0;
    }
}


.hide-when-empty {
    display: none;
}
