/* Qty-Wrapper: einheitliches Layout / Unified qty wrapper layout */
#top .cz-qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transform: translateY(5px);
    overflow: visible;
}

/* Mengenfeld deaktiviert / Qty field disabled */
#top .cz-qty-wrap.cz-qty-disabled {
    opacity: 0.5;
    pointer-events: none;
}
#top .cz-qty-wrap.cz-qty-disabled input:disabled {
    opacity: 1 !important;
}

/* Verschiebung wenn Hinweis vorhanden / Shift when notice visible */
@media (min-width: 769px) {
    #top form.cart:has(.cz-cart-qty-notice.is-visible) .cz-qty-wrap {
        transform: translateY(-5px);
    }
}

/* Unit-Label Wrapper / Unit label wrapper */
#top .cz-qty-input-wrap {
    display: inline-block;
    position: relative;
}

/* Unit-Label: feste Breite, linksbündig / Unit label: fixed width, left-aligned */
#top .cz-qty-unit-label {
    position: absolute;
    right: 5px;
    top: calc(50% + 1px);
    transform: translateY(-50%);
    width: 25px;
    text-align: left;
    font-size: 13px;
    font-weight: 400;
    color: #888;
    pointer-events: none;
}

/* Qty Input-Feld / Qty input field */
#top div .quantity input.qty,
#top .cz-qty-wrap input.qty {
    border-radius: 10px;
    width: 110px;
    min-width: 90px;
    text-align: right;
    padding-right: 35px;
}

/* Runde +/- Buttons / Round +/- buttons */
#top .main_color .quantity input.plus, #top .main_color .quantity input.minus,
#top div .quantity input.plus, #top div .quantity input.minus {
    width: 36px !important;
    min-width: 36px;
    height: 36px !important;
    border-radius: 50% !important;
    border: none !important;
    flex-shrink: 0;
    background: #10c955 !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: bold;
    line-height: 36px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}
#top div .quantity input.plus:hover:not(:disabled), #top div .quantity input.minus:hover:not(:disabled) {
    opacity: 0.9 !important;
    cursor: pointer !important;
}
#top div .quantity input.plus:disabled, #top div .quantity input.minus:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Warenkorb-Button / Cart button */
#top .summary .single_add_to_cart_button {
    transition: opacity 0.2s;
}
#top .summary .single_add_to_cart_button:hover:not(:disabled) {
    opacity: 0.9 !important;
    cursor: pointer !important;
}
#top .summary .single_add_to_cart_button:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Qty mittig zum Warenkorb-Button / Qty centered with cart button */
#top .summary form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
#top .summary form.cart .single_add_to_cart_button,
#top .summary form.cart .cz-cart-btn-wrap {
    flex: 1;
    min-width: 0;
}

/* Produktnamen umbrechen / Product name word wrap */
.shop_table .product-name,
.shop_table .product-name a {
    word-break: normal;
    overflow-wrap: break-word;
}

/* Warenkorb-Tabelle Qty / Cart table quantity */
table div.quantity {
    float: none;
    margin: 0 auto;
    width: auto;
    min-width: 150px;
}

/* Apotheke nicht verfügbar / Pharmacy not available */
#cannazen-pharmacy-message:not(:empty) {
    background: rgba(192, 57, 43, 0.08);
    padding: 5px 10px;
    border-radius: 6px;
    text-align: center;
    color: #c0392b;
    margin-top: -10px;
    font-size: 12px;
}

/* Button-Wrapper mit Hinweis darunter */
.cz-cart-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}
#top .summary form.cart .cz-cart-btn-wrap {
    flex: 1;
    min-width: 0;
}
.cz-cart-btn-wrap .single_add_to_cart_button {
    width: 100%;
}
.cz-cart-qty-notice {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin: -2px 0 0;
    display: none;
}
.cz-cart-qty-notice .cz-notice-name {
    color: #333;
}
.cz-cart-qty-notice.is-visible {
    display: block;
}

#cannazen_sorter ~ ul.products > li {
    margin: 0 !important;
}

/* debug
ul.products > li {
    border: 1px solid red;
}
*/
#top .av-product-class-minimal .inner_product_header {
    padding: 0 0 10px 0;
    margin-top: -20px;
}

.inner_product_header_cell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cannazen-product-info {
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    text-align: left;
}

.cannazen-product-info * {
    font-size: 12px !important;
}

