/* ############################################# */
/* #    Mini-Warenkorb                         # */
/* ############################################# */

#cart-preview {
    position: absolute;
    top: -26px;
    right: 15px;
    width: 32px;
    height: 32px;
}

    .cart-preview-count {
        background-color: #c83737;
        color: #fff;
        border-radius: 8px;
        position: relative;
        left: 16px;
        top: -2px;
        display: block;
        padding: 0 2px;
        min-width: 16px;
        width: fit-content;
        height: 16px;
        z-index: 1;
        text-align: center;
        font-size: 11px;
        line-height: 16px;
        font-weight: 600;
    }
    .cart-preview-count-gray {
        background-color: var(--color-gray-light);
    }

    .cart-preview-content a {
        display: block;
        position: absolute;
        top: 4px;
        width: 24px;
        height: 24px;
        background: url(../Icons/shopping_cart.svg);
    }

    .cart-preview-content a:hover {
        filter: invert(.9) sepia(1) saturate(2) hue-rotate(175deg);
    }

.home #cart-preview {
    top: -5px;
    right: 7px;
    background: rgba(255, 255, 255, 0.75);
    padding: 8px 8px 3px 8px;
    border-radius: 0 0 10px 10px;
    border-top: solid 5px var(--primaryColor);
}
    .home .cart-preview-count {
        left: 16px;
        top: -4px;
    }
    .home .cart-preview-content a {
        top: 10px;
        left: 8px;
    }


/* ############################################# */
/* #    Produkt - Detailansicht                # */
/* ############################################# */

.frame .tx-cart-products:first-of-type {
    min-height: calc(100vh - 442px);
    display: block;
    padding-bottom: 60px;
}
    .cart-products-wrp {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 85px 50px;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }
        .cart-products-img { 
            grid-area: 1 / 1 / 3 / 2;

        }
        .cart-products-price { 
            grid-area: 1 / 2 / 2 / 3;
            position: relative;
        }
            .cart-products-price #product-price {
                font-size: 32px;
                font-weight: 700;
                position: absolute;
                width: 380px;
                bottom: 20px;
                right: 0px;
            }
                .quantity_discount {
                    font-size: 12px;
                }
                    .quantity_discount ul {
                        font-weight: 500;
                        list-style: none;
                        margin: 0;
                        padding: 0;
                    }
                        .quantity_discount li {
                            line-height: 15px;
                            margin-right: 8px;
                        }
                .cart-products-price #product-price .price {
                    position: absolute;
                    right: 0px;
                    bottom: 0px;
                }
        .cart-products-form { 
            grid-area: 2 / 2 / 3 / 3;
            text-align: end;
        }
    .tx-cart-products input[type=number] {
        appearance: none;
        -webkit-appearance: none;
        font-family: 'Open Sans', sans-serif;
        font-size: 14px;
        border: none;
        border-bottom: solid 2px var(--color-gray-light);
        background: var(--color-gray-lightest);
        width: 50px;
        padding: 10px 10px 9px 10px;
        margin-right: 8px;
        position: relative;
        top: -1px;
        border-radius: 0px;
        -webkit-border-radius: 0px;
    }
        .tx-cart-products input[type=number]:focus {
            outline: 0px auto transparent;
            outline: none;
            border-color: var(--primaryColor);
            box-shadow: none;
        }
    .tx-cart-products .frame{
        margin: 0;
    }

    .related-products-header {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin: 0 0 12px 5px;
    }
    .cart-related-products {
        border: dashed 2px var(--color-gray-lighter);
        padding: 5px 5px 0px 5px;
        margin: -10px 0 0 0;
    }
    .cart-related-products div {
        display: inline-block;
    }
        .cart-related-products a {
            font-size: 12px;
            font-weight: 600;
            text-decoration: none;
            background-color: var(--color-gray-lightest);
            color: var(--color-gray);
            display: block;
            margin: 0 0 5px 0;
            padding: 5px 10px;
            border-radius: 15px;
        }
            .cart-related-products a:hover {
                background-color: var(--color-gray-lighter);
            }

    /* Bildschirm kleiner 1250px */
    @media (max-width: 1250px) {
        .tx-cart-products .content-element .container {
            margin: 0;
        }
    }
    /* Bildschirm kleiner 815px */
    @media (max-width: 815px) {
        .cart_form .btn-primary {
            min-width: calc(100% - 82px);
        }
        .cart-products-price #product-price {
            width: 100%;
        }
    }
    /* Bildschirm kleiner 700px */
    @media (max-width: 700px) {
        .cart-products-wrp {
            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: 85px 85px 50px;
            grid-column-gap: 0px;
            grid-row-gap: 0px;
        }
            .cart-products-img { grid-area: 1 / 1 / 2 / 2; }
            .cart-products-price { grid-area: 2 / 1 / 3 / 2; }
            .cart-products-form { grid-area: 3 / 1 / 4 / 2; } 
        
        .quantity_discount ul {
            margin-bottom: -5px;
        }
        .quantity_discount li {
            display: inline;
        }
    }
    /* Bildschirm kleiner 500px */
    @media (max-width: 500px) {
        .cart-products-wrp {
            grid-template-rows: 85px 85px 70px;
        }
            .cart-products-form { 
                margin-top: 15px;
            } 
        .quantity_discount ul {
            margin-bottom: -30px;
        }
    }

