/*======================================
Theme Name: WordPress Child Theme Atomion
Theme URI: https://marketpress.de
Description: Das Atomion Child Theme
Version: 1.2.0
Author: MarketPress
Author URI: https://marketpress.de
Template: wordpress-theme-atomion
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
======================================*/


/* ===========================================
   1. NAVIGATION & HEADER
   =========================================== */

#desktop-navigation #primary-menu .atomion-simple-menu li:hover .menu-level-1 {
    overflow-y: scroll;
    max-height: 60vh;
}

header #mobile-navigation .main-nav-item,
header #mobile-navigation .mobile-cart .atomion-mini-cart-widget {
    z-index: 9999;
}

header #desktop-navigation .atomion-mega-menu.sub-menu-wrap,
header #desktop-navigation .desktop-cart .atomion-mini-cart-widget {
    z-index: 9999 !important;
}

header#header.sticky-active,
header#header:has(.sticky) {
    contain: none;
}


/* ===========================================
   2. PRODUKTSEITE (PDP)
   =========================================== */

.woocommerce div.product p.stock {
    margin-top: -1em;
    color: #7a9c59 !important;
    font-size: 15px;
}

.product_meta {
    display: none !important;
}

.single-product .produktabbildung-kann-abweichen p {
    margin-top: 0;
}

.produktabbildung-kann-abweichen {
    font-size: .8em;
}

.single-product .wgm-info.woocommerce-de_price_taxrate {
    margin-left: 2px;
}

.single-product .wgm-info.shipping_de > small > span {
    color: #7a9c59 !important;
    font-size: 15px;
}

.trustedShopsWidget {
    font-size: 0.8em;
    margin-bottom: 1em;
    margin-top: 0.2em;
}

.date-on-sale-to {
    color: #e84948 !important;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
}

.single-product span.gm_fic_nutritional_values_remark {
    text-align: left;
}


/* ===========================================
   3. PRODUKTLISTE / GRID
   =========================================== */

.woocommerce ul.products li.product .product-image-wrapper a.add_to_cart_button,
a.button.wp-element-button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    background: #a02065 !important;
}

.wp-block-woocommerce-handpicked-products .site-product-meta .atomion-woocommerce-product-category {
    display: none;
}

.bm-cheapest-bulk {
    color: #e84948 !important;
}

.dd-selected {
    margin-top: 3em;
}


/* ===========================================
   4. GERMAN MARKET / WGM INFO
   =========================================== */

.wgm-info.woocommerce-de_price_taxrate,
.wgm-info.woocommerce_de_versandkosten,
.wgm-info.price-per-unit.price-per-unit-loop.ppu-variation-wrap,
.wgm-info.fic-alcohol {
    font-size: .8em;
    color: #929292;
    margin-top: -0.5em;
}

.wgm-info.fic-alcohol {
    margin-left: 3px;
}

.wgm-info.shipping_de {
    display: none;
}

.wgm-info.wgm-shipping-free,
.wgm-info.wgm-shipping-free small {
    color: #929292 !important;
}

.wgm-info.wgm-shipping-free small {
    font-weight: 600;
    color: #7a9c59 !important;
}

.wgm-info.woocommerce_de_versandkosten a.versandkosten {
    color: #929292;
}

@media (max-width: 768px) {
    .woocommerce div.product p.price {
        margin-right: 6px;
    }
}


/* ===========================================
   5. STAFFELPREISE (B2B Market)
   =========================================== */

table.bm-bulk-table {
    font-size: 10pt;
    width: auto;
}

table.bm-bulk-table thead td {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 9pt;
}

table.bm-bulk-table td {
    padding: 0.1em 0.1em;
}


/* ===========================================
   6. WARENKORB
   =========================================== */