.woocommerce-loop-product__title {
    text-align: left;
}

.cannazen-indication {
    font-size: 14px;
    padding: 15px;
    padding-bottom: 0;
}

.cannazen-indication ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-bottom: 0;
}

.more-products-wrapper {
    margin-top: 30px;
}

.cz-purchase-to-earn-points span {
    font-weight: bold;
}


/* Tabs */
.more-products-wrapper .woocommerce-tabs {
    margin: 50px auto;
    display: grid;
    grid-template-areas: "attributes description" "attributes reviews";
    grid-template-columns: 1fr 2fr;
    /*grid-template-rows: auto;*/
    column-gap: 25px;
    align-items: flex-start;
}

.woocommerce-Tabs-panel--cannazen_attributes {
    grid-area: attributes;
    margin-bottom: 20px;
}

.woocommerce-Tabs-panel--cannazen_description {
    grid-area: description;
}

.woocommerce-Tabs-panel--cannazen_reviews {
    grid-area: reviews;
}

.woocommerce-Reviews {
    display: flex;
    flex-direction: column;
}

#load-more-reviews {
    position: relative;
    width: auto;
    min-width: 300px;
    margin-bottom: 20px;
    padding: 15px 30px;
    background-color: #f3f3f3 !important;
    color: #000;
    font-size: 0.8rem;
}
#load-more-reviews .spinner {
    position: absolute;
    top: calc(50% - 8px);
    right: 10px;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: #bdbdbd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.more-products-wrapper ul.wc-tabs {
    display: none;
}

.more-products-wrapper .avia-progress-bar .progress {
    transform: scale(1);
}

.avia-progress-bar .bar {
    background: #6bc565!important;
}

/* Reviews */
.woocommerce-Tabs-panel--description,
.woocommerce-Tabs-panel--reviews {
    display: block !important;
    padding: 0 !important;
}

#comments .avatar {
    display: none;
}
#reply-title {
    display: block;
}
.entry-summary .woocommerce-product-rating {
    top: 0;
    cursor: pointer;
}
.sidebar_right .comment_container {
    padding-right: 0;
}
div #reviews #comments ol.commentlist li .comment-text{
    border-radius: 10px;
}
div #reviews #comments ol.commentlist li .comment-text{
    margin-left: 0 !important;
}
#reviews:before {
    content: "Bewertungen";
    display: block;
    font-weight: 600;
}
#respond .submit {
    border-radius: 10px;
    background-color: #10c956 !important;
    border-color: #10c956 !important;
    color: #fff !important;
    font-size: 16px;
}

.product-type-external .sku_wrapper {
    display: none;
}

.single-product .pzn_wrapper {
    width: 100%;
    max-width: 400px;
    display: block;
    line-height: 1.2;
    margin-top: 10px;
    font-size: 0.8rem;
}

.single-product .single-product-main-image {
    height: 450px;
}

div .star-rating, div #reviews #comments ol.commentlist li .comment-text .star-rating {
    background: url('../img/star@2x.png') repeat-x left 0 transparent;
    background-size: 16px 56px;
}

#top div .star-rating span, div #reviews #comments ol.commentlist li .comment-text .star-rating span {
    background: url('../img/star@2x.png') repeat-x left -21px transparent;
    background-size: 16px 56px;
}

/* infinite scroll */
.woocommerce-shop .pagination {
    display: none;
}

.loader {
    margin: 20px;
    display: flex;
    justify-content: center;
}

.loader svg path,
.loader svg rect {
    fill: #10c956;
}

.woocommerce-shop .thumbnail_container {
    height: 200px;
    display: flex;
    align-items: center;
}

.woocommerce-shop .zen-shop-featured-box .thumbnail_container {
    height: 190px;
}

.woocommerce-shop .thumbnail_container img {
    height: 100%;
    object-fit: cover;
}

/*.woocommerce-page #load-more-reviews.button {*/
/*    background-color: #efefef !important;*/
/*    color: #000;*/
/*    font-size: 0.8rem;*/
/*}*/

#top.woocommerce-shop #main li.product.search-result {
    border: 3px solid #f7f7f7;
    border-radius: 20px;
    min-height: 300px;
    width: calc(25% - 10px);
    margin: 5px!important;
}
.woocommerce-shop li.product.search-result::before {
    align-items: center;
    background-color: #10c956;
    border-radius: 50%;
    color: white;
    content: '\e803';
    font-family: 'entypo-fontello';
    font-size: 18px;
    height: 30px;
    display: flex;
    justify-content: center;
    margin: 10px;
    padding: 5px;
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    z-index: 1;
}

