/* Background of page */
body.woocommerce-cart {
    background-color: #f5f5f5;
    /* Explicit, not inherited: the site's global theme colour can be light-on-dark
       (built for dark sections elsewhere), which turns invisible on this light
       background if we leave it to `color: inherit`. */
    color: #212529;
}

body.woocommerce-cart .awcc-notification {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
    margin-bottom: 20px;
}

body.woocommerce-cart .awcc-notification-success .awcc-notification-txt {
    background-color: #ffffff;
    box-sizing: border-box;
    box-shadow: 0px 0px 10px 1px #6c6c6c03;
    padding: 15px;
    border: none !important;
    color: #000 !important;
    width: calc(100% - 24px);
    margin: 20px auto;
    border-radius: 12px;
}

body.woocommerce-cart .awcc-notification-error .awcc-notification-txt {
    background-color: #ffffff;
    box-sizing: border-box;
    box-shadow: 0px 0px 10px 1px #6c6c6c03;
    padding: 15px;
    border: none !important;
    width: calc(100% - 24px);
    margin: 20px auto;
    border-radius: 12px;
    color: #721c24 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.woocommerce-cart .awcc-remove-link-wrapper {
    display: inline-block;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    min-width: 35px;
    width: 35px;
    max-width: 35px;
}

body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-message {
    background-color: #ffffff;
    box-sizing: border-box;
    box-shadow: 0px 0px 10px 1px #6c6c6c03;
    padding: 15px 50px;
    border: none !important;
    color: #000 !important;
    width: calc(100% - 24px);
    margin: 20px auto;
    border-radius: 12px;
}

body.woocommerce-cart .woocommerce-error::before,
body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-cart .woocommerce-message::before {
    top: unset;
    left: 1.5em;
}

/* Default button style */
body.woocommerce-cart .btn,
body.woocommerce-cart button,
body.woocommerce-cart .btn-primary,
body.woocommerce-cart .button {
    display: inline-block;
    font-weight: 500;
    color: #ffffff;
    border: 2px solid #55a355;
    border-radius: 8px;
    background-color: #55a355;
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    padding: .5rem 1rem;
    font-size: 1rem;
    border-radius: 3px;
    transition: all .3s;
    text-decoration: none;
    cursor: pointer;
}

/* Secondary actions (coupon, update cart) shouldn't compete visually with
   "Proceed to checkout": that's the one button on this page that matters,
   so it's the only one that keeps the bold green fill. */
body.woocommerce-cart button[name="apply_coupon"],
body.woocommerce-cart button[name="awcc_update_cart"] {
    color: #212529;
    background-color: #ffffff;
    border-color: #cbcbcb;
}

body.woocommerce-cart button[name="apply_coupon"]:hover,
body.woocommerce-cart button[name="awcc_update_cart"]:hover {
    color: #212529;
    background-color: #f5f5f5;
    border-color: #b9b9b9;
}

body.woocommerce-cart .btn.btn-lg {
    width: 100%;
}

body.woocommerce-cart .awcc-cart-flex-column {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
}

body.woocommerce-cart .cart-totals-container div {
    word-break: break-word;
}

body.woocommerce-cart .cart-totals-container div.row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: top;
    flex-wrap: nowrap;
    gap: 10px;
}

body.woocommerce-cart .cart-totals-container .wc-proceed-to-checkout::before {
    content: none;
    display: none;
}

body.woocommerce-cart .cart-totals-container div.row>div {
    margin: 0;
    padding: 0;
}

body.woocommerce-cart .cart-totals-container .awcc-cart-flex-column {
    flex-direction: row;
}

body.woocommerce-cart .cart-totals-container .awcc-cart-flex-column>div:first-child {
    width: 30%;
    box-sizing: border-box;
    min-width: 120px;
}

body.woocommerce-cart .cart-totals-container .awcc-cart-flex-column>div:nth-child(2) {
    width: 70%;
    box-sizing: border-box;
}

body.woocommerce-cart .cart-totals-container .awcc-cart-flex-column ul#shipping_method.woocommerce-shipping-methods {
    padding: 5px 0 0 0;
}

