/* =========================================================
   KAMAN CART
   Dedicated cart-page presentation. Business logic remains
   in WooCommerce / Kaman plugins; this file is visual only.
========================================================= */

body.woocommerce-cart .kaman-content {
  width: min(1180px, calc(100% - 32px));
  padding-top: 32px;
  padding-bottom: 56px;
}

/* The cart already has its own visual heading inside the cart experience. */
body.woocommerce-cart .kaman-page-title {
  display: none;
}

body.woocommerce-cart .kaman-entry,
body.woocommerce-cart .woocommerce {
  width: 100%;
  min-width: 0;
}

/* Keep floated WooCommerce columns inside their parent so the footer follows
   the actual cart height instead of leaving an artificial empty region. */
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .kaman-entry {
  display: flow-root;
}

/* ---------------------------------------------------------
   Notices / messages
--------------------------------------------------------- */
body.woocommerce-cart .woocommerce-notices-wrapper {
  width: 100%;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
  margin: 0 0 20px;
  padding: 16px 18px 16px 48px;
  border-radius: 12px;
  box-shadow: none;
  line-height: 1.45;
}

/* ---------------------------------------------------------
   Main cart / totals columns
--------------------------------------------------------- */
body.woocommerce-cart .woocommerce-cart-form {
  float: left;
  width: calc(100% - 390px);
  max-width: none;
  margin: 0;
}

body.woocommerce-cart .cart-collaterals {
  float: right;
  width: 350px;
  margin: 0;
}

body.woocommerce-cart .cart-collaterals::before,
body.woocommerce-cart .cart-collaterals::after {
  display: none;
}

/* ---------------------------------------------------------
   Product table
--------------------------------------------------------- */
body.woocommerce-cart table.shop_table.cart {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2e7eb;
  border-radius: 18px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 32, .06);
}

body.woocommerce-cart table.shop_table.cart thead th {
  padding: 16px 14px;
  border: 0;
  background: var(--kaman-navy);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
}

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

body.woocommerce-cart table.shop_table.cart tbody td {
  padding: 18px 14px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  vertical-align: middle;
  background: #fff;
  line-height: 1.4;
}

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

body.woocommerce-cart table.shop_table.cart .product-remove {
  width: 48px;
  padding-left: 12px;
  padding-right: 6px;
  text-align: center;
}

body.woocommerce-cart table.shop_table.cart .product-remove a.remove {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 1px solid #ffd0da;
  border-radius: 10px;
  background: #fff5f7;
  color: var(--kaman-pink) !important;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}

