body.woocommerce-cart.kf-cart-clean {
  --kfc-cocoa: #4b2d21;
  --kfc-bordeaux: #641f30;
  --kfc-bordeaux-dark: #4e1323;
  --kfc-cream: #faf4ed;
  --kfc-ink: #3e271d;
  --kfc-border: #e4d3c7;
}
.kf-cart-clean .woocommerce-cart-form .shop_table,
.kf-cart-clean .cart_totals {
  color: var(--kfc-ink);
  background: #fff;
}
.kf-cart-clean .woocommerce-cart-form .shop_table {
  border: 1px solid var(--kfc-border);
  border-radius: .7rem;
  box-shadow: none;
}
.kf-cart-clean .woocommerce-cart-form .shop_table thead th {
  color: var(--kfc-cocoa);
  background: var(--kfc-cream);
}
.kf-cart-clean :is(.woocommerce-cart-form, .cart_totals) .woocommerce-Price-amount {
  color: var(--kfc-cocoa);
  font-weight: 700;
}
.kf-cart-clean .woocommerce-cart-form .product-name a { color: var(--kfc-cocoa); }
.kf-cart-clean .woocommerce-cart-form tr.woosb-cart-child:not([data-kf-clean-collapsed]) td {
  background: var(--kfc-cream);
}
.kf-cart-clean .woocommerce-cart-form tr[data-kf-clean-collapsed] { display: none !important; }
.kf-cart-clean .woocommerce-cart-form .kf-clean-bundle-button {
  display: block;
  min-height: 44px;
  margin: .15rem 0 0;
  padding: .2rem .45rem;
  border: 0;
  border-radius: .3rem;
  color: var(--kfc-bordeaux);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: underline;
}
.kf-cart-clean .woocommerce-cart-form td.actions { text-align: left; }
.kf-cart-clean .woocommerce-cart-form td.actions button[name="update_cart"] {
  margin: .45rem 0;
  min-height: 44px;
}
.kf-cart-clean .kf-clean-fold {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 .45rem;
  border: 1px solid var(--kfc-border);
  border-radius: .5rem;
  background: #fff;
  text-align: left;
}
.kf-cart-clean .kf-clean-fold > summary {
  display: list-item;
  min-height: 44px;
  padding: .6rem .85rem;
  color: var(--kfc-bordeaux);
  font-weight: 650;
  cursor: pointer;
}
.kf-cart-clean .kf-clean-fold[open] > summary { background: var(--kfc-cream); }
.kf-cart-clean .kf-clean-fold[open] > :is(.coupon, #pwgc-redeem-gift-card-form) {
  box-sizing: border-box;
  display: flow-root;
  width: 100%;
  float: none;
  padding: .6rem .85rem;
  margin: 0;
}
.kf-cart-clean .kf-clean-fold :is(input:not([type="hidden"]), button, .button) { min-height: 44px; }
.kf-cart-clean :is(.kf-clean-fold > summary, .kf-clean-bundle-button, .checkout-button):focus-visible {
  outline: 2px solid var(--kfc-bordeaux);
  outline-offset: 3px;
}
.kf-cart-clean .cart_totals {
  box-sizing: border-box;
  padding: clamp(.85rem, 3vw, 1.4rem);
  border: 1px solid var(--kfc-border);
  border-radius: .7rem;
  box-shadow: none;
}
.kf-cart-clean .cart_totals > h2 {
  margin: 0 0 .65rem;
  color: var(--kfc-cocoa);
  background: none;
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
}
.kf-cart-clean .cart_totals .shop_table { color: var(--kfc-ink); }
.kf-cart-clean .cart_totals .shop_table th { color: var(--kfc-cocoa); }
.kf-cart-clean .cart_totals .order-total :is(th, td) {
  border-top: 1px solid var(--kfc-border);
  font-weight: 700;
}
.kf-cart-clean .cart_totals .order-total .woocommerce-Price-amount { font-size: 1.18em; }
.kf-cart-clean .cart_totals :is(.cgwfw-order, .alma-cart-eligibility) {
  padding: .45rem .6rem;
  border-radius: .4rem;
  background: var(--kfc-cream);
  color: var(--kfc-ink);
}
.kf-cart-clean .cart_totals .wc-proceed-to-checkout a.checkout-button {
  display: block;
  min-height: 48px;
  margin: .8rem 0;
  border-radius: .55rem;
  color: #fff;
  background: var(--kfc-bordeaux);
  border-color: var(--kfc-bordeaux);
  box-shadow: none;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}