body.woocommerce-cart .woocommerce-shipping-methods img {
    margin: 0 5px 5px 0;
}

body.woocommerce-cart .shipping ul#shipping_method li {
    margin-bottom: 20px;
}

body.woocommerce-cart .cart-totals-container .awcc-cart-flex-column .woocommerce-shipping-methods li {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

body.woocommerce-cart .cart-actions .coupon label.screen-reader-text {
    display: none;
}

body.woocommerce-cart .cart-actions .coupon input#coupon_code {
    height: 100%;
    width: auto;
}

body.woocommerce-cart .cart-actions .coupon {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Small tag icon in front of the coupon field, first in DOM order inside
   the flex row, so it doesn't touch the Update Cart button that shares
   this container. */
body.woocommerce-cart .cart-actions .coupon::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 11 3.83A2 2 0 0 0 9.58 3.24L4 3a1 1 0 0 0-1 1l.24 5.58a2 2 0 0 0 .59 1.42l9.58 9.58a2 2 0 0 0 2.83 0l4.35-4.35a2 2 0 0 0 0-2.82Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

body.woocommerce-cart input[type=date],
body.woocommerce-cart input[type=email],
body.woocommerce-cart input[type=number],
body.woocommerce-cart input[type=password],
body.woocommerce-cart input[type=search],
body.woocommerce-cart input[type=tel],
body.woocommerce-cart input[type=text],
body.woocommerce-cart input[type=url],
body.woocommerce-cart select,
body.woocommerce-cart textarea,
body.woocommerce-cart .select2-selection {
    border: 1px solid #cbcbcb;
    border-radius: 3px;
    padding: .5rem 1rem;
    transition: all .3s;
    height: 38px;
}

body.woocommerce-cart input[type=number] {
    padding: 0.5rem 3px;
}

body.woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 20px;
    padding: 0;
}

body.woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 35px;
}

/* Default button style hover */
body.woocommerce-cart .btn:hover,
body.woocommerce-cart button:hover,
body.woocommerce-cart .btn-primary:hover,
body.woocommerce-cart .button:hover {
    color: #55a355;
    background-color: #ffffff;
    border-color: #55a355;
}

body.woocommerce-cart .awcc-cart-totals-and-qty-head {
    display: flex;
    column-gap: 10px;
    justify-content: space-evenly;
}

body.woocommerce-cart .awcc-cart-totals-and-qty {
    display: flex;
    column-gap: 10px;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
}

body.woocommerce-cart .awcc-cart-totals-and-qty-head>div,
body.woocommerce-cart .awcc-cart-totals-and-qty-head>span,
body.woocommerce-cart .awcc-cart-totals-and-qty>div,
body.woocommerce-cart .awcc-cart-totals-and-qty>span {
    flex: 1;
}

body.woocommerce-cart .awcc-cart-remove-and-thumb {
    display: flex;
    column-gap: 10px;
    align-items: center;
}

body.woocommerce-cart .awcc-cart-remove-and-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}

body.woocommerce-cart .awcc-cart-remove-and-thumb-head {
    display: flex;
    column-gap: 10px;
    align-items: center;
}

body.woocommerce-cart .cart-item-row.d-flex,
body.woocommerce-cart .cart-header {
    display: flex;
    column-gap: 12px;
    align-content: center;
    align-items: center;
    align-items: center;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 15px;
}

body.woocommerce-cart .cart-header {
    font-weight: bold;
}

body.woocommerce-cart form.woocommerce-cart-form {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    row-gap: 15px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
    padding: 25px;
}

body.woocommerce-cart .awcc-cart-totals-wrapper {
    background-color: #ffffff;
    box-sizing: border-box;
    box-shadow: 0px 0px 10px 1px #6c6c6c01;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
    padding: 25px 35px;
    line-height: 1em;
}

body.woocommerce-cart div a.remove,
body.woocommerce-cart div a.remove:hover {
    background: transparent;
    transition: all 0.15s ease-in-out;
}

body.woocommerce-cart div a.remove:hover {
    transform: rotate(15deg);
}

body.woocommerce-cart .cart-item-name a {
    font-weight: bold;
    text-decoration: none;
}