.product form.cart {
    display: flex;
}

.product form.cart .quantity {
    float: none;
    flex-shrink: 0;
}

.product form.cart input[type="submit"] {
    flex-grow: 1;
}

@media screen and (max-width: 900px) {
    .more-products-wrapper .woocommerce-tabs {
        padding: 15px;
        display: block;
    }

    .woocommerce-shop main {
        padding-top: 0;
    }

    .woocommerce-shop .thumbnail_container {
        height: 130px;
    }

    .woocommerce-shop .zen-shop-featured-box .thumbnail_container {
        height: fit-content;
    }

    #top .av-product-class-minimal .inner_product_header {
        margin-top: 0;
    }

    main.content, main.content:hover {
        z-index: inherit;
    }
}

/* @media screen and (max-width: 855px) {
    #top div.woocommerce-message a.button {
        margin-top: -30px;
    }
} */

/* when cart should be on the right
.html_visible_cart .zen-menu-icons {
    margin-right: 25px;
}
*/

/* fix logo width */
.responsive header .logo a {
    display: inline-block;
}

.woocommerce-mini-cart__buttons a.button {
    background-color: #10c956 !important;
    border-radius: 10px;
    color: #fff !important;
    height: 30px;
    line-height: 25px;
}

/* Cart icon */
.html_visible_cart .cart_dropdown {
    right: 5px!important;
}
.html_visible_cart .av-burger-menu-main {
    padding-right: 0;
}

.cart_dropdown:empty {
    border: none;
}

.cart_dropdown svg * {
    fill: #10c956;
}

/*mini cart */
#top .cart_dropdown .dropdown_widget {
    right: 0;
}

@media screen and (max-width: 900px) {
    .cart_dropdown {
        border: none;
        margin-right: 153px;
    }

    .cart_dropdown_link {
        background: transparent !important;
        margin-top: 5px;
    }

    .cart_dropdown:hover .dropdown_widget_cart {
        display: none!important;
        opacity: 0!important;
    }
}

.cz-modal {
    border: none;
    padding: 0;
    background: transparent;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
}

.cz-modal.showing {
    opacity: 1;
    transform: scale(1);
}

.cz-modal.closing {
    opacity: 0;
    transform: scale(0.98);
}

.cz-modal::backdrop {
    background: rgba(0,0,0,0.5);
}

.cz-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 450px;
    margin: 40px auto;
    text-align: center;
}

.cz-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.cz-buttons button {
    font-size: 1rem;
    flex: 1;
    padding: 15px;
    border-radius: 6px;
    border: none;
    color: black;
    cursor: pointer;
}

.cz-buttons .cz-ok {
    background: #10c956;
    color: white;
}

/* taxonomy page */
.cz-taxonomy-description {
    margin-bottom: 100px;
}

/* product page */
.product .product_title {
    padding-right: 125px;
}

.product .onsale {
    font-weight: bold;
}

.product ul.product-details__list {
    list-style: inherit;
    margin-left: 30px;
    font-size: 15px;
}

.cz-progressbar-unit {
    color: transparent;
    margin-right: 25px;
}

.cz-progressbar-unit span {
    color: #000!important;
}

.cz-progressbar-unit span:after {
    color: #000;
    position: absolute;
    margin-left: 2px;
}

.cz-progressbar-extract span:after {
    content: "mg/ml";
}

.cz-progressbar-edibles span:after {
    content: 'mg/St.';
}


/* WooCommerce Erfolgsmeldung / Success message */
#top div.woocommerce-message {
    border: 1px solid #10c955 !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
    border-radius: 10px !important;
    max-width: 800px;
    margin: 0 auto 20px !important;
    padding: 14px 20px !important;
    font-size: 14px;
    text-align: center;
    overflow: visible !important;
    position: relative !important;
    display: block !important;
}
#top div.woocommerce-message:focus {
    outline: none !important;
    box-shadow: none !important;
}
#top div.woocommerce-message::before {
    content: "\2713" !important;
    margin-right: 6px !important;
    font-weight: bold;
    color: #2e7d32 !important;
    position: static !important;
}
#top div.woocommerce-message a.button,
#top div div.woocommerce-message a.button {
    display: block !important;
    position: static !important;
    float: none !important;
    width: fit-content !important;
    min-width: 0 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    padding: 7px 10px !important;
    border-radius: 6px !important;
    background: #10c955 !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    white-space: nowrap;
    margin: 6px auto 0 !important;
    text-align: center;
}
#top div.woocommerce-message a.button:hover {
    opacity: 0.9;
    background: #0eb34d !important;
}