.kf-cart-clean .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
  color: #fff;
  background: var(--kfc-bordeaux-dark);
}
.kf-cart-clean .cart_totals .wc-ppcp-cart-payments__container.below {
  margin: .75rem 0 0;
  padding-top: .75rem;
  border-top: 1px solid var(--kfc-border);
}
@media (max-width: 767px) {
  .kf-cart-clean .woocommerce-cart-form .shop_table td { padding-inline: .65rem; }
  .kf-cart-clean .woocommerce-cart-form .kf-clean-bundle-button { margin-inline-start: auto; }
  .kf-cart-clean .woocommerce-cart-form .shop_table .product-remove a {
    min-width: 38px;
    min-height: 38px;
    line-height: 36px;
  }
  .kf-cart-clean .woocommerce-cart-form .shop_table .quantity input { min-height: 44px; }
  .kf-cart-clean .woocommerce-cart-form .kf-clean-fold .coupon :is(input, button) { max-width: 100%; }
}
.kf-cart-clean .woocommerce-cart-form .shop_table .product-name a,
.kf-cart-clean .woocommerce-cart-form .shop_table .product-name :is(dt, dd, dd p),
.kf-cart-clean .cart_totals :is(#shipping_method, .woocommerce-shipping-methods) li label,
.kf-cart-clean .cart_totals :is(.woocommerce-shipping-destination, .woocommerce-shipping-destination strong),
.kf-cart-clean .cart_totals a.shipping-calculator-button {
  color: var(--kfc-ink) !important;
}
.kf-cart-clean .cart_totals a.shipping-calculator-button { text-decoration: underline; }
.kf-cart-clean .cart_totals .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .85rem;
  font-size: 1rem;
  line-height: 1.3;
}
@media (max-width: 767px) {
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) {
    display: grid;
    grid-template-columns: minmax(2.5rem, 3rem) minmax(0, 1fr) minmax(2.25rem, auto);
    grid-template-areas: "thumb name remove" "qty qty sub" "unit unit unit";
    align-items: start;
    width: 100%;
    padding: .5rem;
    border-bottom: 1px solid var(--kfc-border);
  }
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) > td {
    min-width: 0;
    padding: .2rem .25rem;
    border: 0;
    text-align: left !important;
    background: transparent;
  }
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) > td::before {
    float: none;
    margin-right: .25em;
    font-size: .79em;
    font-weight: 500;
  }
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) > :is(.product-name, .product-thumbnail, .product-remove)::before {
    content: none;
  }
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) > .product-name {
    grid-area: name;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) > .product-thumbnail {
    grid-area: thumb;
    display: block !important;
  }
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) > .product-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: .3rem;
  }
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) > .product-remove { grid-area: remove; }
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) > .product-quantity {
    grid-area: qty;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) > .product-subtotal {
    align-self: center;
    grid-area: sub;
    white-space: nowrap;
  }
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) > .product-subtotal::before {
    display: block;
  }
  .kf-cart-clean .woocommerce-cart-form .shop_table tr.cart_item:not(.woosb-cart-child) > .product-price {
    grid-area: unit;
    font-size: .8rem;
  }
}
/* Keep the primary action legible above the theme's narrower-size override. */
html body.woocommerce-cart.kf-cart-clean .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward {
  font-size: 16px !important;
  line-height: 1.3 !important;
  min-height: 48px;
  text-transform: none !important;
}
body.woocommerce-cart.kf-cart-clean .woocommerce .cart_totals > h2 {
  font-size: 19px !important;
  padding: .2rem 0;
  margin-bottom: .6rem;
}
.kf-cart-clean .woocommerce-cart-form .shop_table .product-name a,
.kf-cart-clean .kf-clean-fold > summary {text-transform: none !important}
.kf-cart-clean .kf-clean-fold-gift-wrap[open] > .cgwfw-order {margin:0;box-shadow:none}
body.woocommerce-cart.kf-cart-clean .woocommerce .cart_totals ul.woocommerce-shipping-methods {
  padding: .35rem 0 !important;
}
body.woocommerce-cart.kf-cart-clean .woocommerce .cart_totals ul.woocommerce-shipping-methods li {
  padding: .3rem 0 !important;
}
body.woocommerce-cart.kf-cart-clean .woocommerce .cart_totals p.woocommerce-shipping-destination {
  margin: .25rem 0 .45rem !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-transform: none;
}

