/*
 Theme Name:     Divi Child Theme
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Sophia Ruppel
 Author URI:     https://sophiaruppel.de
 Template:       Divi
 Version:        1.0.0
*/
 
/*-------------------[Starte hier mit eigenem CSS]--------------------*/

/* ===== CHECKOUT Bestellübersicht ===== */
.woocommerce-checkout-review-order-table tr.cart_item td.product-name {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    flex: 1;
}

.woocommerce-checkout-review-order-table tr.cart_item td.product-name img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
}

.woocommerce-checkout-review-order-table tr.cart_item td.product-total {
    flex-shrink: 0;
    font-weight: bold;
    white-space: nowrap;
    align-self: center;
}

.woocommerce-checkout-review-order-table td.product-total {
    text-align: right !important;
}

.woocommerce-checkout-review-order-table tfoot td {
    text-align: right !important;
}

/* Gesamtsumme größer */
.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total td {
    font-size: 24px !important;
    font-weight: bold !important;
}

/* MwSt. kleiner und nicht fett */
.woocommerce-checkout-review-order-table tr.order-tax th,
.woocommerce-checkout-review-order-table tr.order-tax td {
    font-size: 15px !important;
    font-weight: normal !important;
}

/* ===== WARENKORB Produktkarten ===== */
.et_pb_wc_cart_products table.shop_table,
.et_pb_wc_cart_products table.shop_table thead,
.et_pb_wc_cart_products table.shop_table tbody {
    display: block !important;
    border: none !important;
}
.et_pb_wc_cart_products table.shop_table thead {
    display: none !important;
}
.et_pb_wc_cart_products table.shop_table tbody tr.cart_item {
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
    width: 100%;
}
.et_pb_wc_cart_products table.shop_table tbody tr.cart_item td {
    display: flex !important;
    align-items: center !important;
    border: none !important;
    box-sizing: border-box;
}
.et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-remove {
    flex: 0 0 40px !important;
    max-width: 40px !important;
    justify-content: center;
}
.et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-thumbnail {
    flex: 0 0 100px !important;
    max-width: 100px !important;
    height: 100px !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-thumbnail img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    display: block !important;
}
.et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-name {
    flex: 1 !important;
    padding: 0 12px !important;
}
.et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-price {
    flex: 0 0 100px !important;
    max-width: 100px !important;
}
.et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-quantity {
    flex: 0 0 80px !important;
    max-width: 80px !important;
}
.et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-subtotal {
    flex: 0 0 100px !important;
    max-width: 100px !important;
    font-weight: bold !important;
    justify-content: flex-end;
}
/* ===== WARENKORB Mengenfeld ===== */
.woocommerce-cart-form .quantity .qty {
    border: 1px solid #cccccc !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    text-align: center !important;
    font-size: 15px !important;
    width: 60px !important;
    cursor: pointer !important;
}

.woocommerce-cart-form .quantity .qty:focus {
    border-color: #6e9278 !important;
    outline: none !important;
}

/* ===== WARENKORB Aktualisieren Button ===== */
button[name="update_cart"]:disabled {
    display: none !important;
}

/* ===== KASSE Checkboxen ===== */
.woocommerce form .form-row.checkbox-data-download label,
.woocommerce form .form-row.checkbox-legal label,
.woocommerce-checkout .wc-gzd-checkbox-placeholder p.legal label {
    line-height: 1.1 !important;
    font-size: 15px !important;
}

.woocommerce-checkout .wc-gzd-checkbox-placeholder p.legal {
    line-height: 1.1 !important;
}

.woocommerce form .form-row.checkbox-zustimmung_vorzeitiger_beginn_der_vertragserfuellung label,
.woocommerce form .form-row.checkbox-verzicht_widerrufsrecht label,
.woocommerce-checkout .wc-gzd-checkbox-placeholder-zustimmung_vorzeitiger_beginn_der_vertragserfuellung p.legal label,
.woocommerce-checkout .wc-gzd-checkbox-placeholder-verzicht_widerrufsrecht p.legal label {
    line-height: 1.1 !important;
    font-size: 15px !important;
}