/* WooCommerce Fehlermeldung / Error message */
#top ul.woocommerce-error {
    border: 1px solid #cc3333 !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: #fdf0f0 !important;
    color: #cc3333 !important;
    border-radius: 10px !important;
    max-width: 800px;
    margin: 0 auto 20px !important;
    padding: 14px 20px !important;
    font-size: 14px;
    text-align: center;
    list-style: none !important;
    overflow: visible !important;
    position: relative !important;
}
#top ul.woocommerce-error:focus {
    outline: none !important;
    box-shadow: none !important;
}
#top ul.woocommerce-error::before {
    content: "\2717" !important;
    margin-right: 6px !important;
    font-weight: bold;
    color: #cc3333 !important;
    position: static !important;
}
#top ul.woocommerce-error li {
    display: inline;
}

.woocommerce-notices-wrapper {
    max-width: 800px;
    margin: 5px auto;
}

@media (max-width: 767px) {
    .responsive body.woocommerce-cart tr td.product-quantity .quantity {
        float: none;
        display: inline-flex;
        align-items: center;
    }
    .responsive body.woocommerce-cart tr td.product-quantity {
        text-align: right;
    }
    .shop_table .product-name,
    .shop_table .product-name a {
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    #top div .quantity input.qty,
    #top .cz-qty-wrap input.qty {
        width: 80px;
        min-width: 80px;
        padding-right: 35px;
    }
    #top .main_color .quantity input.plus, #top .main_color .quantity input.minus,
    #top div .quantity input.plus, #top div .quantity input.minus {
        width: 28px;
        min-width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {
    .responsive #top.woocommerce-shop #main li.product.search-result {
        min-height: 250px;
        width: calc(50% - 10px)!important;
    }

    .cz-buttons {
        flex-direction: column-reverse;
    }

    .single-product .single-product-main-image {
        height: calc(85vw + 120px);
    }

    .product .product_title {
        padding-right: 0;
    }
}

/* Cart-Qty-Wrapper: Qty-Controls + Entfernen-Button */
/* Cart qty wrapper: qty controls + remove button */
.cz-qty-cart-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cz-qty-cart-wrap .cz-qty-wrap {
    flex-wrap: nowrap;
    transform: none;
}

/* Tablet/Desktop bis 1049px: kompaktere Buttons */
/* Tablet/desktop up to 1049px: more compact buttons */
@media screen and (max-width: 1049px) {
    #top .cz-qty-cart-wrap .cz-qty-wrap input.plus,
    #top .cz-qty-cart-wrap .cz-qty-wrap input.minus {
        width: 32px !important;
        min-width: 32px;
        height: 32px !important;
        line-height: 32px;
        font-size: 14px;
    }
    #top .cz-qty-cart-wrap .cz-qty-wrap input.qty {
        width: 70px !important;
        min-width: 70px !important;
        padding-right: 28px !important;
    }
    #top .cz-qty-cart-wrap .cz-qty-unit-label {
        font-size: 12px;
        width: 20px;
    }
}

/* Desktop: x-Button auf Höhe der +/- Buttons */
/* Desktop: x button aligned with +/- buttons */
@media screen and (min-width: 768px) {
    .cz-qty-cart-wrap .cz-cart-remove {
        align-self: center;
        margin-top: 6px;
    }
}

/* Mobil: Entfernen-Button unterhalb, rechteckig */
/* Mobile: remove button below, rectangular */
@media screen and (max-width: 767px) {
    .cz-qty-cart-wrap {
        flex-direction: column;
        align-items: center;
    }
    .cz-qty-cart-wrap .cz-cart-remove {
        width: auto !important;
        height: auto !important;
        border-radius: 3px !important;
        padding: 2px 8px !important;
        line-height: normal !important;
        margin-top: 4px;
    }
}

@media screen and (max-width: 500px) {
    .cart_dropdown {
        margin-right: 133px;
    }
}