/* Bare WooCommerce remove glyph; leave the anchor's accessible name and action intact. */
html body.woocommerce-cart.kf-cart-clean .woocommerce-cart-form .shop_table .product-remove a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--kfc-ink) !important;
  font-size: 24px !important;
  font-weight: 400;
  line-height: 1 !important;
  text-decoration: none !important;
  vertical-align: middle;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce-cart-form .shop_table .product-remove a.remove:hover {
  color: var(--kfc-bordeaux) !important;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce-cart-form .shop_table .product-remove a.remove:focus-visible {
  outline: 2px solid var(--kfc-bordeaux);
  outline-offset: -2px;
}

/* Preserve all native Woo quantity controls, with a visibly dark value on white. */
html body.woocommerce-cart.kf-cart-clean .woocommerce-cart-form .shop_table .product-quantity .quantity {
  display: inline-flex !important;
  align-items: stretch;
  float: none !important;
  flex: 0 0 auto;
  max-width: 100%;
  margin: 0;
  overflow: visible;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce-cart-form .shop_table .product-quantity .quantity :is(.minus,.plus,input.qty:not([type=hidden])) {
  box-sizing: border-box;
  min-height: 44px;
  min-width: 36px;
  width: 36px;
  margin: 0;
  padding: 0;
  border-color: var(--kfc-border) !important;
  background: #fff !important;
  color: var(--kfc-ink) !important;
  font-size: 15px !important;
  font-weight: 650;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce-cart-form .shop_table .product-quantity .quantity :is(.minus,.plus) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Quiet secondary actions, with Bordeaux reserved for checkout. */
body.woocommerce-cart.kf-cart-clean .woocommerce .cart_totals > details.kf-clean-fold-gift-wrap {
  margin-top: 10px;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce .woocommerce-cart-form td.actions button[name="update_cart"],
html body.woocommerce-cart.kf-cart-clean .woocommerce .kf-clean-fold :is(button[name="apply_coupon"], .cgwfw-order button, #pwgc-redeem-button) {
  box-sizing: border-box;
  min-height: 44px;
  padding: .6rem .85rem;
  border: 1px solid #876451 !important;
  border-radius: .45rem;
  background: #faf4ed !important;
  color: #4b2d21 !important;
  opacity: 1;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 650;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce .woocommerce-cart-form td.actions button[name="update_cart"]:not(:disabled):hover {
  background: #f0e2d6 !important;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce .woocommerce-cart-form td.actions button[name="update_cart"]:disabled {
  border-color: #dac9bc !important;
  background: #fbf8f4 !important;
  color: #69564a !important;
  opacity: 1 !important;
  cursor: default;
}
body.woocommerce-cart.kf-cart-clean .woocommerce .kf-clean-fold > summary {
  font-family: inherit;
  font-size: 14px !important;
  line-height: 1.4;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.kf-cart-clean .woocommerce-cart-form td.actions > .kf-clean-fold-gift-wrap { margin-top: .5rem; }
html body.woocommerce-cart.kf-cart-clean .woocommerce .woocommerce-cart-form td.actions button[name="update_cart"],
html body.woocommerce-cart.kf-cart-clean .woocommerce .woocommerce-cart-form td.actions button[name="update_cart"]:disabled {
  border-color: #9c7862 !important;
  background: #e8d4c3 !important;
  color: #422b21 !important;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce .woocommerce-cart-form td.actions button[name="update_cart"]:disabled {
  background: #f0e2d6 !important;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce .woocommerce-cart-form td.actions button[name="update_cart"]:not(:disabled):hover {
  background: #dfc5ae !important;
}

/* The mobile transparent header's 38px logo extends below its own box. */
@media (max-width: 767px) {
  body.woocommerce-cart.kf-cart-clean #main #content-wrap {
    padding-top: 50px !important;
  }
}

/* Only the successful, reversible item removal notice gets the calm palette. */
html body.woocommerce-cart.kf-cart-clean .woocommerce .woocommerce-message:has(a:is(.restore-item,[href*="undo_item="])) {
  box-sizing: border-box;
  padding: .8rem 1rem !important;
  margin-bottom: .95rem !important;
  border: 1px solid #e4d3c7 !important;
  border-radius: .6rem;
  background: #faf4ed !important;
  color: #3e271d !important;
  box-shadow: none !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce .woocommerce-message:has(a:is(.restore-item,[href*="undo_item="]))::before {
  display: none !important;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce .woocommerce-message a:is(.restore-item,[href*="undo_item="]) {
  display: inline-flex !important;
  float: none !important;
  align-items: center;
  min-height: 44px;
  padding: .2rem .25rem;
  margin: 0 0 0 .4rem;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #641f30 !important;
  box-shadow: none !important;
  font: inherit !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: underline !important;
  text-underline-offset: .15em;
}
html body.woocommerce-cart.kf-cart-clean .woocommerce .woocommerce-message a:is(.restore-item,[href*="undo_item="]):focus-visible {
  outline: 2px solid #641f30;
  outline-offset: 2px;
}