.woocommerce-checkout .wc-gzd-checkbox-placeholder-zustimmung_vorzeitiger_beginn_der_vertragserfuellung p.legal,
.woocommerce-checkout .wc-gzd-checkbox-placeholder-verzicht_widerrufsrecht p.legal {
    line-height: 1.1 !important;
}

.wc-gzd-checkbox-placeholder-zustimmung_vorzeitiger_beginn_der_vertragserfuellung p,
.wc-gzd-checkbox-placeholder-verzicht_widerrufsrecht p {
    line-height: 1.1 !important;
}

.et_pb_wc_checkout_payment_info form .form-row {
    margin: 1em 0 0;
}

/* Gutschein Eingabefeld */
.woocommerce-form-coupon #coupon_code {
    border-radius: 10px !important;
    border: 1px solid #e2e9e4 !important;
    padding: 12px 16px !important;
    background: #ffffff !important;
    font-size: 15px !important;
    height: auto !important;
}

.woocommerce form.checkout_coupon {
    border: none !important;
    box-shadow: none !important;
}
.woocommerce form.checkout_coupon {
    padding: 10px 0 0 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout ul.woocommerce-error {
    background-color: #FCEEE9 !important;
    color: #666666 !important;
    border: none !important;
}

.woocommerce-checkout ul.woocommerce-error li a {
    color: #666666 !important;
}

/* Hinweis-Box in der Kasse ausblenden */
.woocommerce-checkout .woocommerce-NoticeGroup-checkout {
    display: none !important;
}

.woocommerce-checkout .woocommerce-message {
    display: none !important;
}


.et_pb_menu__icon__with_count {
    position: relative !important;
}
.et_pb_menu__cart-count {
    position: absolute !important;
    top: 50% !important;
    right: 4px !important;
    transform: translate(50%, -140%) !important;
    background-color: #6e9278 !important;
    color: #fff !important;
    border-radius: 50% !important;
    min-width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    padding: 0 !important;
}

/* ===== TOAST-Benachrichtigungen (Warenkorb hinzugefügt/entfernt) ===== */
body:not(.woocommerce-checkout) .woocommerce-message:not(.cart-empty),
body:not(.woocommerce-checkout) .woocommerce-error:not(.cart-empty),
body:not(.woocommerce-checkout) .woocommerce-info:not(.cart-empty) {
    position: fixed !important;
    top: 130px !important;
    left: 50% !important;
    right: auto !important;
    max-width: 380px !important;
    z-index: 99999 !important;
    background: #FCEEE9 !important;
    color: #666666 !important;
    border-radius: 10px !important;
    border: 1px solid #F2AA92;
    padding: 14px 20px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15) !important;
    opacity: 1;
    transform: translate(-50%, 0) !important;
    transition: opacity .4s ease, transform .4s ease;
    margin: 0 !important;
}
body:not(.woocommerce-checkout) .woocommerce-message.wc-toast-hide,
body:not(.woocommerce-checkout) .woocommerce-error.wc-toast-hide,
body:not(.woocommerce-checkout) .woocommerce-info.wc-toast-hide {
    opacity: 0 !important;
    transform: translate(-50%, -10px) !important;
}
/* Der goldene Button (z.B. "WARENKORB ANZEIGEN") */
body:not(.woocommerce-checkout) .woocommerce-message a.button.wc-forward,
body:not(.woocommerce-checkout) .woocommerce-error a.button.wc-forward,
body:not(.woocommerce-checkout) .woocommerce-info a.button.wc-forward {
    display: block !important;
    margin-top: 12px !important;
    color: #fff !important;
    text-decoration: underline !important;
    width: fit-content;
}

/* Der "Rückgängig machen?"-Link beim Entfernen */
body:not(.woocommerce-checkout) .woocommerce-message a.restore-item,
body:not(.woocommerce-checkout) .woocommerce-error a.restore-item,
body:not(.woocommerce-checkout) .woocommerce-info a.restore-item {
    color: #666 !important;
    text-decoration: underline !important;
}