/* Menü */
.cart-products-menu {
    background: var(--color-gray-lightest);
    border-top: solid 1px var(--color-gray-lighter);
    margin-left: calc( 0px - calc(100vw - 100%) / 2);
    max-width: calc( 100% + calc(100vw - 100%));
    width: calc( 100% + calc(100vw - 100%));
    margin-bottom: -40px;
    padding: 15px 0;
    position: absolute;
    bottom: 0px;
}
    .cart-products-menu .btn-secondary {
        min-width: 284px;
    }
    .cart-products-menu .btn-primary {
        float: right;
        text-align: center;
        padding: 8px;
        min-width: 284px;
    }
    /* Bildschirm kleiner 645px */
    @media (max-width: 645px) {
        .frame .tx-cart-products:first-of-type {
            padding-bottom: 100px;
        }
        .cart-products-menu .btn-secondary {
            width: calc(100% - 16px);
            margin-bottom: 8px;
        }
        .cart-products-menu .btn-primary {
            width: calc(100% - 16px);
        }
    }

/* Benachrichtigung */
.cart_form .form-message .alert-success,
.cart_form .form-message .alert-warning {
    background-color: #cdde87;
    color: #677821;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    position: absolute;
    top: -24px;
    right: 0;
    padding: 0px;
    width: calc( 100% + calc(100vw - 100%));
    margin-right: calc( 0px - calc(100vw - 100%) / 2);
}
.cart_form .form-message .alert-warning {
    background-color: #ffcc00;
    color: #c87137;
}


/* ############################################# */
/* #    Warenkorb                              # */
/* ############################################# */

/* Produkt-Liste */
.cart-empty {
    font-size: 24px;
    text-align: center;
    border: dashed 2px var(--color-gray-lighter);
    padding: 20px;
}


.checkout-product-table {
    border-collapse: collapse;
}
    .checkout-product-table th {
        background: var(--primaryColor);
        color: var(--color-white);
        border-right: solid 1px var(--primaryColor-dark);
        border-bottom: none;
        padding: 10px;
        text-align: end;
    }
    .checkout-product-table th:first-child {
        text-align: start;
    }
    .checkout-product-table th:nth-child(2){
        width: 155px;
    }
    .checkout-product-table th:nth-child(3){
        text-align: center;
    }
    .checkout-product-table th:last-child {
        border-right: none;
        text-align: center;
    }
    .checkout-product-table tr {
        border-bottom: solid 1px var(--color-gray-lighter);
    }
        .checkout-product-table tr:hover {
            background: var(--color-gray-lightest);
        }
    .checkout-product-table thead tr {
        border-bottom: none;
    }
        .checkout-product-table td {
            border-right: solid 1px var(--color-gray-lighter);
            padding: 0 10px;
            text-align: end;
        }
        .checkout-product-table td:first-child {
            text-align: start;
        }
        .checkout-product-table td:last-child {
            border-right: none;
            width: 32px;
            text-align: center;
        }
        .checkout-product-table .product-name {
            font-weight: 700;
            padding-top: 5px;
        }
        .checkout-product-table p {
            margin: 5px 0;
            padding: 0;
            font-size: 12px;
        }
        .checkout-product-table input {
            appearance: none;
            -webkit-appearance: none;
            font-family: 'Open Sans', sans-serif;
            font-size: 14px;
            border: none;
            border-bottom: solid 2px var(--color-gray-light);
            background: var(--color-gray-lightest);
            width: 50px;
            padding: 10px;
            border-radius: 0px;
            -webkit-border-radius: 0px;
        }
            .checkout-product-table input:focus {
                outline: 0px auto transparent;
                outline: none;
                border-color: var(--primaryColor);
                box-shadow: none;
            }

        .checkout-product-table .delete-link img{
            width: 16px;
            height: 16px;
            margin: 5px 0 0 0;
        }
        #form-cart .btn-secondary {
            min-width: 284px;
            margin-bottom: 8px;
        }