body.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover {
  background: var(--kaman-pink);
  color: #fff !important;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail {
  width: 74px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail a {
  display: grid;
  place-items: center;
  width: 58px;
  height: 66px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid #edf0f2;
  border-radius: 12px;
  background: #fff;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

body.woocommerce-cart table.shop_table.cart .product-name {
  min-width: 210px;
  text-align: left;
}

body.woocommerce-cart table.shop_table.cart .product-name > a {
  display: inline-block;
  color: var(--kaman-navy);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  text-decoration: none;
}

body.woocommerce-cart table.shop_table.cart .product-name > a:hover {
  color: var(--kaman-pink);
}

body.woocommerce-cart table.shop_table.cart .product-name .variation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 6px 0 0;
  color: var(--kaman-muted);
  font-size: 12px;
  line-height: 1.35;
}

body.woocommerce-cart table.shop_table.cart .product-name .variation dt,
body.woocommerce-cart table.shop_table.cart .product-name .variation dd,
body.woocommerce-cart table.shop_table.cart .product-name .variation p {
  float: none;
  clear: none;
  display: inline;
  margin: 0;
  padding: 0;
}

body.woocommerce-cart table.shop_table.cart .product-price,
body.woocommerce-cart table.shop_table.cart .product-subtotal {
  white-space: nowrap;
  color: var(--kaman-ink);
  font-weight: 800;
  text-align: center;
}

body.woocommerce-cart table.shop_table.cart .quantity {
  display: inline-flex;
  margin: 0;
}

body.woocommerce-cart table.shop_table.cart .quantity .qty {
  width: 68px;
  min-height: 44px;
  margin: 0;
  padding: 8px 6px;
  border: 1px solid #d6dde3;
  border-radius: 10px;
  background: #fff;
  color: var(--kaman-ink);
  font-weight: 700;
  text-align: center;
  box-shadow: none;
}

body.woocommerce-cart table.shop_table.cart .quantity .qty:focus {
  outline: none;
  border-color: #7f9aad;
  box-shadow: 0 0 0 3px rgba(0, 63, 92, .09);
}

/* ---------------------------------------------------------
   Cart actions / coupon / KamanPoints controls
--------------------------------------------------------- */
body.woocommerce-cart table.shop_table.cart td.actions {
  padding: 14px 16px;
  border-top: 1px solid #e8edf0;
  background: #f7f9fa;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: left;
  margin: 0;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon label {
  display: none;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text,
body.woocommerce-cart .woocommerce-cart-form input[type="text"],
body.woocommerce-cart .woocommerce-cart-form input[type="number"] {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d6dde3;
  border-radius: 9px;
  background: #fff;
  color: var(--kaman-ink);
  box-shadow: none;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
  width: 120px;
  margin: 0;
}

body.woocommerce-cart table.shop_table.cart td.actions .button,
body.woocommerce-cart .woocommerce-cart-form button.button,
body.woocommerce-cart .woocommerce-cart-form input.button {
  min-height: 42px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid #ccd6dd;
  border-radius: 9px;
  background: #fff;
  color: var(--kaman-navy);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}

body.woocommerce-cart table.shop_table.cart td.actions .button:hover,
body.woocommerce-cart .woocommerce-cart-form button.button:hover,
body.woocommerce-cart .woocommerce-cart-form input.button:hover {
  border-color: var(--kaman-navy);
  background: #f0f5f7;
  color: var(--kaman-navy);
}

body.woocommerce-cart table.shop_table.cart td.actions > .button[name="update_cart"] {
  float: right;
  border-color: #819cae;
  background: #819cae;
  color: #fff;
}

body.woocommerce-cart table.shop_table.cart td.actions > .button[name="update_cart"]:hover {
  border-color: var(--kaman-navy);
  background: var(--kaman-navy);
  color: #fff;
}

/* KamanPoints / custom cart extensions inherit the same form rhythm. */
body.woocommerce-cart .woocommerce-cart-form ~ *,
body.woocommerce-cart .woocommerce-cart-form + * {
  box-sizing: border-box;
}

body.woocommerce-cart .woocommerce-cart-form p,
body.woocommerce-cart .woocommerce-cart-form label {
  line-height: 1.45;
}

body.woocommerce-cart .woocommerce-cart-form input + button,
body.woocommerce-cart .woocommerce-cart-form input + .button {
  margin-left: 8px;
}

/* ---------------------------------------------------------
   Totals card
--------------------------------------------------------- */
body.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
  margin: 0;
  padding: 24px 22px 22px;
  border: 1px solid #e2e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 32, .07);
}

body.woocommerce-cart .cart-collaterals .cart_totals > h2 {
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e8ecef;
  color: var(--kaman-ink);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

body.woocommerce-cart .cart-collaterals table.shop_table {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-collapse: collapse;
  table-layout: auto;
  background: transparent;
}

body.woocommerce-cart .cart-collaterals table.shop_table tr {
  border-bottom: 1px solid #edf0f2;
}

body.woocommerce-cart .cart-collaterals table.shop_table tr:last-child {
  border-bottom: 0;
}

body.woocommerce-cart .cart-collaterals table.shop_table th,
body.woocommerce-cart .cart-collaterals table.shop_table td {
  border: 0;
  background: transparent;
  vertical-align: top;
  line-height: 1.45;
}

body.woocommerce-cart .cart-collaterals table.shop_table th {
  width: 46%;
  padding: 15px 10px 15px 0;
  color: #627381;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  word-break: normal;
  overflow-wrap: normal;
}

body.woocommerce-cart .cart-collaterals table.shop_table td {
  width: 54%;
  padding: 15px 0 15px 10px;
  color: var(--kaman-ink);
  font-size: 13px;
  text-align: right;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.woocommerce-cart .cart-collaterals .cart-subtotal td,
body.woocommerce-cart .cart-collaterals .cart-subtotal th {
  padding-top: 14px;
}

/* Shipping: keep the method label readable instead of squeezing every word
   into its own line. */
body.woocommerce-cart .cart-collaterals tr.woocommerce-shipping-totals td,
body.woocommerce-cart .cart-collaterals tr.shipping td {
  text-align: left;
}

body.woocommerce-cart .cart-collaterals #shipping_method,
body.woocommerce-cart .cart-collaterals .woocommerce-shipping-methods {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-cart .cart-collaterals #shipping_method li,
body.woocommerce-cart .cart-collaterals .woocommerce-shipping-methods li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e2e7eb;
  border-radius: 10px;
  background: #f7f9fa;
  line-height: 1.35;
  text-indent: 0;
}

body.woocommerce-cart .cart-collaterals #shipping_method input,
body.woocommerce-cart .cart-collaterals .woocommerce-shipping-methods input {
  margin: 3px 0 0;
}

body.woocommerce-cart .cart-collaterals #shipping_method label,
body.woocommerce-cart .cart-collaterals .woocommerce-shipping-methods label {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--kaman-ink);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

body.woocommerce-cart .cart-collaterals select {
  width: 100%;
  min-height: 42px;
  padding: 8px 34px 8px 10px;
  border: 1px solid #d6dde3;
  border-radius: 9px;
  background: #fff;
  color: var(--kaman-ink);
  line-height: 1.35;
}

body.woocommerce-cart .woocommerce-shipping-destination {
  margin: 10px 0 0;
  color: #657783;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

body.woocommerce-cart .woocommerce-shipping-calculator {
  margin: 8px 0 0;
  text-align: right;
}

body.woocommerce-cart .shipping-calculator-button {
  color: var(--kaman-navy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* Make long custom totals labels such as KamanPoints readable. */
body.woocommerce-cart .cart-collaterals table.shop_table th,
body.woocommerce-cart .cart-collaterals table.shop_table th * {
  line-height: 1.35;
}

body.woocommerce-cart .cart-collaterals .order-total th,
body.woocommerce-cart .cart-collaterals .order-total td {
  padding-top: 18px;
  padding-bottom: 18px;
  vertical-align: middle;
}

body.woocommerce-cart .cart-collaterals .order-total th {
  color: var(--kaman-ink);
  font-size: 14px;
  font-weight: 800;
}

body.woocommerce-cart .cart-collaterals .order-total td {
  color: var(--kaman-pink);
}

body.woocommerce-cart .cart-collaterals .order-total .amount {
  color: var(--kaman-pink);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

body.woocommerce-cart .cart-collaterals .order-total small,
body.woocommerce-cart .cart-collaterals .includes_tax {
  display: inline;
  color: #73818c;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}

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

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.button.alt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 18px;
  border: 1px solid var(--kaman-pink);
  border-radius: 12px;
  background: var(--kaman-pink);
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(255, 35, 88, .18);
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.button.alt:hover {
  border-color: #e91d4e;
  background: #e91d4e;
  color: #fff;
}

/* ---------------------------------------------------------
   Empty cart
--------------------------------------------------------- */
body.woocommerce-cart .wc-empty-cart-message,
body.woocommerce-cart .cart-empty {
  margin: 28px 0 18px;
  text-align: center;
}

body.woocommerce-cart .return-to-shop {
  text-align: center;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 980px) {
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals {
    float: none;
    width: 100%;
  }

  body.woocommerce-cart .cart-collaterals {
    margin-top: 24px;
  }

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

@media (max-width: 768px) {
  body.woocommerce-cart .kaman-content {
    width: min(100% - 24px, 720px);
    padding-top: 20px;
    padding-bottom: 40px;
  }

  body.woocommerce-cart table.shop_table.cart {
    border-radius: 14px;
    box-shadow: none;
  }

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

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
    display: grid;
    grid-template-columns: 44px 70px minmax(0, 1fr);
    gap: 0 8px;
    padding: 14px 12px;
    border-bottom: 1px solid #edf0f2;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 5px 0;
    border: 0;
    background: transparent;
    text-align: left !important;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td::before {
    display: none;
  }

  body.woocommerce-cart table.shop_table.cart .product-remove {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

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

  body.woocommerce-cart table.shop_table.cart .product-thumbnail a {
    width: 64px;
    height: 72px;
  }

  body.woocommerce-cart table.shop_table.cart .product-name {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
  }

  body.woocommerce-cart table.shop_table.cart .product-price,
  body.woocommerce-cart table.shop_table.cart .product-quantity,
  body.woocommerce-cart table.shop_table.cart .product-subtotal {
    grid-column: 3;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
  }

  body.woocommerce-cart table.shop_table.cart .product-price::before,
  body.woocommerce-cart table.shop_table.cart .product-quantity::before,
  body.woocommerce-cart table.shop_table.cart .product-subtotal::before {
    display: inline;
    min-width: 64px;
    color: var(--kaman-muted);
    font-size: 11px;
    font-weight: 700;
  }

  body.woocommerce-cart table.shop_table.cart .product-price::before { content: "Precio:"; }
  body.woocommerce-cart table.shop_table.cart .product-quantity::before { content: "Cantidad:"; }
  body.woocommerce-cart table.shop_table.cart .product-subtotal::before { content: "Subtotal:"; }

  body.woocommerce-cart table.shop_table.cart td.actions {
    display: grid;
    gap: 10px;
    padding: 14px 12px;
  }

  body.woocommerce-cart table.shop_table.cart td.actions .coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
  }

  body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
    width: 100%;
  }

  body.woocommerce-cart table.shop_table.cart td.actions > .button[name="update_cart"] {
    float: none;
    width: 100%;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    padding: 20px 16px 18px;
    border-radius: 14px;
    box-shadow: none;
  }

  body.woocommerce-cart .cart-collaterals table.shop_table th {
    width: 44%;
    padding-right: 8px;
  }

  body.woocommerce-cart .cart-collaterals table.shop_table td {
    width: 56%;
    padding-left: 8px;
  }
}

@media (max-width: 480px) {
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
    grid-template-columns: 36px 58px minmax(0, 1fr);
    gap: 0 7px;
    padding-inline: 8px;
  }

  body.woocommerce-cart table.shop_table.cart .product-remove a.remove {
    width: 30px;
    height: 30px;
  }

  body.woocommerce-cart table.shop_table.cart .product-thumbnail a {
    width: 54px;
    height: 62px;
  }

  body.woocommerce-cart table.shop_table.cart .product-name > a {
    font-size: 13px;
  }

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

  body.woocommerce-cart .cart-collaterals table.shop_table tr {
    padding: 12px 0;
  }

  body.woocommerce-cart .cart-collaterals table.shop_table th,
  body.woocommerce-cart .cart-collaterals table.shop_table td {
    padding: 2px 0;
    text-align: left;
  }

  body.woocommerce-cart .cart-collaterals tr.woocommerce-shipping-totals td,
  body.woocommerce-cart .cart-collaterals tr.shipping td {
    padding-top: 8px;
  }

  body.woocommerce-cart .cart-collaterals .order-total td {
    padding-top: 8px;
  }

  body.woocommerce-cart .woocommerce-shipping-destination,
  body.woocommerce-cart .woocommerce-shipping-calculator {
    text-align: left;
  }
}