body:not(.woocommerce-checkout) .woocommerce-message a:hover,
body:not(.woocommerce-checkout) .woocommerce-error a:hover,
body:not(.woocommerce-checkout) .woocommerce-info a:hover {
    background-color: #b59343 !important;
    color: #fff !important;
}

/*
.wc-empty-cart-custom {
    text-align: center;
    padding: 40px 20px;
}

.et_pb_wc_cart_products.et_pb_wc_cart_empty:has(.wc-empty-cart-custom) {
    display: block !important;
}

.wc-empty-cart-text {
    font-size: 20px !important;
    color: #666 !important;
    margin-bottom: 20px !important;
}
.wc-empty-cart-button {
    display: inline-block;
    background: #6e9278 !important;
    color: #fff !important;
    padding: 14px 32px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: bold !important;
}
.wc-empty-cart-button:hover {
    background: #5a7a63 !important;
}
*/

/* Warenkorb ist leer-Status stylen */
.woocommerce-info.cart-empty {
    background: #faf7ee !important;
    color: #666 !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 20px 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}
.woocommerce-info.cart-empty a.wc-empty-cart-button {
    display: inline-block !important;
    background: #6e9278 !important;
    color: #fff !important;
    padding: 12px 28px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    white-space: nowrap;
}
.woocommerce-info.cart-empty a.wc-empty-cart-button:hover {
    background: #5a7a63 !important;
}
.et_pb_wc_cart_notice_0_tb_body a.button.wc-backward {
    background: #C9A34A !important;
    color: #fff !important;
    border-radius: 30px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    display: inline-block !important;
    border: none !important;
}
.et_pb_wc_cart_notice_0_tb_body a.button.wc-backward:hover {
    background: #b59343 !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
    font-size: 16px !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
    color: #c9a34a !important;
	text-decoration: underline !important;
    font-weight: bold !important;
}

.woocommerce-checkout .woocommerce-invalid .woocommerce-form__label-for-checkbox,
.woocommerce-checkout .woocommerce-invalid .woocommerce-form__label-for-checkbox .woocommerce-gzd-legal-checkbox-text,
.woocommerce-checkout .woocommerce-invalid .woocommerce-form__label-for-checkbox .required {
    color: #666 !important;
}
.woocommerce-gzd-legal-checkbox-text a {
	color: #6e9278 !important;
	text-decoration: underline !important;
}

/* ===== "Bestellung bezahlen"-Seite (order-pay) ===== */
.woocommerce-order-pay table.shop_table {
    background: #faf7ee !important;
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100%;
}
.woocommerce-order-pay table.shop_table th,
.woocommerce-order-pay table.shop_table td {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    padding: 14px 16px !important;
}
.woocommerce-order-pay table.shop_table tfoot tr:last-child th,
.woocommerce-order-pay table.shop_table tfoot tr:last-child td {
    border-bottom: none !important;
}
/* Gesamtsumme größer, wie beim normalen Checkout */
.woocommerce-order-pay table.shop_table tr.order-total th,
.woocommerce-order-pay table.shop_table tr.order-total td {
    font-size: 22px !important;
    font-weight: bold !important;
}
/* MwSt.-Zeile kleiner, wie beim normalen Checkout */
.woocommerce-order-pay table.shop_table tr.order-tax th,
.woocommerce-order-pay table.shop_table tr.order-tax td {
    font-size: 15px !important;
    font-weight: normal !important;
}

/* ===== Danke-Seite (order-received) ===== */
.woocommerce-order-received .custom-thankyou-message {
    background: #faf7ee;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 30px;
}
.woocommerce-order-received .custom-thankyou-message p {
    margin: 0 0 12px;
    color: #666;
    line-height: 1.6;
}
.woocommerce-order-received .custom-thankyou-message .thankyou-heading {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}
.woocommerce-order-received .custom-thankyou-message .thankyou-signoff {
    margin-bottom: 0;
    font-style: italic;
}

.woocommerce-order-received table.shop_table {
    background: #faf7ee !important;
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100%;
}
.woocommerce-order-received table.shop_table th,
.woocommerce-order-received table.shop_table td {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    padding: 14px 16px !important;
}
.woocommerce-order-received table.shop_table tr:last-child th,
.woocommerce-order-received table.shop_table tr:last-child td {
    border-bottom: none !important;
}
.woocommerce-order-received .woocommerce-customer-details address {
    background: #faf7ee !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

.widerrufsrecht-hinweis p {
    font-size: 15px !important;
    line-height: 1.1 !important;
    color: #666 !important;
    margin: 16px 0 !important;
}

.widerrufsrecht-hinweis a {
    color: #6e9278 !important;
    text-decoration: underline !important;
}

.woocommerce-checkout-payment {
	margin-top: 15px;
} 

/* ===== Danke-Seite: "Vielen Dank"-Überschrift ===== */
.woocommerce-order-received .woocommerce-notice--success.woocommerce-thankyou-order-received {
    font-size: 30px !important;
    font-weight: 600 !important;
    color: #4d4d4d !important;
    margin-bottom: 24px !important;
}

/* ===== Danke-Seite: Bestellübersicht ===== */
.woocommerce-order-received ul.woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 24px !important;
    background: none !important;
    padding: 0 0 24px !important;
    margin: 0 0 20px !important;
    list-style: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}
.woocommerce-order-received ul.woocommerce-order-overview li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #999 !important;
}
.woocommerce-order-received ul.woocommerce-order-overview li strong {
    display: block !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: #333 !important;
    margin-top: 4px !important;
}

