/**
 * MITA Cart Page
 * Scoped to WooCommerce cart only.
 */

body.woocommerce-cart {
  --mita-primary: #ffb300;
  --mita-primary-dark: #ff9800;
  --mita-text: #111827;
  --mita-muted: #6b7280;
  --mita-border: #eeeeee;
  --mita-soft: #fff8e6;
  --mita-danger: #ef4444;
  --mita-success: #16a34a;
  --mita-cart-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  --mita-cart-shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.05);
  background: linear-gradient(180deg, #fff 0%, #fffaf0 42%, #fff 100%);
  color: var(--mita-text);
}

body.woocommerce-cart .page-wrapper,
body.woocommerce-cart .cart-container {
  padding-top: 22px;
  padding-bottom: 0;
}

body.woocommerce-cart .mita-cart-wrap {
  max-width: 1240px;
  margin: 0 auto 46px;
  padding: 0 16px;
}

body.woocommerce-cart .mita-cart-title {
  display: block;
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid rgba(246, 168, 0, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, #fffdf7 0%, #fff8e6 100%);
  box-shadow: var(--mita-cart-shadow-soft);
}

body.woocommerce-cart .mita-cart-title__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.woocommerce-cart .mita-cart-title__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--mita-primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.woocommerce-cart .mita-cart-title h1 {
  margin: 0;
  color: var(--mita-text);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

body.woocommerce-cart .mita-cart-title h1 span {
  color: var(--mita-primary-dark);
  font-size: 0.82em;
}

body.woocommerce-cart .mita-cart-title p {
  max-width: 390px;
  margin: 0;
  color: var(--mita-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

body.woocommerce-cart .mita-cart-wrap > .woocommerce.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 320px);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
}

body.woocommerce-cart .mita-cart-wrap > .woocommerce.row::before,
body.woocommerce-cart .mita-cart-wrap > .woocommerce.row::after {
  display: none;
}

body.woocommerce-cart .mita-cart-wrap > .woocommerce.row > .col,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-wrapper {
  width: 100%;
  max-width: none;
  flex: none;
  padding: 0;
}

body.woocommerce-cart .mita-cart-wrap > .woocommerce.row > .col {
  border-left: 0;
}

body.woocommerce-cart .cart-wrapper,
body.woocommerce-cart .cart-collaterals .cart-sidebar,
body.woocommerce-cart .cross-sells,
body.woocommerce-cart .mita-cart-benefits,
body.woocommerce-cart .text-center.pt.pb {
  border: 1px solid rgba(238, 238, 238, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--mita-cart-shadow);
}

body.woocommerce-cart .cart-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

body.woocommerce-cart .shop_table.cart {
  table-layout: fixed;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

body.woocommerce-cart .shop_table.cart thead th {
  padding: 14px 12px 12px;
  border: 0;
  border-bottom: 1px solid var(--mita-border);
  background: #fffdf8;
  color: var(--mita-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

body.woocommerce-cart .shop_table.cart thead th.product-name {
  text-align: left;
}

body.woocommerce-cart .shop_table.cart th.product-name,
body.woocommerce-cart .shop_table.cart td.product-name {
  width: 44%;
  min-width: 0;
}

body.woocommerce-cart .shop_table.cart th.product-price,
body.woocommerce-cart .shop_table.cart td.product-price {
  width: 16%;
  min-width: 0;
  white-space: nowrap;
}

body.woocommerce-cart .shop_table.cart th.product-quantity,
body.woocommerce-cart .shop_table.cart td.product-quantity {
  width: 20%;
  min-width: 0;
  white-space: nowrap;
}

body.woocommerce-cart .shop_table.cart th.product-subtotal,
body.woocommerce-cart .shop_table.cart td.product-subtotal {
  width: 20%;
  min-width: 0;
  overflow: visible;
  text-align: right;
  white-space: nowrap;
}

body.woocommerce-cart .shop_table.cart td {
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid rgba(238, 238, 238, 0.9);
  vertical-align: middle;
}

body.woocommerce-cart .shop_table.cart tr.cart_item:last-of-type td {
  border-bottom: 0;
}

body.woocommerce-cart .shop_table.cart td.product-remove {
  width: 42px;
  padding-right: 0;
  text-align: left;
}

body.woocommerce-cart .shop_table.cart .remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  border: 1px solid rgba(239, 68, 68, 0.14);
  border-radius: 999px;
  background: #fff7f7;
  color: var(--mita-danger);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.woocommerce-cart .shop_table.cart .remove:hover {
  background: var(--mita-danger);
  color: #fff;
  transform: translateY(-1px);
}

body.woocommerce-cart .shop_table.cart td.product-thumbnail {
  width: 104px;
}

body.woocommerce-cart .shop_table.cart td.product-thumbnail a,
body.woocommerce-cart .shop_table.cart td.product-thumbnail img {
  display: block;
}

body.woocommerce-cart .shop_table.cart td.product-thumbnail img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border: 1px solid rgba(238, 238, 238, 0.95);
  border-radius: 12px;
  background: #fffaf0;
  padding: 6px;
}

body.woocommerce-cart .shop_table.cart td.product-name {
  min-width: 0;
}

body.woocommerce-cart .mita-cart-product,
body.woocommerce-cart .shop_table.cart td.product-name .mita-cart-product {
  display: grid;
  grid-template-columns: 26px 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

body.woocommerce-cart .mita-cart-product__remove {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.woocommerce-cart .mita-cart-product__thumb,
body.woocommerce-cart .shop_table.cart .product-thumbnail {
  display: block;
  min-width: 0;
}

body.woocommerce-cart .mita-cart-product__thumb a,
body.woocommerce-cart .mita-cart-product__thumb img,
body.woocommerce-cart .shop_table.cart .product-thumbnail a,
body.woocommerce-cart .shop_table.cart .product-thumbnail img {
  display: block;
}

body.woocommerce-cart .mita-cart-product__thumb img,
body.woocommerce-cart .shop_table.cart .product-thumbnail img,
body.woocommerce-cart .shop_table.cart td.product-name img {
  width: 64px;
  height: 64px;
  max-width: 64px;
  object-fit: contain;
  border: 1px solid rgba(238, 238, 238, 0.95);
  border-radius: 12px;
  background: #fffaf0;
  padding: 5px;
}

body.woocommerce-cart .mita-cart-product__info {
  min-width: 0;
}

body.woocommerce-cart .mita-cart-product__title,
body.woocommerce-cart .mita-cart-product__title a,
body.woocommerce-cart .shop_table.cart td.product-name > a {
  display: block;
  overflow: hidden;
  color: var(--mita-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.woocommerce-cart .mita-cart-product__title a:hover,
body.woocommerce-cart .shop_table.cart td.product-name > a:hover {
  color: var(--mita-primary-dark);
}

body.woocommerce-cart .mita-cart-product__meta {
  margin-top: 5px;
}

body.woocommerce-cart .mita-cart-product__meta:empty {
  display: none;
}

body.woocommerce-cart .shop_table.cart .variation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  color: var(--mita-muted);
  font-size: 11px;
  font-weight: 700;
}

body.woocommerce-cart .shop_table.cart .variation dt,
body.woocommerce-cart .shop_table.cart .variation dd,
body.woocommerce-cart .shop_table.cart .variation p {
  margin: 0;
}

body.woocommerce-cart .shop_table.cart td.product-price,
body.woocommerce-cart .shop_table.cart td.product-subtotal {
  color: var(--mita-text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

body.woocommerce-cart .shop_table.cart td.product-subtotal {
  color: var(--mita-text);
}

body.woocommerce-cart .shop_table.cart .amount {
  font-weight: 900;
}

body.woocommerce-cart .shop_table.cart td.product-subtotal .amount {
  display: inline-block;
  color: var(--mita-text);
  font-weight: 900;
  max-width: 100%;
  white-space: nowrap;
}

body.woocommerce-cart .quantity.buttons_added {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
  border: 1px solid var(--mita-border);
  border-radius: 999px;
  background: #fff;
}

body.woocommerce-cart .quantity.buttons_added input[type="button"],
body.woocommerce-cart .quantity.buttons_added input[type="number"] {
  height: 34px;
  min-height: 34px;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--mita-text);
}

body.woocommerce-cart .quantity.buttons_added input[type="button"] {
  width: 28px;
  color: var(--mita-primary-dark);
  font-weight: 900;
}

body.woocommerce-cart .quantity.buttons_added input[type="number"] {
  width: 36px;
  font-weight: 900;
}

body.woocommerce-cart .quantity .qty-dev {
  display: none;
}

body.woocommerce-cart .shop_table.cart td.actions {
  padding: 18px;
  background: #fffdf8;
}

body.woocommerce-cart .shop_table.cart td.actions::before,
body.woocommerce-cart .shop_table.cart td.actions::after {
  display: none;
}

body.woocommerce-cart .shop_table.cart td.actions.clear {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 0;
}

body.woocommerce-cart .shop_table.cart td.actions .button,
body.woocommerce-cart .shop_table.cart td.actions .mita-cart-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

body.woocommerce-cart .shop_table.cart td.actions .mita-cart-continue {
  border: 1px solid var(--mita-primary);
  background: #fff;
  color: var(--mita-primary-dark);
  box-shadow: none;
}

body.woocommerce-cart .shop_table.cart td.actions button[name="update_cart"] {
  float: none;
  margin-left: auto;
  border: 1px solid var(--mita-primary);
  background: var(--mita-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 179, 0, 0.2);
}

body.woocommerce-cart .shop_table.cart td.actions button[name="update_cart"]:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

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

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

body.woocommerce-cart .cart-collaterals .col-inner {
  width: 100%;
}

body.woocommerce-cart .cart_totals {
  width: 100%;
  margin: 0;
}

body.woocommerce-cart .cart_totals h2 {
  margin: 0 0 16px;
  color: var(--mita-text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

body.woocommerce-cart .cart_totals .shop_table {
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

body.woocommerce-cart .cart_totals .shop_table th,
body.woocommerce-cart .cart_totals .shop_table td {
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(238, 238, 238, 0.92);
  color: var(--mita-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  vertical-align: top;
}

body.woocommerce-cart .cart_totals .shop_table td {
  color: var(--mita-text);
  text-align: right;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  border-bottom: 0;
  color: var(--mita-text);
  font-size: 16px;
  font-weight: 900;
}

body.woocommerce-cart .cart_totals .order-total .amount {
  color: var(--mita-primary-dark);
  font-size: 22px;
}

body.woocommerce-cart .cart_totals .shipping__inner {
  padding: 13px 0;
  text-align: left;
}

body.woocommerce-cart .cart_totals .shipping__table {
  width: 100%;
  margin: 0;
  border: 0;
}

body.woocommerce-cart .cart_totals .shipping__table th,
body.woocommerce-cart .cart_totals .shipping__table td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
}

body.woocommerce-cart .cart_totals .shipping__table th {
  margin-bottom: 8px;
  color: var(--mita-muted);
  font-size: 14px;
  font-weight: 800;
}

body.woocommerce-cart .cart_totals .shipping__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-cart .cart_totals .shipping__list_item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--mita-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

body.woocommerce-cart .cart_totals .shipping__list_item input {
  margin-top: 3px;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
body.woocommerce-cart .cart_totals .woocommerce-shipping-contents {
  margin: 8px 0 0;
  color: var(--mita-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

body.woocommerce-cart .cart_totals .shipping-calculator-button {
  display: inline-flex;
  margin-top: 8px;
  color: var(--mita-primary-dark);
  font-size: 13px;
  font-weight: 900;
}

body.woocommerce-cart .wc-proceed-to-checkout {
  margin: 18px 0 0;
  padding: 0;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mita-primary), var(--mita-primary-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
  box-shadow: 0 14px 28px rgba(255, 179, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 152, 0, 0.34);
}

body.woocommerce-cart .checkout_coupon {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(238, 238, 238, 0.92);
}

body.woocommerce-cart .checkout_coupon .coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
}

body.woocommerce-cart .checkout_coupon .widget-title {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--mita-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: none;
}

body.woocommerce-cart .checkout_coupon .widget-title i,
body.woocommerce-cart .checkout_coupon .widget-title svg {
  color: var(--mita-primary-dark);
}

body.woocommerce-cart .checkout_coupon input.input-text {
  width: 100%;
  height: 44px;
  margin: 0;
  border: 1px solid var(--mita-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: var(--mita-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 44px;
  padding: 0 14px;
}

body.woocommerce-cart .checkout_coupon input.input-text:focus {
  border-color: var(--mita-primary);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.14);
}

body.woocommerce-cart .checkout_coupon button.button {
  width: auto;
  min-width: 104px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--mita-primary);
  border-radius: 999px;
  background: var(--mita-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  box-shadow: 0 10px 20px rgba(255, 179, 0, 0.18);
}

body.woocommerce-cart .cross-sells,
body.woocommerce-cart .mita-cart-benefits {
  margin-top: 30px;
  padding: 22px;
}

body.woocommerce-cart .mita-cart-section-heading {
  margin-bottom: 16px;
  text-align: center;
}

body.woocommerce-cart .mita-cart-section-heading span {
  display: block;
  margin-bottom: 5px;
  color: var(--mita-primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body.woocommerce-cart .mita-cart-section-heading h2,
body.woocommerce-cart .cross-sells > h2 {
  margin: 0 0 16px;
  color: var(--mita-text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

body.woocommerce-cart .cross-sells .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

body.woocommerce-cart .cross-sells .products::before,
body.woocommerce-cart .cross-sells .products::after {
  display: none;
}

body.woocommerce-cart .cross-sells .product,
body.woocommerce-cart .cross-sells .product-small.col {
  width: auto !important;
  max-width: none;
  flex: none;
  padding: 0 !important;
}

body.woocommerce-cart .cross-sells .product-small.box,
body.woocommerce-cart .cross-sells .product .box {
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 238, 238, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-cart .cross-sells .product-small.box:hover,
body.woocommerce-cart .cross-sells .product .box:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

body.woocommerce-cart .cross-sells .box-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #fffaf0;
  padding: 14px;
}

body.woocommerce-cart .cross-sells .image-cover,
body.woocommerce-cart .cross-sells .image-fade_in_back,
body.woocommerce-cart .cross-sells .image-none {
  width: 100%;
  height: 100%;
  padding-top: 0 !important;
}

body.woocommerce-cart .cross-sells .box-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.woocommerce-cart .cross-sells .box-text {
  padding: 12px 14px 14px;
}

body.woocommerce-cart .cross-sells .product-title a {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: var(--mita-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.woocommerce-cart .cross-sells .price {
  margin-top: 6px;
  color: var(--mita-primary-dark);
  font-size: 14px;
  font-weight: 900;
}

body.woocommerce-cart .cross-sells .add-to-cart-button,
body.woocommerce-cart .cross-sells .add_to_cart_button,
body.woocommerce-cart .cross-sells .add-to-cart-grid {
  display: none !important;
}

body.woocommerce-cart .mita-cart-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-color: rgba(246, 168, 0, 0.18);
  background: linear-gradient(135deg, #fffdf8, var(--mita-soft));
}

body.woocommerce-cart .cross-sells + .mita-cart-benefits {
  margin-top: 24px;
}

body.woocommerce-cart .mita-cart-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 18px;
  border-right: 1px solid rgba(246, 168, 0, 0.16);
}

body.woocommerce-cart .mita-cart-benefit:last-child {
  border-right: 0;
}

body.woocommerce-cart .mita-cart-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 179, 0, 0.14);
  color: var(--mita-primary-dark);
}

body.woocommerce-cart .mita-cart-benefit__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

body.woocommerce-cart .mita-cart-benefit__copy {
  display: grid;
  gap: 3px;
}

body.woocommerce-cart .mita-cart-benefit__copy strong {
  color: var(--mita-text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

body.woocommerce-cart .mita-cart-benefit__copy small {
  color: var(--mita-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

body.woocommerce-cart .woocommerce-message {
  border-color: rgba(22, 163, 74, 0.18);
  background: #ecfdf3;
  color: #166534;
}

body.woocommerce-cart .woocommerce-info {
  border-color: rgba(37, 99, 235, 0.16);
  background: #eff6ff;
  color: #1d4ed8;
}

body.woocommerce-cart .woocommerce-error {
  border-color: rgba(239, 68, 68, 0.18);
  background: #fef2f2;
  color: #b91c1c;
}

body.woocommerce-cart .text-center.pt.pb {
  max-width: 760px;
  margin: 36px auto 52px;
  padding: 42px 26px;
}

body.woocommerce-cart .mita-empty-cart__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 179, 0, 0.14);
  color: var(--mita-primary-dark);
}

body.woocommerce-cart .mita-empty-cart__icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

body.woocommerce-cart .mita-empty-cart h1 {
  margin: 0 0 10px;
  color: var(--mita-text);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.15;
}

body.woocommerce-cart .mita-empty-cart p {
  max-width: 480px;
  margin: 0 auto 20px;
  color: var(--mita-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

body.woocommerce-cart .return-to-shop .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mita-primary), var(--mita-primary-dark));
  color: #fff;
  font-weight: 900;
  text-transform: none;
  box-shadow: 0 14px 28px rgba(255, 179, 0, 0.26);
}

@media (min-width: 1025px) {
  body.woocommerce-cart .cart-collaterals .cart-sidebar {
    position: sticky;
    top: var(--mita-sticky-offset, 120px);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.woocommerce-cart .mita-cart-wrap > .woocommerce.row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.woocommerce-cart .shop_table.cart th.product-name,
  body.woocommerce-cart .shop_table.cart td.product-name {
    width: 42%;
  }

  body.woocommerce-cart .shop_table.cart th.product-price,
  body.woocommerce-cart .shop_table.cart td.product-price {
    min-width: 0;
  }

  body.woocommerce-cart .shop_table.cart th.product-quantity,
  body.woocommerce-cart .shop_table.cart td.product-quantity {
    min-width: 0;
  }

  body.woocommerce-cart .shop_table.cart th.product-subtotal,
  body.woocommerce-cart .shop_table.cart td.product-subtotal {
    min-width: 0;
  }

  body.woocommerce-cart .cross-sells .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  body.woocommerce-cart .mita-cart-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce-cart .mita-cart-benefit:nth-child(2n) {
    border-right: 0;
  }

  body.woocommerce-cart .mita-cart-benefit:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(246, 168, 0, 0.16);
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart .mita-cart-wrap {
    margin-bottom: 34px;
    padding: 0 12px;
  }

  body.woocommerce-cart .mita-cart-title {
    display: block;
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 18px;
  }

  body.woocommerce-cart .mita-cart-title__content {
    display: block;
  }

  body.woocommerce-cart .mita-cart-title h1 {
    font-size: 30px;
  }

  body.woocommerce-cart .mita-cart-title p {
    margin-top: 8px;
    font-size: 12px;
  }

  body.woocommerce-cart .mita-cart-wrap > .woocommerce.row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.woocommerce-cart .cart-wrapper,
  body.woocommerce-cart .cart-collaterals .cart-sidebar,
  body.woocommerce-cart .cross-sells,
  body.woocommerce-cart .mita-cart-benefits,
  body.woocommerce-cart .text-center.pt.pb {
    border-radius: 18px;
  }

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

  body.woocommerce-cart .shop_table.cart thead {
    display: none;
  }

  body.woocommerce-cart .shop_table.cart tbody {
    padding: 12px;
  }

  body.woocommerce-cart .shop_table.cart tr.cart_item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(238, 238, 238, 0.95);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  }

  body.woocommerce-cart .shop_table.cart tr.cart_item:last-of-type {
    margin-bottom: 0;
  }

  body.woocommerce-cart .shop_table.cart tr.cart_item td {
    padding: 0;
    border-bottom: 0;
  }

  body.woocommerce-cart .shop_table.cart td.product-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: auto;
  }

  body.woocommerce-cart .shop_table.cart .remove {
    width: 28px;
    height: 28px;
    min-height: 28px;
    background: rgba(255, 255, 255, 0.94);
  }

  body.woocommerce-cart .shop_table.cart td.product-thumbnail {
    grid-row: 1 / span 4;
    grid-column: 1;
  }

  body.woocommerce-cart .shop_table.cart td.product-thumbnail img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    padding: 5px;
  }

  body.woocommerce-cart .shop_table.cart td.product-name {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding-right: 0;
  }

  body.woocommerce-cart .mita-cart-product,
  body.woocommerce-cart .shop_table.cart td.product-name .mita-cart-product {
    grid-template-columns: 28px 64px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  body.woocommerce-cart .mita-cart-product__thumb img,
  body.woocommerce-cart .shop_table.cart .product-thumbnail img,
  body.woocommerce-cart .shop_table.cart td.product-name img {
    width: 64px;
    height: 64px;
    max-width: 64px;
    border-radius: 12px;
    padding: 5px;
  }

  body.woocommerce-cart .shop_table.cart td.product-price,
  body.woocommerce-cart .shop_table.cart td.product-quantity,
  body.woocommerce-cart .shop_table.cart td.product-subtotal {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding-right: 0;
  }

  body.woocommerce-cart .mita-cart-product__title,
  body.woocommerce-cart .mita-cart-product__title a,
  body.woocommerce-cart .shop_table.cart td.product-name > a {
    font-size: 14px;
    line-height: 1.35;
  }

  body.woocommerce-cart .mobile-product-price {
    display: none !important;
  }

  body.woocommerce-cart .shop_table.cart td.product-price,
  body.woocommerce-cart .shop_table.cart td.product-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--mita-text);
    font-size: 13px;
  }

  body.woocommerce-cart .shop_table.cart td.product-price::before,
  body.woocommerce-cart .shop_table.cart td.product-quantity::before,
  body.woocommerce-cart .shop_table.cart td.product-subtotal::before {
    content: attr(data-title);
    color: var(--mita-muted);
    font-size: 12px;
    font-weight: 800;
  }

  body.woocommerce-cart .shop_table.cart td.product-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.woocommerce-cart .shop_table.cart td.product-subtotal {
    color: var(--mita-text);
  }

  body.woocommerce-cart .shop_table.cart tr:not(.cart_item) td.actions.clear {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 12px 12px;
    background: transparent;
  }

  body.woocommerce-cart .shop_table.cart td.actions .button,
  body.woocommerce-cart .shop_table.cart td.actions .mita-cart-continue {
    width: 100%;
    min-height: 44px;
  }

  body.woocommerce-cart .shop_table.cart td.actions button[name="update_cart"] {
    margin-left: 0;
  }

  body.woocommerce-cart .cart-collaterals .cart-sidebar {
    padding: 16px;
  }

  body.woocommerce-cart .cart_totals h2 {
    font-size: 20px;
  }

  body.woocommerce-cart .checkout_coupon .coupon {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.woocommerce-cart .checkout_coupon button.button {
    width: 100%;
    min-width: 0;
  }

  body.woocommerce-cart .cross-sells,
  body.woocommerce-cart .mita-cart-benefits {
    margin-top: 22px;
    padding: 16px;
  }

  body.woocommerce-cart .cross-sells .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.woocommerce-cart .cross-sells .box-image {
    margin: 0;
    padding: 10px;
  }

  body.woocommerce-cart .cross-sells .box-text {
    padding: 10px 10px 12px;
  }

  body.woocommerce-cart .cross-sells .product-title a {
    min-height: 38px;
    font-size: 13px;
  }

  body.woocommerce-cart .cross-sells .price {
    font-size: 14px;
  }

  body.woocommerce-cart .mita-cart-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  body.woocommerce-cart .mita-cart-benefit {
    min-height: 76px;
    padding: 13px;
    border-right: 1px solid rgba(246, 168, 0, 0.16);
    border-bottom: 1px solid rgba(246, 168, 0, 0.16);
  }

  body.woocommerce-cart .mita-cart-benefit:nth-child(2n) {
    border-right: 0;
  }

  body.woocommerce-cart .mita-cart-benefit:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  body.woocommerce-cart .mita-cart-benefit__icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  body.woocommerce-cart .mita-cart-benefit__copy strong {
    font-size: 12px;
  }

  body.woocommerce-cart .mita-cart-benefit__copy small {
    font-size: 11px;
  }

  body.woocommerce-cart .text-center.pt.pb {
    margin: 22px 12px 34px;
    padding: 32px 18px;
  }
}

@media (max-width: 420px) {
  body.woocommerce-cart .cross-sells .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  body.woocommerce-cart .cross-sells .product,
  body.woocommerce-cart .cross-sells .product-small.col {
    flex: none;
    scroll-snap-align: none;
  }

  body.woocommerce-cart .cross-sells .products::-webkit-scrollbar {
    display: none;
  }
}
