/*
 * The cart: each design as a card at the left (woocommerce/cart/cart.php), the
 * overview and checkout button beside it, kept in view while scrolling
 * (cart-totals.php). The same cards, colours and rounding as the checkout.
 */

.woocommerce-cart { --ct-ink: #0d1117; --ct-muted: #5b6672; --ct-line: #e3e6e8; --ct-field: #c9cfd4; --ct-orange: #ea7c1f; --ct-orange-ink: #a54800; }
.woocommerce-cart .bs-el-commerce.e-con { background: #f4f5f6; padding: 40px 24px 88px; }
.woocommerce-cart .bs-content-hero.e-con { padding-bottom: 48px; }

/* Notices (removed, coupon applied) above the cards. */
.woocommerce-cart .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 18px; }
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error { border-radius: 12px; }

/* Two columns: the designs, and the overview in a steady column beside them. */
.bs-cart-page { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) {
    .bs-cart-page { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
    .bs-cart-side { position: sticky; top: 104px; }
}
body.admin-bar .bs-cart-side { top: 136px; }

.bs-cart-form__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; font-size: 22px; font-weight: 850; letter-spacing: -.01em; color: var(--ct-ink); }
.bs-cart-form__title span { font-size: 15px; font-weight: 600; color: var(--ct-muted); letter-spacing: 0; }

/* A design */
.bs-cart-items { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bs-cart-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--ct-line);
    border-radius: 18px;
}
.bs-cart-item__picture { aspect-ratio: 1; border-radius: 12px; background: #eef1f4; overflow: hidden; display: grid; place-items: center; }
.bs-cart-item__picture img { width: 100%; height: 100%; object-fit: contain; }
.bs-cart-item__body { min-width: 0; }
.bs-cart-item__name { margin: 2px 0 4px; font-size: 18px; font-weight: 800; color: var(--ct-ink); }
.bs-cart-item__qty { margin: 0 0 10px; font-size: 14px; color: var(--ct-muted); }
.bs-cart-item__qty .amount { color: var(--ct-ink); font-weight: 600; }
.bs-cart-item__subtotal { font-size: 18px; font-weight: 800; color: var(--ct-ink); white-space: nowrap; }

/* Sizes and team list (WooCommerce's item data list) */
.bs-cart-item dl.variation { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 0; font-size: 14px; }
.bs-cart-item dl.variation dt { margin: 0; font-weight: 700; color: var(--ct-ink); }
.bs-cart-item dl.variation dd { margin: 0; color: var(--ct-muted); }
.bs-cart-item dl.variation dd p { margin: 0; }

.bs-cart-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; }
.bs-cart-item__edit {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: 999px;
    border: 1px solid var(--ct-orange); background: #fff7ef; color: var(--ct-orange-ink);
    font-size: 14px; font-weight: 800; text-decoration: none;
    transition: background .15s ease;
}
.bs-cart-item__edit:hover, .bs-cart-item__edit:focus-visible { background: #ffe9d4; color: var(--ct-orange-ink); }
.woocommerce .bs-cart-item a.remove.bs-cart-item__remove {
    display: inline; width: auto; height: auto; border-radius: 0;
    background: none; color: var(--ct-muted); font-size: 14px; font-weight: 600; line-height: 1.4;
    text-decoration: underline; text-underline-offset: 3px;
}
.woocommerce .bs-cart-item a.remove.bs-cart-item__remove:hover { background: none; color: #b32d2e; }

/* Below the designs: another garment, a discount code */
.bs-cart-form__actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 24px; margin-top: 18px; padding: 0 4px; }
.bs-cart-more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ct-ink); text-decoration: none; }
.bs-cart-more span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ct-ink); color: #fff; font-size: 18px; line-height: 1; }
.bs-cart-more:hover { color: var(--ct-orange-ink); }
.bs-cart-coupon summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ct-muted); text-decoration: underline; text-underline-offset: 3px; }
.bs-cart-coupon .coupon { display: flex; gap: 8px; margin-top: 10px; }
.bs-cart-coupon .coupon .input-text { min-height: 44px; min-width: 0; flex: 1 1 160px; padding: 0 14px; border: 1px solid var(--ct-field); border-radius: 10px; background: #fff; font-size: 16px; }
.bs-cart-coupon .coupon .button { min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--ct-ink); color: #fff; font-weight: 700; }

/* The overview */
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; margin: 0; padding: 24px; background: #fff; border: 1px solid var(--ct-line); border-radius: 18px; }
.woocommerce-cart .cart_totals h2 { margin: 0 0 12px; font-size: 20px; font-weight: 850; color: var(--ct-ink); }
.woocommerce-cart .cart_totals table.shop_table { margin: 0; border: 0; }
.woocommerce-cart .cart_totals table.shop_table :is(th, td) { padding: 12px 0; border: 0; border-bottom: 1px solid var(--ct-line); background: none; font-size: 15px; vertical-align: top; }
.woocommerce-cart .cart_totals table.shop_table th { font-weight: 700; color: var(--ct-ink); }
.woocommerce-cart .cart_totals table.shop_table td { text-align: right; color: var(--ct-ink); }
.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
.woocommerce-cart .cart_totals .woocommerce-shipping-calculator { font-size: 13px; color: var(--ct-muted); }
/* Shipping as one line: delivery only, the address comes at checkout, so no calculator here. */
.woocommerce-cart .cart_totals .ct-shipping-heading { float: left; width: auto; margin: 0 12px 0 0 !important; font-weight: 700; }
.woocommerce-cart .cart_totals #shipping_method { float: right; clear: none; margin: 0; padding: 0; list-style: none; text-align: right; }
.woocommerce-cart .cart_totals .woocommerce-shipping-totals td::after { content: ""; display: table; clear: both; }
.woocommerce-cart .cart_totals #shipping_method li { margin: 0; }
.woocommerce-cart .cart_totals #shipping_method label { margin: 0; font-weight: 400; }
.woocommerce-cart .cart_totals :is(.woocommerce-shipping-destination, .woocommerce-shipping-calculator) { display: none; }
.woocommerce-cart .cart_totals .order-total :is(th, td) { border-bottom: 0; padding-top: 16px; font-size: 18px; font-weight: 850; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 16px 0 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block; margin: 0; padding: 16px 20px; border-radius: 999px;
    background: var(--ct-orange); color: var(--ct-ink);
    font-size: 16px; font-weight: 850; text-align: center; text-transform: none; letter-spacing: 0;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: #f39540; color: var(--ct-ink); }
.bs-cart-promises { margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ct-muted); }
.bs-cart-promises li { display: flex; gap: 8px; align-items: baseline; }
.bs-cart-promises li::before { content: "✓"; color: #1f9d55; font-weight: 800; }

/* Empty */
.bs-cart-empty { max-width: 560px; margin: 0 auto; padding: 48px 28px; background: #fff; border: 1px solid var(--ct-line); border-radius: 18px; text-align: center; }
.bs-cart-empty__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; background: #fff7ef; color: var(--ct-orange-ink); }
.bs-cart-empty h2 { margin: 0 0 8px; font-size: 24px; font-weight: 850; color: var(--ct-ink); }
.bs-cart-empty p { margin: 0 auto 22px; max-width: 420px; color: var(--ct-muted); }
.bs-cart-empty__cta { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--ct-orange); color: var(--ct-ink); font-weight: 850; text-decoration: none; }
.bs-cart-empty__cta:hover { background: #f39540; color: var(--ct-ink); }

/* Phones: the picture beside the name, the price under it, full-width buttons. */
@media (max-width: 640px) {
    .woocommerce-cart .bs-el-commerce.e-con { padding: 24px 14px 64px; }
    .bs-cart-item { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 14px; }
    .bs-cart-item__subtotal { grid-column: 2; font-size: 16px; }
    .bs-cart-item__actions { grid-column: 1 / -1; margin-top: 2px; }
    .bs-cart-item__edit { flex: 1 1 auto; justify-content: center; }
    .bs-cart-form__actions { flex-direction: column; }
}