.woocommerce-order-received ul.woocommerce-order-overview::before,
.woocommerce-order-received ul.woocommerce-order-overview::after {
    content: none !important;
    display: none !important;
}

/* ===== Danke-Seite: "Herzlich willkommen"-Text ===== */
.woocommerce-order-received .custom-thankyou-message .thankyou-heading {
    font-size: 26px !important;
}

/* ===== Danke-Seite: "Bestelldetails" & "Rechnungsadresse"-Überschriften ===== */
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
    font-size: 22px !important;
    font-weight: bold !important;
}

/* ===== Danke-Seite: Bestelldetails-Tabelle & Rechnungsadresse (neue Hintergrundfarbe) ===== */
.woocommerce-order-received table.shop_table,
.woocommerce-order-received .woocommerce-customer-details address {
    background: #fefdfa !important;
}

/* ===== WARENKORB mobil ===== */
@media (max-width: 768px) {
    /* WooCommerce-Beschriftungen ("Produkt:", "Preis:" usw.) ausblenden */
    .et_pb_wc_cart_products table.shop_table tbody tr.cart_item td::before {
        content: none !important;
        display: none !important;
    }
    .et_pb_wc_cart_products table.shop_table tbody tr.cart_item {
        display: grid !important;
        grid-template-columns: 80px 1fr auto !important;
        grid-template-areas:
            "thumb name remove"
            "thumb qty subtotal" !important;
        column-gap: 14px !important;
        row-gap: 8px !important;
        align-items: center !important;
        padding: 14px !important;
    }
    .et_pb_wc_cart_products table.shop_table tbody tr.cart_item td {
        display: block !important;
        flex: none !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        padding: 0 !important;
        text-align: left !important;
        border: none !important;
    }
    .et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-thumbnail {
        grid-area: thumb;
    }
    .et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-thumbnail img {
        width: 80px !important;
        height: 80px !important;
        border-radius: 8px !important;
    }
    .et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-name {
        grid-area: name;
        font-size: 16px !important;
        line-height: 1.3 !important;
    }
    .et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-remove {
        grid-area: remove;
        align-self: start !important;
        justify-self: end !important;
    }
    .et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-quantity {
        grid-area: qty;
    }
    .et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-subtotal {
        grid-area: subtotal;
        justify-self: end !important;
        text-align: right !important;
    }
    /* Einzelpreis mobil ausblenden (die Summe reicht) */
    .et_pb_wc_cart_products table.shop_table tbody tr.cart_item td.product-price {
        display: none !important;
    }
}