/* Bildschirm kleiner 645px */
@media (max-width: 645px) {
    #form-cart .btn-secondary {
        width: calc(100% - 16px);
        margin-bottom: 8px;
    }
    #form-cart .btn-primary {
        width: 100%;
    }
    #checkout-step-billing-address {
        margin-top: 80px !important;
    }
    .form-block .btn-primary {
        width: 100%;
    }
}

/* Rechnungsadresse */
.tx-cart fieldset {
    border: none;
}
#checkout-step-billing-address,
#checkout-step-review {
    margin: 30px 0;
    background: none !important;
    border: solid 1px var(--color-gray-lighter);
}
    .checkout-step-title {
        background: var(--primaryColor) !important;
        color: var(--color-white);
        font-size: 15px;
        font-weight: 700;
        margin: -1px !important;
        padding: 7px 10px !important;
    }
#checkout-step-billing-address .checkout-step-content-list input {
    appearance: none;
    -webkit-appearance: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    border: none;
    border-bottom: solid 2px var(--color-gray-light);
    background: var(--color-gray-lightest);
    width: calc(100% - 20px);
    padding: 10px;
    border-radius: 0px;
    -webkit-border-radius: 0px;
}
    #checkout-step-billing-address .checkout-step-content-list input:focus {
        outline: 0px auto transparent;
        outline: none;
        border-color: var(--primaryColor);
        box-shadow: none;
    }
    #checkout-step-billing-address .parsley-errors-list li,
    #checkout-step-billing-address .validation-error,
    #checkout-step-review .parsley-errors-list li,
    #checkout-step-review .validation-error {
        color: var(--color-red);
        font-size: 13px;
        font-weight: 500;
    }
        #checkout-step-review .parsley-errors-list li,
        #checkout-step-review .validation-error {
            padding: 0 0 5px 5px;
        }

    .input-box:has(.parsley-error) input,
    .input-box:has(.validation-error) input {
        background-color: var(--color-red-lightest) !important;
        border-color: var(--color-red) !important;
    }
    .input-box:has(.parsley-error) input:focus,
    .input-box:has(.validation-error) input:focus {
        border-color: var(--primaryColor) !important;
    }

#billingAddress-country {
    appearance: none;
    -webkit-appearance: none;
    background-image: url(../Icons/arrow-select.svg);
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 8px auto;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #000000;
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: solid 2px var(--color-gray-light);
    background-color: var(--color-gray-lightest);
    border-radius: 0px;
    -webkit-border-radius: 0px;
}
    #billingAddress-country:focus {
        outline: 0px auto transparent;
        outline: none;
        border-color: var(--primaryColor);
        box-shadow: none;
    }


/* Bildschirm kleiner 767px */
@media (max-width: 767px) {
    .checkout-step-content fieldset {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Abweichende Lieferadresse */
.form-list.shipping-same-as-billing-wrapper {
    display: none;
    visibility: hidden;
}

/* Prüfen und Bestellen */
#checkout-step-review .field label {
    display: block;
}
#checkout-step-review .field textarea {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    border: none;
    border-bottom: solid 2px var(--color-gray-light);
    width: calc(100% - 20px);
    min-height: 90px;
    background: var(--color-gray-lightest);
    padding: 10px;
    border-radius: 0px;
    -webkit-border-radius: 0px;
}
    #checkout-step-review .field textarea:focus {
        outline: 0px auto transparent;
        outline: none;
        border-color: var(--primaryColor);
        box-shadow: none;
    }

    /* Summe */
    #checkout-step-review .text-right {
        text-align: end;
    }

    #checkout-step-review .text-right.last {
        min-width: 120px;
    }
    .total-gross {
        font-weight: 700;
    }
    .text-right.pull-right{
        text-align: end;
    }
.accept-terms:has(.parsley-error),
.accept-terms:has(.validation-error) {
    background-color: var(--color-red-lightest) !important;
}

.accept-terms span::after {
    content: '*';
}

    #checkout-step-summary {
        margin: 0 12px;
    }

/* Fehlermeldung Validierung */
.tx-cart .alert-message {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 5px 15px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}