/*
 * Fast Cart (side cart) in the frontend theme style.
 *
 * Fonts: the cart inherits the body copy font (Outfit or the custom copy
 * font) and the h2 title keeps the headline font; the plugin's own
 * --wfc-font is not used. Colours come from the shop palette
 * (--wp--preset--color--*), so every restaurant keeps its primary colour.
 *
 * The plugin, assets/main.css (_sidecart.scss) and coupons.css style the same
 * elements, partly with !important. Rules here are scoped to
 * .wc-fast-cart.bd-cart (class set by fast-cart-ui.js) or doubled class
 * selectors and use !important only where those files do.
 */

.wc-fast-cart {
    --cart-accent: var(--wp--preset--color--primary, #c86200);
    --cart-ink: var(--wp--preset--color--contrast, #1d1d1b);
    --cart-bg: var(--wp--preset--color--base, #fff);
    --cart-muted: color-mix(in srgb, var(--cart-ink) 62%, var(--cart-bg));
    --cart-line: color-mix(in srgb, var(--cart-ink) 10%, transparent);
    --cart-soft: color-mix(in srgb, var(--cart-ink) 5%, var(--cart-bg));
    --cart-accent-soft: color-mix(in srgb, var(--cart-accent) 10%, var(--cart-bg));
    --cart-radius: 14px;
    --cart-pad: 24px;
}

/* Panel and header ------------------------------------------------------ */

.wc-fast-cart.wc-fast-cart {
    padding: 0 var(--cart-pad) 0;
    background: var(--cart-bg);
    color: var(--cart-ink);
    font-family: inherit;
    line-height: 1.4;
    box-shadow: -24px 0 60px -20px rgb(0 0 0 / .28);
}

.wc-fast-cart.wc-fast-cart :is(button, input, select, textarea) {
    font-family: inherit;
}

.wc-fast-cart.wc-fast-cart > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 28px 56px 18px 0;
    border-bottom: 1px solid var(--cart-line);
    color: var(--cart-ink);
    font-size: clamp(24px, 4vw, 28px);
    line-height: 1.15;
    letter-spacing: -.01em;
}

.bd-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--cart-accent-soft);
    color: var(--cart-accent);
    font-family: var(--wp--preset--font-family--primary, inherit);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.wc-fast-cart.wc-fast-cart .wc-fast-cart__close-btn {
    top: 24px;
    right: var(--cart-pad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cart-soft);
    color: var(--cart-ink);
    box-shadow: none;
    transition: background-color .15s ease;
}

.wc-fast-cart.wc-fast-cart .wc-fast-cart__close-btn:hover {
    background: color-mix(in srgb, var(--cart-ink) 10%, var(--cart-bg));
}

.wc-fast-cart.wc-fast-cart .wc-fast-cart__close-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.wc-fast-cart.wc-fast-cart .wc-fast-cart__close-btn:focus { outline: none; }

.wc-fast-cart.wc-fast-cart :is(a, button, input):focus-visible {
    outline: 2px solid var(--cart-accent);
    outline-offset: 2px;
}

.wc-fast-cart.wc-fast-cart .wc-fast-cart__inner-contents {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
}

/* Short carts: totals and checkout sit at the bottom of the panel. */
.wc-fast-cart.wc-fast-cart .wc-fast-cart__inner-contents > .wfc-cart-collaterals {
    margin-top: auto;
}

.wc-fast-cart.wc-fast-cart .wc-fast-cart__inner-contents > form.wfc-cart-form {
    margin-bottom: 12px;
}

/* Items ----------------------------------------------------------------- */

.wc-fast-cart.wc-fast-cart .wfc-cart-table {
    width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tbody {
    display: block;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
        "thumb name remove"
        "thumb qty total";
    column-gap: 14px;
    row-gap: 12px;
    align-items: start;
    margin: 0;
    padding: 18px 0;
    border-bottom: 1px solid var(--cart-line);
    border-radius: 0;
    background: transparent;
    transition: background-color .3s ease;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item:not(:last-child) {
    margin-bottom: 0;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td::before {
    display: none;
}

/* Thumbnail */
.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-thumbnail {
    display: block;
    grid-area: thumb;
    width: 64px;
    height: 64px;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-thumbnail :is(a, img) {
    display: block;
    width: 64px;
    height: 64px;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-thumbnail img {
    margin: 0;
    border-radius: 12px;
    background: var(--cart-soft);
    object-fit: cover;
}

.bd-cart-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--cart-accent-soft);
    color: var(--cart-accent);
}

.bd-cart-thumb-fallback svg,
.bd-cart-empty__icon svg,
.bd-qty__icon,
.bd-cart-cta__icon,
.bd-coupon-toggle svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bd-cart-thumb-fallback svg { width: 28px; height: 28px; }

/* Name and options */
.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-name {
    display: block;
    grid-area: name;
    min-width: 0;
    color: var(--cart-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-name a {
    color: inherit;
    text-decoration: none;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-name dl.variation {
    display: grid;
    gap: 2px;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    color: var(--cart-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-name dl.variation dt {
    display: block !important;
    float: none !important;
    margin: 4px 0 0 !important;
    padding: 0;
    border: 0 !important;
    color: var(--cart-ink);
    font-size: 12px !important;
    font-weight: 600 !important;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-name dl.variation dt:first-child {
    margin-top: 0 !important;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-name dl.variation dd {
    float: none;
    margin: 0;
    padding: 0;
}

/* Option values written one per line become a wrapping list. */
.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-name dl.variation dd p {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    margin: 0;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-name dl.variation dd p br {
    display: none;
}

/* Remove link: icon only; children ignore clicks because the plugin reads
   the link from the click target. */
.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-remove {
    display: block;
    grid-area: remove;
    justify-self: end;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table a.wfc-cart__remove {
    position: relative;
    display: inline-flex;
    width: 32px;
    height: 32px;
    margin: -6px -6px 0 0;
    border-radius: 50%;
    background: transparent;
    color: var(--cart-muted);
    opacity: 1;
    transition: background-color .15s ease, color .15s ease;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table a.wfc-cart__remove * {
    pointer-events: none;
}

/* Visually hidden label; without clipping it widened the panel on phones. */
.wc-fast-cart.wc-fast-cart .wfc-cart-table a.wfc-cart__remove .wfc-sr-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table a.wfc-cart__remove::before,
.wc-fast-cart.wc-fast-cart .wfc-cart-table a.wfc-cart__remove::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.8px;
    margin: 0;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table a.wfc-cart__remove::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table a.wfc-cart__remove:hover {
    background: var(--cart-soft);
    color: var(--cart-ink);
}

/* The unit price column is shown as "2 × 7,95 €" under the line total. */
.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-price {
    display: none;
}

/* Quantity stepper */
.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-quantity {
    display: block;
    grid-area: qty;
    align-self: center;
    width: auto;
}

.bd-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 38px;
    padding: 2px;
    border: 1px solid var(--cart-line);
    border-radius: 999px;
    background: var(--cart-bg);
}

.bd-qty__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cart-soft);
    color: var(--cart-ink);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.bd-qty__btn:hover {
    background: var(--cart-accent-soft);
    color: var(--cart-accent);
}

.bd-qty__btn:disabled {
    cursor: default;
    opacity: .4;
}

.bd-qty__btn svg { width: 16px; height: 16px; pointer-events: none; }
.bd-qty__icon--trash { display: none; }
.bd-qty.is-last .bd-qty__icon--minus { display: none; }
.bd-qty.is-last .bd-qty__icon--trash { display: block; }
.bd-qty.is-last .bd-qty__btn--minus:hover { background: #fdecea; color: #b42318; }

.wc-fast-cart.wc-fast-cart .bd-qty .quantity {
    position: static;
    width: auto;
    max-width: none;
    margin: 0;
    border: 0;
}

.wc-fast-cart.wc-fast-cart .bd-qty .quantity::after,
.wc-fast-cart.wc-fast-cart .wfc-cart-form__cart-item .quantity.quantity::after {
    content: none;
    display: none;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table .bd-qty input.qty {
    display: block !important;
    width: 34px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--cart-ink) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 32px !important;
    text-align: center !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
    appearance: textfield;
}

.wc-fast-cart.wc-fast-cart .bd-qty input.qty::-webkit-outer-spin-button,
.wc-fast-cart.wc-fast-cart .bd-qty input.qty::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* Line total */
.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-subtotal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    grid-area: total;
    align-self: center;
    gap: 2px;
    color: var(--cart-ink);
    font-size: 16px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-subtotal .wcf-qty-ui-wrapper { display: none; }

.bd-cart-unit {
    color: var(--cart-muted);
    font-size: 12px;
    font-weight: 400;
}

.bd-cart-unit .amount { font-weight: 400; }

@keyframes bd-cart-bump {
    0% { background-color: var(--cart-accent-soft); }
    100% { background-color: transparent; }
}

.wc-fast-cart.wc-fast-cart tr.wfc-cart-form__cart-item.bd-cart-row--bump {
    animation: bd-cart-bump .8s ease-out;
}

/* Legacy pulse from _sidecart.scss: calmer. */
.wc-fast-cart.wc-fast-cart tr.wfc-cart-form__cart-item.animate__pulse { animation: none; }

/* Actions row: coupon ----------------------------------------------------- */

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-table__actions {
    display: block;
    padding: 16px 0 4px;
    border: 0;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-table__actions > td {
    display: block;
    padding: 0;
    border: 0;
}

.wc-fast-cart.bd-cart .wfc-coupon {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--cart-radius);
    background: transparent;
}

.bd-coupon-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin: 0;
    padding: 0 14px 0 12px;
    border: 1px dashed color-mix(in srgb, var(--cart-ink) 22%, transparent);
    border-radius: 999px;
    background: transparent;
    color: var(--cart-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.bd-coupon-toggle:hover {
    border-color: var(--cart-accent);
    color: var(--cart-accent);
}

.bd-coupon-toggle svg { width: 17px; height: 17px; }

.wc-fast-cart.bd-cart .wfc-coupon:not(.is-open) .wfc-coupon__inner-contents { display: none; }

.wc-fast-cart.bd-cart .wfc-coupon.is-open {
    padding: 14px;
    border: 1px solid var(--cart-line);
    background: var(--cart-soft);
}

.wc-fast-cart.bd-cart .wfc-coupon.is-open .bd-coupon-toggle {
    min-height: 0;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-size: 13px;
}

.wc-fast-cart.bd-cart .wfc-coupon__inner-contents {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.wc-fast-cart.bd-cart .wfc-coupon input.input-text[type="text"] {
    height: 44px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--cart-ink) 18%, transparent);
    border-radius: 12px;
    background: var(--cart-bg);
    color: var(--cart-ink);
    font-size: 16px;
}

.wc-fast-cart.bd-cart .wfc-coupon input.input-text[type="text"]:focus {
    border-color: var(--cart-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cart-accent) 18%, transparent);
}

.wc-fast-cart.bd-cart .wfc-coupon button.wfc-button[name="apply_coupon"] {
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--cart-ink);
    border-radius: 12px;
    background: var(--cart-bg);
    color: var(--cart-ink);
    font-size: 14px;
    font-weight: 600;
}

.wc-fast-cart.bd-cart .wfc-coupon button.wfc-button[name="apply_coupon"]:hover,
.wc-fast-cart.bd-cart .wfc-coupon button.wfc-button[name="apply_coupon"]:focus-visible {
    border-color: var(--cart-ink);
    background: var(--cart-ink);
    color: var(--cart-bg);
}

/* Footer: totals and actions stay in view -------------------------------- */

.wc-fast-cart.wc-fast-cart .wfc-cart-collaterals {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 12px calc(var(--cart-pad) * -1) 0;
    padding: 12px var(--cart-pad) max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--cart-line);
    background: var(--cart-bg);
    box-shadow: 0 -14px 30px -18px rgb(0 0 0 / .25);
}

.wc-fast-cart.wc-fast-cart .wfc-cart-totals {
    margin: 0;
    padding: 0;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-totals > h2 { display: none; }
.wc-fast-cart.wc-fast-cart .wfc-proceed-to-checkout .ppcp-messages:empty { display: none; }

/* Shipping and tax lines stay hidden, as before (_sidecart.scss). */
.wc-fast-cart.wc-fast-cart .wfc-cart-totals__table tr.woocommerce-shipping-totals,
.wc-fast-cart.wc-fast-cart .wfc-cart-totals__table .includes_tax {
    display: none !important;
}

body.bringmal-qr-table-context .wc-fast-cart.wc-fast-cart .wfc-cart-totals__table tr.fee {
    display: none;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-totals__table {
    width: 100%;
    margin: 0 0 10px;
    border: 0;
    background: transparent;
}

/* The total is shown in the checkout button. Summary lines appear only
   when they explain something (fee, tip, coupon); fast-cart-ui.js sets
   bd-totals--simple otherwise. */
.wc-fast-cart.wc-fast-cart .wfc-cart-totals__table tr.order-total {
    display: none;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-collaterals.bd-totals--simple .wfc-cart-totals__table {
    display: none;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-totals__table tr {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 1px 0;
    border: 0;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-totals__table :is(th, td) {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cart-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-totals__table td { text-align: right; }

.wc-fast-cart.wc-fast-cart .wfc-cart-totals__table tr.order-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--cart-line);
}

.wc-fast-cart.wc-fast-cart .wfc-cart-totals__table tr.order-total :is(th, td, strong) {
    color: var(--cart-ink);
    font-size: 18px;
    font-weight: 700;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-totals__table .fee th {
    max-width: 70%;
    margin: 0;
    color: var(--cart-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-collaterals .wfc-proceed-to-checkout {
    display: block;
    margin: 0;
    padding: 0;
}

.wc-fast-cart.wc-fast-cart .wfc-checkout-buttons {
    display: flex;
    flex-direction: column !important;
    gap: 2px;
    width: 100%;
    margin: 0 !important;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-collaterals .wfc-proceed-to-checkout a.wfc-button.wfc-button {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    text-decoration: none;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-collaterals .wfc-proceed-to-checkout a.wfc-checkout-button.wfc-button {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 18px 0 22px;
    border: 0;
    border-radius: var(--cart-radius);
    background: var(--cart-accent);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--cart-accent) 80%, transparent);
    transition: filter .15s ease, transform .15s ease;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-collaterals .wfc-proceed-to-checkout a.wfc-checkout-button.wfc-button:hover {
    filter: brightness(1.06);
}

.wc-fast-cart.wc-fast-cart .wfc-cart-collaterals .wfc-proceed-to-checkout a.wfc-checkout-button.wfc-button:active {
    transform: translateY(1px);
}

.bd-cart-cta__label { flex: 1 1 auto; text-align: left; }
.bd-cart-cta__total { font-variant-numeric: tabular-nums; }
.bd-cart-cta__total .amount { color: inherit; }
.bd-cart-cta__icon { width: 20px; height: 20px; flex: 0 0 auto; stroke-width: 2.2; }

.wc-fast-cart.wc-fast-cart .wfc-cart-collaterals .wfc-proceed-to-checkout .wfc-button.wfc-exit.wfc-exit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px; /* touch target */
    padding: 0;
    border: 0;
    border-radius: var(--cart-radius);
    background: transparent;
    color: var(--cart-ink);
    font-size: 14px;
    font-weight: 600;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-collaterals .wfc-proceed-to-checkout .wfc-button.wfc-exit.wfc-exit {
    gap: 8px;
    transition: color .15s ease;
}

/* No background on hover: only the text and arrow take the accent colour. */
.wc-fast-cart.wc-fast-cart .wfc-cart-collaterals .wfc-proceed-to-checkout .wfc-button.wfc-exit.wfc-exit:hover,
.wc-fast-cart.wc-fast-cart .wfc-cart-collaterals .wfc-proceed-to-checkout .wfc-button.wfc-exit.wfc-exit:focus {
    background: transparent;
    color: var(--cart-accent);
}

.wc-fast-cart.wc-fast-cart .wfc-exit > * { pointer-events: none; }

.bd-cart-exit__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .15s ease;
}

.wfc-exit:hover .bd-cart-exit__icon { transform: translateX(-2px); }

/* Updating: calm feedback while the plugin saves. */
.wc-fast-cart.is-updating-qty .wfc-cart-totals__table,
.wc-fast-cart.is-updating-qty .bd-cart-cta__total {
    opacity: .5;
    transition: opacity .2s ease;
}

/* Notices (coupon messages) */
.wc-fast-cart.bd-cart .wc-block-components-notice-banner {
    border-radius: 12px;
}

.wc-fast-cart.bd-cart .wfc-coupon .woocommerce-notices-wrapper .wc-block-components-notice-banner {
    margin: 10px 0 0;
    font-size: 14px;
}

/* Empty cart -------------------------------------------------------------- */

.wc-fast-cart.wc-fast-cart .wfc-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 56px 8px;
    text-align: center;
}

.bd-cart-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--cart-accent-soft);
    color: var(--cart-accent);
}

.bd-cart-empty__icon svg { width: 32px; height: 32px; }

.wc-fast-cart.wc-fast-cart .wfc-cart-empty :is(.cart-empty, .woocommerce-info, p) {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cart-ink);
    font-size: 17px;
    font-weight: 600;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-empty :is(.cart-empty, .woocommerce-info)::before { display: none; }

.wc-fast-cart.wc-fast-cart .wfc-cart-empty .wc-block-components-notice-banner {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cart-ink);
    font-size: 17px;
    font-weight: 600;
}

.wc-fast-cart.wc-fast-cart .wfc-cart-empty .wc-block-components-notice-banner > svg { display: none; }

.bd-cart-empty__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 4px;
    padding: 0 22px;
    border: 1.5px solid var(--cart-accent);
    border-radius: 999px;
    color: var(--cart-accent);
    font-weight: 600;
    text-decoration: none;
}

.bd-cart-empty__back:hover { background: var(--cart-accent-soft); color: var(--cart-accent); }

/* Small screens ----------------------------------------------------------- */

@media (max-width: 500px) {
    .wc-fast-cart { --cart-pad: 18px; }

    .wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        column-gap: 12px;
    }

    .wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-thumbnail,
    .wc-fast-cart.wc-fast-cart .wfc-cart-table tr.wfc-cart-form__cart-item > td.product-thumbnail :is(a, img),
    .bd-cart-thumb-fallback {
        width: 56px;
        height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc-fast-cart.wc-fast-cart tr.wfc-cart-form__cart-item.bd-cart-row--bump { animation: none; }
    .wc-fast-cart.wc-fast-cart * { transition: none !important; }
}

/* Applied coupon row (layout from coupons.css), compact like the other
   summary lines. */
.wc-fast-cart.bd-cart .wfc-cart-totals__table tr.cart-discount > th,
.wc-fast-cart.bd-cart .wfc-cart-totals__table tr.cart-discount > td {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    font-size: 13px !important;
    font-weight: 600;
}

.wc-fast-cart.bd-cart .wfc-cart-totals__table tr.cart-discount > th {
    color: var(--cart-ink);
}

.wc-fast-cart.bd-cart .wfc-cart-totals__table tr.cart-discount {
    align-items: center;
}

.wc-fast-cart.bd-cart .wfc-cart-totals__table .bistrodistro-coupon-cell-content {
    gap: 8px;
}

.wc-fast-cart.bd-cart .wfc-cart-totals__table .woocommerce-remove-coupon {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
}

.wc-fast-cart.bd-cart .wfc-cart-totals__table .woocommerce-remove-coupon::before {
    width: 15px;
    height: 15px;
}