@media (max-width: 768px) {
    .woocommerce-cart .woocommerce-message::before,
    .woocommerce-cart .woocommerce-info::before {
        display: none !important;
    }

    .woocommerce-cart .woocommerce-message:not([data-salesman-notice]) {
        padding: 6px 10px !important;
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    .woocommerce-cart .woocommerce-message[data-salesman-notice] {
        padding: 8px 10px !important;
        margin-bottom: 8px !important;
    }

    .woocommerce-cart .product-thumbnail {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-cart .product-thumbnail img {
        max-width: 150px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .woocommerce-cart .product-remove {
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        float: none !important;
        position: relative !important;
        top: 0 !important;
    }

    .woocommerce-cart .product-remove a {
        position: relative !important;
        top: 0 !important;
        float: none !important;
    }

    .woocommerce-cart .shop_table td {
        padding: 8px 5px !important;
    }

    .woocommerce-cart .entry-title {
        font-size: 1.3em !important;
        margin-bottom: 10px !important;
    }

    .woocommerce-cart .wc-proceed-to-checkout {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        padding: 10px 15px !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        z-index: 9999 !important;
        margin: 0 !important;
    }

    .woocommerce-cart .cart-collaterals {
        padding-bottom: 80px !important;
    }

    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button.wc-forward {
        width: 100%;
    }
}


/* ===========================================
   7. CHECKOUT
   =========================================== */

.woocommerce-form-coupon-toggle {
    display: none !important;
}

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
    padding: 0;
    background: transparent;
    border: none;
}

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info:before {
    display: none;
}

.woocommerce-checkout .cart_item .product-name small {
    display: none;
}

.woocommerce-error li {
    color: #b81c23;
}

.german-market-product-image.checkout {
    float: left;
    margin-right: 10px;
    width: 100px;
}

#order_comments {
    display: none;
}

#billing_vat_id_field {
    display: none !important;
}

.progress-style-1 .current {
    border-color: #6FB34E;
}

@media (max-width: 600px) {
    #atomion-order-progress .progress-step {
        width: 32% !important;
    }
}

label .mollie-gateway-icon {
    float: inherit;
}

.about_paypal {
    display: none !important;
}


/* ===========================================
   8. CHECKOUT: ABILITA PAYMENT
   =========================================== */

.abilitaPaymentIcon {
    max-height: 40px !important;
    width: 80px;
    height: auto;
}

#billing_title,
.abilitaBirthday,
.abilitaBirthmonth,
.abilitaBirthyear {
    display: inline-block !important;
    text-transform: none !important;
    background-color: var(--wc-form-color-background, #fff) !important;
    border: var(--wc-form-border-width) solid var(--wc-form-border-color) !important;
    border-radius: var(--wc-form-border-radius) !important;
    color: var(--wc-form-color-text, #000) !important;
    margin-right: 1px !important;
    width: 10% !important;
}

#billing_title {
    width: 50% !important;
}

.abilitaBirthdayLabel,
.abilitaSepaAccountHolderLabel,
.abilitaSepaIbanLabel,
.abilitaSepaBicSwiftLabel {
    font-weight: bold !important;
}

.abilitaLegalLegitimacyTitle {
    font-weight: bold !important;
}

.abilitaLegalLegitimacy {
    font-weight: normal !important;
}


/* ===========================================
   9. BEWERTUNGEN
   =========================================== */

.german-market-legal-information-for-product-reviews {
    margin-bottom: 2em;
}

.comment-reply-title {
    margin-top: -3em;
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
    width: 35px;
    position: relative;
    float: left;
    border: 0;
    padding: 0;
}

.woocommerce-review__published-time {
    display: none !important;
}


/* ===========================================
   10. WAITLIST
   =========================================== */

.xoo-wl-submit {
    background-color: #a02065;
    padding: 12px 8px;
    color: white;
    font-weight: 400;
    font-size: 16px;
    border: 2px solid #a02065;
    border-radius: 1px;
}


/* ===========================================
   11. TOOLTIPS
   =========================================== */

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 320px;
    background-color: #d3d3d3;
    color: #fff;
    text-align: left;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 40%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


/* ===========================================
   12. PAGINATION
   =========================================== */

#main ul.page-numbers {
    width: 100%;
    float: left;
    text-align: center;
}

