.csbasket {
    --basket-red: #a82424;
    --basket-ink: #202326;
    --basket-line: #d9dbdd;
    background: #f5f4f3;
    color: var(--basket-ink);
    font-family: Poppins, Arial, sans-serif;
}
.csbasket, .csbasket * { box-sizing: border-box; }
.csbasket-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.csbasket-hero {
    padding: 17px 0 18px;
    background: linear-gradient(115deg, #141719, #292c2e);
    color: #fff;
}
.csbasket-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 7px; font-size: .8rem; }
.csbasket-breadcrumb a { color: #fff; }
.csbasket-hero h1 { margin: 0; color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 800; line-height: 1.1; }
.csbasket-hero h1::after { content: ""; display: block; width: 40px; height: 3px; margin: 8px 0; background: #cb3939; }
.csbasket-hero p { margin: 0; color: #f4f4f4; font-size: .9rem; }
.csbasket-main { padding-block: 18px 32px; }
.csbasket .wp-block-woocommerce-cart { width: 100%; max-width: none; margin: 0; }
.csbasket .wc-block-cart__main,
.csbasket .wc-block-cart__sidebar {
    align-self: start;
    min-width: 0;
    padding: clamp(16px, 2vw, 26px);
    background: #fff;
    border: 1px solid var(--basket-line);
    border-radius: 12px;
}
.csbasket .wc-block-cart-items { margin: 0; }
.csbasket .wc-block-cart-items__row .wc-block-cart-item__image { width: clamp(76px, 12vw, 156px); }
.csbasket .wc-block-cart-item__image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 8px;
}
.csbasket .wc-block-cart-item__product .wc-block-components-product-name {
    color: var(--basket-ink);
    font-size: clamp(1rem, 1.55vw, 1.22rem);
    font-weight: 750;
    line-height: 1.35;
}
.csbasket .wc-block-components-product-metadata__description { display: none; }
.csbasket .wc-block-components-product-details { font-size: .9rem; }
.csbasket .wc-block-cart-item__total { color: var(--basket-red); font-weight: 750; }
.csbasket .wc-block-cart__totals-title,
.csbasket .wc-block-components-totals-footer-item { font-weight: 750; }
.csbasket .wc-block-cart__submit-button,
.csbasket .csbasket-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 7px;
    background: var(--basket-red);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 750;
}
.csbasket .wc-block-cart__submit-button:hover,
.csbasket .csbasket-button:hover { background: #821b1b; color: #fff; }
.csbasket a:focus-visible, .csbasket button:focus-visible { outline: 2px solid #a82424; outline-offset: 4px; }
.csbasket-browse { display: inline-block; margin: 0 0 14px; color: var(--basket-red); font-size: .9rem; font-weight: 650; }
.csbasket-empty {
    padding: clamp(24px, 5vw, 52px);
    text-align: center;
    border: 1px solid var(--basket-line);
    border-radius: 12px;
    background: #fff;
}
.csbasket-empty h2 { margin-top: 0; }
.csbasket-empty .csbasket-button { display: inline-flex; }
.csbasket-main:has(.csbasket-empty) .csbasket-browse { display: none; }

/* Preserve the native Cart block tree and hide only payment presentation. */
.csbasket .wp-block-woocommerce-cart-express-payment-block,
.csbasket .wp-block-woocommerce-cart-accepted-payment-methods-block,
.csbasket .wc-block-components-express-payment,
.csbasket .wc-block-components-express-payment-continue-rule,
.csbasket [data-block-name="woocommerce-paypal-payments/cart-paylater-messages"] { display: none !important; }

/* Remove duplicate Neve page title and breadcrumb only when our banner exists. */
body.woocommerce-cart:has(.csbasket) #content .nv-page-title-wrap,
body.woocommerce-cart:has(.csbasket) #content .neve-breadcrumbs-wrapper { display: none; }

@media (min-width: 782px) {
    .csbasket .wp-block-woocommerce-filled-cart-block.wc-block-components-sidebar-layout,
    .csbasket .wc-block-cart .wc-block-components-sidebar-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
        gap: 24px;
        margin: 0;
    }
    .csbasket .wc-block-cart__main,
    .csbasket .wc-block-cart__sidebar { width: auto; max-width: none; margin: 0; }
}
@media (max-width: 781px) {
    .csbasket-wrap { width: calc(100% - 28px); }
    .csbasket .wc-block-cart__main,
    .csbasket .wc-block-cart__sidebar { width: 100%; }
}

/* Booking notices can sit outside the shortcode in the Brizy template. */
body.woocommerce-cart :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) {
    display: block;
    position: relative;
    margin: 0 auto 14px;
    max-width: 1180px;
    padding: 12px 16px;
    border: 1px solid #e6c9c9;
    border-left: 3px solid #a82424;
    border-radius: 6px;
    background: #fcf4f4;
    color: #302629;
    font-size: .875rem;
    line-height: 1.55;
    text-align: left;
    overflow-wrap: anywhere;
}

body.woocommerce-cart :is(.woocommerce-error, .woocommerce-info, .woocommerce-message)::before {
    display: none;
}

body.woocommerce-cart :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) li {
    display: list-item;
    margin: 0;
}

body.woocommerce-cart :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) a,
body.woocommerce-cart .wc-block-components-notice-banner__content a {
    display: inline;
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #8a2020;
    font-size: inherit;
    font-weight: 650;
    line-height: inherit;
    text-decoration: underline;
    white-space: normal;
}

body.woocommerce-cart .wc-block-components-notice-banner:is(.is-error, .is-info) {
    gap: 8px;
    padding: 10px 14px;
    border-color: #e6c9c9;
    background: #fcf4f4;
    color: #302629;
    font-size: .875rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
