/*
 * Shop: pickup products (classes/class-shop.php)
 * Every rule is scoped to the new body classes or new elements,
 * so events, workshops and gift cards look exactly as before.
 */

/* Product page of a pickup product: compact header without image and title */
body.wild-shop-product .header-wrapper {
    height: auto;
    min-height: 0;
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

body.wild-shop-product .header-main-wrapper {
    height: auto;
}

body.wild-shop-product .header-button-anchor {
    display: none;
}

/* The vertical icon bar needs the full-height header, the open/closed badge stays visible */
body.wild-shop-product #header-wrapper > .header-secondary-wrapper {
    display: none;
}

/* Side modal (opening hours, updates, events) from the mobile bottom bar: full screen instead of header height */
body.wild-shop-product .header-main-secondary-button-modal-wrapper.side-modal-wrapper,
body.wild-shop-product .header-main-secondary-button-modal-container.side-modal-container {
    position: fixed;
}

/* The top bar pushes the header 36px down, keep that space free above the breadcrumbs */
body.wild-shop-product .header-outer-wrapper.top-header-active {
    margin-bottom: 36px;
}

/* Yoast breadcrumbs above the product */
body.wild-shop-product .wild-breadcrumbs {
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

body.wild-shop-product .wild-breadcrumbs a {
    color: inherit;
}

/* Checkout with only pickup products: the single payment method is selected but not shown */
.woocommerce-checkout-payment li.payment_method_wild_pickup {
    display: none;
}

.woocommerce-checkout-payment ul.wc_payment_methods:has(> li.payment_method_wild_pickup) {
    display: none;
}

/* Notice: pickup products and events/gift cards in one cart */
.woocommerce-error:has(li[data-id="wild-mixed-cart"]) {
    outline: none;
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    list-style: none;
    margin: 0 0 20px;
    padding: 20px;
    background-color: #fbe9e7;
    border-left: 4px solid #c62828;
}

.modal .overview .wild-cart-notice {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 15px;
    background-color: #fbe9e7;
    border-left: 4px solid #c62828;
}

/* Thank you page of a pickup order */
.wild-pickup-instructions {
    font-weight: bold;
}

/*
 * Cart icon in the header (header.php .header-status), all products incl. events.
 * Hidden unless body.wild-has-cart (set from the WooCommerce cookie woocommerce_items_in_cart).
 * With an empty cart the header looks exactly as before at every width.
 */
/* display:contents keeps the header layout identical to before when the cart is empty */
.header-main-container .header-status {
    display: contents;
}

body.wild-has-cart .header-main-container .header-status {
    display: flex;
    align-items: flex-start;
}

.header-main-container .header-cart-button {
    display: none;
}

body.wild-has-cart .header-main-container .header-cart-button {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 46px;
    height: 46px;
    margin-top: 40px;
    margin-left: 10px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    transition: background-color .15s;
}

body.wild-has-cart .header-main-container .header-cart-button:hover,
body.wild-has-cart .header-main-container .header-cart-button:focus {
    background-color: rgba(255, 255, 255, .15);
}

body.wild-has-cart .header-main-container .header-cart-button svg {
    display: block;
    width: 22px;
    height: 22px;
}

/* Desktop: icon right of the open/closed badge; the badge moves left by the icon width + gap (56px), so the menu keeps its place */
@media (min-width: 1251px) {
    body.wild-has-cart .header-main-wrapper .header-main-container .open-or-closed {
        margin-left: 24px;
    }

    body.wild-has-cart.lang-de .header-main-wrapper .header-main-container .open-or-closed {
        margin-left: 4px;
    }
}

/* Tablet: badge sits below the logo, icon right next to it */
@media (min-width: 933px) and (max-width: 1250px) {
    body.wild-has-cart .header-main-container .header-status {
        position: absolute;
        left: 2em;
        top: 120px;
        align-items: center;
    }

    body.wild-has-cart .header-main-wrapper .header-main-container .header-status .open-or-closed {
        position: relative;
        left: auto;
        top: auto;
        margin: 0;
    }

    body.wild-has-cart .header-main-container .header-cart-button {
        width: 52px;
        height: 52px;
        margin-top: 0;
    }
}

/* Mobile: the menu is hidden, icon right next to the logo */
@media (max-width: 932px) {
    body.wild-has-cart .header-main-container .header-cart-button {
        width: 52px;
        height: 52px;
        margin-top: 10px;
        margin-left: 15px;
    }
}

/*
 * Cart page (all carts: products and events)
 * Same selector prefix as main.c25824f8.css, so these rules win by load order.
 */
body.woocommerce-cart .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.woocommerce-cart .woocommerce .woocommerce-notices-wrapper .woocommerce-message {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    box-sizing: border-box;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form {
    border-bottom: none;
    padding-bottom: 0;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table {
    border-collapse: collapse;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table thead th {
    padding: 0 10px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #19232f;
    border-bottom: 2px solid #19232f;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table thead th.product-price,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table thead th.product-quantity,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table thead th.product-subtotal {
    text-align: right;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table thead th.product-remove {
    width: 40px;
    padding-left: 0;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table thead th.product-thumbnail {
    width: 90px;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td {
    padding: 16px 10px;
    text-align: left;
    border-bottom: 1px solid #e3e3e3;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-price,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-quantity,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-subtotal {
    text-align: right;
    white-space: nowrap;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-remove {
    padding-left: 0;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    border: 1px solid #c9c9c9;
    border-radius: 50%;
    color: #6b6b6b;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: color .15s, border-color .15s, background-color .15s;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-remove a:hover,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-remove a:focus {
    color: #c62828;
    border-color: #c62828;
    background-color: #fbe9e7;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-thumbnail a img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-name a {
    font-weight: 700;
    color: #19232f;
    text-decoration: none;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-name a:hover {
    color: #009bc3;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-subtotal {
    font-weight: 700;
    color: #19232f;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-quantity .quantity-wrap .quantity-inner {
    float: none;
    display: inline-flex;
    margin-right: 0;
    vertical-align: middle;
}

body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr td.actions {
    padding: 20px 0 0;
    text-align: right;
    border: none;
}

/* Totals: card on the right with the checkout button at full width */
body.woocommerce-cart .woocommerce .cart-collaterals {
    flex: 0 0 420px;
    max-width: 420px;
    margin-left: auto;
    padding: 30px 0 0;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
    box-sizing: border-box;
    padding: 25px 30px 30px;
    background-color: #f3f5f7;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table {
    border-collapse: collapse;
    margin: 0 0 25px;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr th,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr td {
    padding: 12px 0;
    vertical-align: top;
    border-bottom: 1px solid #dde2e7;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr th {
    text-align: left;
    font-weight: 400;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr td {
    text-align: right;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td {
    padding-top: 16px;
    border-bottom: none;
    font-size: 20px;
    font-weight: 700;
    color: #19232f;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td small.includes_tax {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #6b6b6b;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr td p.woocommerce-shipping-destination {
    display: none;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout .checkout-button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
}

/* Mobile: one compact card per cart line */
@media (max-width: 932px) {
    body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb name remove"
            "thumb price remove"
            "qty qty subtotal";
        align-items: center;
        gap: 6px 15px;
        padding: 16px 0;
        border-bottom: 1px solid #e3e3e3;
    }

    body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td {
        display: block;
        padding: 0;
        border: none;
    }

    body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-remove {
        grid-area: remove;
        align-self: start;
    }

    body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-thumbnail {
        grid-area: thumb;
        align-self: start;
    }

    body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-name {
        grid-area: name;
        flex: none;
        max-width: none;
    }

    body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-price {
        grid-area: price;
        display: block;
        text-align: left;
        font-size: 14px;
        color: #6b6b6b;
    }

    body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-quantity {
        grid-area: qty;
        margin: 8px 0 0;
        text-align: left;
    }

    body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-subtotal {
        grid-area: subtotal;
        flex: none;
        max-width: none;
        margin-top: 8px;
        text-align: right;
    }

    body.woocommerce-cart .woocommerce form.woocommerce-cart-form table.shop_table tbody tr td.actions {
        display: block;
        width: 100%;
    }

    body.woocommerce-cart .woocommerce .cart-collaterals {
        flex: 0 0 100%;
        max-width: 100%;
        margin-left: 0;
    }

    body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
        padding: 20px;
    }

    /* The theme turns every table into blocks below 41em; keep the totals a real two-column table */
    body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table {
        display: table;
        width: 100%;
    }

    body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tbody {
        display: table-row-group;
    }

    body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr {
        display: table-row;
        padding: 0;
    }

    body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr th,
    body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr td {
        display: table-cell;
        position: static;
    }

    body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr td {
        padding-left: 10px;
    }

    body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr td::before {
        content: none;
        display: none;
    }
}

/*
 * Checkout: error notices after "Plaats bestelling" (all orders)
 * WooCommerce puts .woocommerce-NoticeGroup at the top of the flex form: full width, rest below.
 */
body.woocommerce-checkout .woocommerce form.woocommerce-checkout .woocommerce-NoticeGroup {
    flex: 0 0 100%;
    max-width: 100%;
    order: -1;
}

body.woocommerce-checkout .woocommerce-NoticeGroup .woocommerce-error {
    box-sizing: border-box;
    list-style: none;
    margin: 0 0 20px;
    padding: 20px;
    background-color: #fbe9e7;
    border-left: 4px solid #c62828;
    outline: none;
}

body.woocommerce-checkout .woocommerce-NoticeGroup .woocommerce-error li + li {
    margin-top: 6px;
}

/* Error text below a single checkout field */
body.woocommerce-checkout .checkout-inline-error-message {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #c62828;
}