body.woocommerce-cart div .wc-proceed-to-checkout {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

body.woocommerce-cart div .wc-proceed-to-checkout>.col-12 {
    padding-left: 0;
    padding-right: 0;
}

/* body.woocommerce-cart .awwcc-full-cart .row>*,
body.woocommerce-cart .awwcc-full-cart .row {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
} */

body.woocommerce-cart .order-total .includes_tax {
    display: block;
    width: 100%;
}

body.woocommerce-cart .cart-collaterals .cart_totals.awcc-cart-totals-wrapper,
body.woocommerce-cart .cart-collaterals .cart_totalsawcc-cart-totals-wrapper {
    width: 100%;
    float: none;
}

body div .woocommerce .return-to-shop {
    display: inline-block;
    width: auto;
    position: relative;
    margin: 15px;
}

@media(min-width:767px) and (max-width: 1199px) {

    body.woocommerce-cart .container,
    body.woocommerce-cart .container-md,
    body.woocommerce-cart .container-sm {
        max-width: 100%;
    }

    body.woocommerce-cart .site-main,
    body.woocommerce-cart #content {
        max-width: 96%;
    }
}

@media(min-width: 992px) {
    body.woocommerce-cart .awcc-hide-last-item-line .cart_item:nth-last-child(2) {
        border-bottom: none !important;
    }
}

@media(max-width: 991px) {
    body div .awcc-hide-mobile {
        display: none !important;
    }

    body.woocommerce-cart .cart-item-row.d-flex,
    body.woocommerce-cart .cart-header {
        column-gap: 0;
    }

    body.woocommerce-cart .cart-item-row.d-flex,
    body.woocommerce-cart .cart-header {
        align-items: flex-start;
    }

    body.woocommerce-cart .awcc-cart-totals-and-qty-head>div,
    body.woocommerce-cart .awcc-cart-totals-and-qty-head>span,
    body.woocommerce-cart .awcc-cart-totals-and-qty>div,
    body.woocommerce-cart .awcc-cart-totals-and-qty>span {
        flex: unset;
    }

    body.woocommerce-cart .awcc-cart-remove-and-thumb img {
        width: 85px;
        height: auto;
        max-height: 85px;
        object-fit: cover;
        border-radius: 5px;
    }

    body.woocommerce-cart .cart-item-row {
        border: 1px solid #d1d1d1;
        padding: 10px;
        border-radius: 5px;
    }

    body.woocommerce-cart .cart-item-name {
        padding: 0 20px;
    }

    body.woocommerce-cart .cart-item-name .amount {
        display: inline-block;
        width: 100%;
        padding-bottom: 15px;
    }

    body.woocommerce-cart .cart-item-name .quantity,
    body.woocommerce-cart .cart-item-name .remove {
        display: inline-block;
        width: auto;
    }

    body.woocommerce-cart div .quantity .qty {
        text-align: center;
        padding: 8px 5px;
        width: 80px;
        margin-right: 20px;
        font-size: 18px;
        border: 1px solid #cccccc;
    }

    body.woocommerce-cart form.woocommerce-cart-form {
        margin-bottom: 30px;
    }

    body.woocommerce-cart div a.remove svg {
        fill: #d32f2f;
        width: 26px;
    }

    body.woocommerce-cart .cart-actions .coupon input#coupon_code,
    body.woocommerce-cart .cart-actions .coupon button {
        height: auto;
        width: 100%;
    }
}

@media(min-width: 992px) {
    body div .awcc-hide-desktop {
        display: none !important;
    }

    body.woocommerce-cart a.remove {
        min-width: 35px;
        width: 35px;
        max-width: 35px;
    }

    body.woocommerce-cart div a.remove svg {
        fill: #d32f2f;
        width: 20px;
    }
}

/* ==========================================================================
   Order summary: sticky on desktop, total row gets visual weight
   ========================================================================== */

@media(min-width: 992px) {
    body.woocommerce-cart .awcc-summary-col {
        align-self: flex-start;
        position: sticky;
        top: 20px;
    }
}

/* Highlighted bar, bleeding to the edges of the white summary card (which
   has 25px/35px padding, see .awcc-cart-totals-wrapper) - the "amount you
   still owe" is the one number on this page that should actually stand
   out, the way bol.com's "Nog te betalen" bar does. */