div#footer-action-bar {
    display: none;
}


/* ===========================================
   13. GUTENBERG BLOCKS & BILDER
   =========================================== */

.wp-block-image figcaption {
    margin-top: -8px;
    background: #fff;
    text-align: left;
    padding: 1em 2em;
    font-weight: 200;
    color: #d1d1d1;
}

.wp-block-button__link {
    background-color: #a02065;
    padding: 12px 8px;
    color: white;
    font-weight: 400;
    font-size: 16px;
    border: 2px solid #a02065;
    border-radius: 5px;
}

.anchor {
    visibility: hidden;
    height: 0 !important;
    position: absolute;
    margin: -150px;
}


/* ===========================================
   14. STARTSEITE LAYOUT
   =========================================== */

.button-1 a {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: all .5s ease;
}

.button-1 a:hover {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: #a02065 !important;
}

@media (min-width: 768px) {
    .kb-row-layout-wrap.kb-row-layout-id653_e0b480-b5.alignnone.wp-block-kadence-rowlayout {
        margin-top: -2.5em;
    }

    .wp-block-kadence-column.kadence-column653_70bb71-c2 {
        margin-top: -1.7em;
    }
}

@media (max-width: 767px) {
    .kb-row-layout-wrap.kb-row-layout-id653_e0b480-b5.alignnone.wp-block-kadence-rowlayout {
        margin-top: -1.8em;
    }

    .wp-block-kadence-column.kadence-column653_70bb71-c2 {
        margin-top: -0.7em;
    }
}


/* ===========================================
   15. SALE FLAG
   =========================================== */

.onsale {
    background-color: #a02065 !important;
    color: #fff !important;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1 !important;
    padding: 0 !important;
}


/* ===========================================
   16. FOOTER
   =========================================== */

.menu-kategorien-container,
.menu-footer-main-information-container,
.custom-html-widget {
    font-size: 1.1em;
    margin-bottom: 0.8em;
    margin-top: 0.2em;
}


/* ===========================================
   17. SUCHFELD
   =========================================== */

.dgwt-wcas-preloader {
    right: 56px !important;
}


/* ===========================================
   18. FIBOFILTERS MOBILE
   =========================================== */

@media (max-width: 799px) {
    .fibofilters-item--select input[role="combobox"] {
        font-size: 16px;
    }
}


/* ===========================================
   19. MOBILE PDP LAYOUT
   =========================================== */

@media (max-width: 768px) {
    .single-product #top-bar {
        display: none;
    }

    .single-product #atomion-breadcrumbs {
        display: none;
    }

    .single-product .entry-summary .legacy-itemprop-offers {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
    }

    .single-product .entry-summary .legacy-itemprop-offers .price {
        order: 1;
        width: auto;
    }

    .single-product .entry-summary .legacy-itemprop-offers .wgm-info.shipping_de_string {
        order: 2;
        margin-left: 0;
        width: calc(100% - 110px);
    }

    .single-product .entry-summary .legacy-itemprop-offers .wgm-info.shipping_de_string small span {
        font-size: 18px;
    }

    .single-product .entry-summary .legacy-itemprop-offers .wgm-info.price-per-unit {
        order: 3;
    }

    .single-product .entry-summary .legacy-itemprop-offers .wgm-info.woocommerce-de_price_taxrate {
        order: 4;
    }

    .single-product .entry-summary .legacy-itemprop-offers .wgm-info.woocommerce_de_versandkosten {
        order: 5;
    }

    .single-product .entry-summary .legacy-itemprop-offers .wgm-info.fic-alcohol {
        order: 6;
    }

    .single-product .entry-summary form.cart .quantity .qty {
        height: 4.4em;
    }

    .single-product .entry-summary form.cart button {
        font-size: 1.5em;
    }

    .single-product #atomion-summary-wrapper .woocommerce-product-details__short-description ul {
        margin-top: 1em;
    }

    .single-product #atomion-summary-wrapper .woocommerce-product-details__short-description ul li {
        margin: 0;
    }
}