body.woocommerce-cart .cart-totals-container .order-total {
    background-color: #eef7ee;
    border-top: none;
    margin: 16px -35px 4px -35px;
    padding: 16px 35px;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

/* The generic 30/70 split (.awcc-cart-flex-column > div) is too narrow for
   a large total plus its "(includes X BTW)" line - let both sides size to
   their own content instead, so nothing wraps mid-number. */
body.woocommerce-cart .cart-totals-container .order-total > div:first-child,
body.woocommerce-cart .cart-totals-container .order-total > div:nth-child(2) {
    width: auto;
    min-width: 0;
}

body.woocommerce-cart .cart-totals-container .order-total > div:nth-child(2) {
    text-align: right;
}

body.woocommerce-cart .cart-totals-container .order-total .woocommerce-Price-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529;
}

body.woocommerce-cart .cart-totals-container .order-total .includes_tax {
    display: block;
    width: 100%;
    text-align: right;
    font-size: .72rem;
    font-weight: 400;
    color: #6b8f76;
    margin-top: 2px;
}

/* The amount nested inside "(includes X BTW 21%)" should read as part of
   that small muted line, not inherit the big bold total price style. */
body.woocommerce-cart .cart-totals-container .order-total .includes_tax .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

body.woocommerce-cart .cart-totals-container .wc-proceed-to-checkout {
    margin-top: 15px;
}

/* Payment method icons, pulled from whatever gateways this shop has
   enabled (see cart-totals.php) - a small trust cue under the CTA,
   same spot bol.com/Coolblue put theirs. */
body.woocommerce-cart .awcc-payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

body.woocommerce-cart .awcc-payment-icons img {
    height: 22px;
    width: auto;
    opacity: .8;
}

/* ==========================================================================
   Cross-sells: own full-width row below the cart/summary grid. A plain,
   left-aligned, wrapping grid rather than a carousel: the real bol.com cart
   page renders "Vaak samen gekocht" the same way, no scroll/arrow machinery,
   which keeps this generic and low-maintenance across every AWCC install.
   ========================================================================== */

body.woocommerce-cart .awcc-cross-sells-row {
    margin-top: 40px;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells h2 {
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-weight: var(--e-global-typography-primary-font-weight, 700);
    font-size: 1.5rem;
    color: #212529;
    margin: 0 0 18px 0;
    padding: 0;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(210px, 240px));
    justify-content: start;
    gap: 24px 20px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

/* Neutralize WooCommerce's old float-layout clearfix pseudo-elements: inside
   a grid container a `content:" "` ::before/::after gets blockified into a
   real (invisible) grid item and silently eats the first cell, shoving every
   real card over by one. That's what caused the "centered" look. */
body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products::before,
body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products::after {
    content: none !important;
    display: none !important;
}

/* No card border/shadow/hover-lift: bare image + text, matching bol.com's
   own minimal treatment, and it's one less thing to clash with a given
   theme's own visual language. */
body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product {
    position: relative;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product > a.woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-decoration: none !important;
    color: #212529;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-sizing: border-box;
    display: block;
    margin: 0;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product .onsale {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 4px !important;
    background-color: #d32f2f !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 4px 8px !important;
    text-align: left !important;
    z-index: 2;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    color: #212529;
    margin: 12px 0 6px 0;
    padding: 0;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product .price {
    margin: auto 0 10px 0;
    display: block;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product .price .woocommerce-Price-amount {
    color: var(--e-global-color-accent, #212529);
    font-weight: 700;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product .price del {
    font-weight: 400;
    font-size: .82em;
    opacity: 1;
    margin-right: 6px;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product .price del .woocommerce-Price-amount {
    color: #999999;
    font-weight: 400;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product .price ins {
    text-decoration: none;
    font-size: 1.05em;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product .price .woocommerce-price-suffix {
    display: none;
}

body.woocommerce-cart .awcc-cross-sells-row .cross-sells ul.products li.product > a.add_to_cart_button {
    margin: 0 0 4px 0;
    text-align: center;
    font-size: .85rem;
}