/* KMOTO Cart Plus */
body.kmoto-modern-cart .page-header,
body.kmoto-modern-cart .entry-header,
body.kmoto-modern-cart .woocommerce-notices-wrapper:empty {
  display: none !important;
}

body.kmoto-modern-cart .content-main,
body.kmoto-modern-cart .site-main {
  padding-top: 42px;
}

/* Keep the cart aligned with the theme's normal content width. */
body.kmoto-modern-cart .content-main > .container.narrow-container,
body.kmoto-modern-cart .site-main > .container.narrow-container {
  width: min(calc(100% - 36px), var(--kmoto-container, 1320px)) !important;
  max-width: var(--kmoto-container, 1320px) !important;
  margin-inline: auto !important;
}

body.kmoto-modern-cart .entry-content,
body.kmoto-modern-cart .entry-content > .woocommerce,
body.kmoto-modern-cart .woocommerce {
  width: 100% !important;
  max-width: 100% !important;
}

body.kmoto-modern-cart .entry-content > .woocommerce {
  margin: 0;
}

.kmoto-cart-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--kmoto-line, #e4e8ee);
}

.kmoto-cart-heading__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--kmoto-accent, #1f6fff);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kmoto-cart-heading h1 {
  margin: 0 0 6px;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: -.055em;
}

.kmoto-cart-heading p {
  margin: 0;
  color: var(--kmoto-muted, #687182);
}

.kmoto-cart-heading__continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--kmoto-line, #e4e8ee);
  border-radius: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.kmoto-cart-heading__continue:hover {
  border-color: var(--kmoto-accent, #1f6fff);
  color: var(--kmoto-accent, #1f6fff);
}

body.kmoto-modern-cart .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, .75fr);
  gap: 30px;
  align-items: start;
}

body.kmoto-modern-cart .woocommerce > .woocommerce-notices-wrapper,
body.kmoto-modern-cart .woocommerce > .kmoto-cart-heading,
body.kmoto-modern-cart .woocommerce > .woocommerce-message,
body.kmoto-modern-cart .woocommerce > .woocommerce-error,
body.kmoto-modern-cart .woocommerce > .woocommerce-info,
body.kmoto-modern-cart .woocommerce > .cross-sells {
  grid-column: 1 / -1;
}

body.kmoto-modern-cart .woocommerce-cart-form {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--kmoto-line, #e4e8ee);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

body.kmoto-modern-cart table.shop_table.cart {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
}

body.kmoto-modern-cart table.shop_table.cart thead {
  background: var(--kmoto-surface, #f5f7fa);
}

body.kmoto-modern-cart table.shop_table.cart th {
  padding: 15px 18px;
  border: 0;
  color: var(--kmoto-muted, #687182);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.kmoto-modern-cart table.shop_table.cart td {
  padding: 22px 18px;
  border-top: 1px solid var(--kmoto-line, #e4e8ee);
  vertical-align: middle;
}

body.kmoto-modern-cart td.product-remove {
  width: 42px;
  padding-right: 2px !important;
}

body.kmoto-modern-cart td.product-remove a.remove {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--kmoto-line, #e4e8ee);
  border-radius: 50%;
  color: #6f7887 !important;
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
}

body.kmoto-modern-cart td.product-remove a.remove:hover {
  border-color: #d23b4b;
  color: #fff !important;
  background: #d23b4b;
}

body.kmoto-modern-cart td.product-thumbnail {
  width: 118px;
}

body.kmoto-modern-cart td.product-thumbnail a {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--kmoto-line, #e4e8ee);
  border-radius: 14px;
  background: var(--kmoto-surface, #f5f7fa);
}

body.kmoto-modern-cart td.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

body.kmoto-modern-cart td.product-name > a {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--kmoto-ink, #101318);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.35;
}

.kmoto-cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--kmoto-muted, #687182);
  font-size: .76rem;
}

.kmoto-cart-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kmoto-cart-item-meta i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.kmoto-cart-item-meta .is-in-stock { color: #13865a; }
.kmoto-cart-item-meta .is-out-of-stock { color: #c33d45; }

body.kmoto-modern-cart td.product-price,
body.kmoto-modern-cart td.product-subtotal {
  color: var(--kmoto-ink, #101318);
  font-weight: 850;
  white-space: nowrap;
}

.kmoto-cart-qty {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 134px !important;
  min-width: 134px !important;
  max-width: 134px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--kmoto-line, #dfe4ec) !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

body.kmoto-modern-cart .woocommerce .kmoto-cart-qty > .kmoto-cart-qty__button,
body.kmoto-modern-cart .woocommerce .kmoto-cart-qty > .kmoto-cart-qty__input {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  float: none !important;
  clear: none !important;
  align-items: center !important;
  justify-content: center !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  line-height: 42px !important;
  text-align: center !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

body.kmoto-modern-cart .woocommerce .kmoto-cart-qty > .kmoto-cart-qty__button {
  flex-basis: 42px !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  color: var(--kmoto-ink, #101318) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

body.kmoto-modern-cart .woocommerce .kmoto-cart-qty > .kmoto-cart-qty__button:hover,
body.kmoto-modern-cart .woocommerce .kmoto-cart-qty > .kmoto-cart-qty__button:focus-visible {
  color: var(--kmoto-accent, #1f6fff) !important;
  background: var(--kmoto-surface, #f5f7fa) !important;
  outline: none !important;
}

body.kmoto-modern-cart .woocommerce .kmoto-cart-qty > .kmoto-cart-qty__input {
  flex-basis: 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  color: var(--kmoto-ink, #101318) !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  border-left: 1px solid var(--kmoto-line, #dfe4ec) !important;
  border-right: 1px solid var(--kmoto-line, #dfe4ec) !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

body.kmoto-modern-cart .woocommerce .kmoto-cart-qty > .kmoto-cart-qty__input::-webkit-inner-spin-button,
body.kmoto-modern-cart .woocommerce .kmoto-cart-qty > .kmoto-cart-qty__input::-webkit-outer-spin-button {
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

body.kmoto-modern-cart td.product-quantity {
  min-width: 160px !important;
}

body.kmoto-modern-cart td.actions {
  padding: 18px !important;
  background: var(--kmoto-surface, #f5f7fa);
}

body.kmoto-modern-cart td.actions .coupon {
  display: flex;
  gap: 9px;
}

body.kmoto-modern-cart td.actions .coupon input.input-text {
  width: 210px !important;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--kmoto-line, #dfe4ec);
  border-radius: 10px;
  background: #fff;
}

body.kmoto-modern-cart td.actions button.button {
  min-width: 0;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 10px;
  color: var(--kmoto-ink, #101318);
  border: 1px solid var(--kmoto-line, #dfe4ec);
  background: #fff;
}

body.kmoto-modern-cart td.actions button[name="update_cart"] {
  float: right;
}

body.kmoto-modern-cart .cart-collaterals {
  width: 100%;
  margin: 0;
}

body.kmoto-modern-cart .cart-collaterals .cart_totals {
  position: sticky;
  top: 22px;
  width: 100%;
  float: none;
  padding: 26px;
  border: 1px solid var(--kmoto-line, #e4e8ee);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 19, 24, .08);
}

body.kmoto-modern-cart .cart_totals h2 {
  margin-bottom: 20px;
  font-size: 1.45rem;
  letter-spacing: -.035em;
}

body.kmoto-modern-cart .cart_totals table.shop_table {
  margin-bottom: 20px;
  border: 0;
  border-radius: 0;
}

body.kmoto-modern-cart .cart_totals table.shop_table th,
body.kmoto-modern-cart .cart_totals table.shop_table td {
  padding: 14px 0;
  border-top: 1px solid var(--kmoto-line, #e4e8ee);
  background: transparent;
}

body.kmoto-modern-cart .cart_totals table.shop_table th {
  color: var(--kmoto-muted, #687182);
  font-weight: 700;
}

body.kmoto-modern-cart .cart_totals table.shop_table td {
  text-align: right;
  font-weight: 850;
}

body.kmoto-modern-cart .cart_totals .order-total th,
body.kmoto-modern-cart .cart_totals .order-total td {
  padding-top: 18px;
  color: var(--kmoto-ink, #101318);
  font-size: 1.12rem;
}

body.kmoto-modern-cart .wc-proceed-to-checkout {
  padding: 0;
}

body.kmoto-modern-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 0 20px;
  border-radius: 12px;
  color: #fff;
  background: var(--kmoto-accent, #1f6fff);
  font-size: 1rem;
  font-weight: 850;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--kmoto-accent, #1f6fff) 24%, transparent);
}

body.kmoto-modern-cart .wc-proceed-to-checkout a.checkout-button:hover {
  color: #fff;
  background: var(--kmoto-accent-dark, #1557c9);
}

.kmoto-cart-support {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 0 !important;
  margin: 20px 0 0 !important;
  padding: 8px 0 0 !important;
  border-top: 1px solid var(--kmoto-line, #e4e8ee);
}

.kmoto-cart-support__item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 13px !important;
  margin: 0 !important;
  padding: 14px 0 !important;
}

.kmoto-cart-support__item + .kmoto-cart-support__item {
  border-top: 1px solid var(--kmoto-line, #e4e8ee);
}

.kmoto-cart-support__icon {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  border-radius: 11px;
  color: var(--kmoto-accent, #1f6fff);
  background: color-mix(in srgb, var(--kmoto-accent, #1f6fff) 9%, #fff);
  font-size: .95rem;
  font-weight: 900;
  line-height: 1;
}

.kmoto-cart-support__content {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.kmoto-cart-support__content strong,
.kmoto-cart-support__content small {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-align: left !important;
}

.kmoto-cart-support__content strong {
  color: var(--kmoto-ink, #101318);
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.35;
}

.kmoto-cart-support__content small {
  margin-top: 3px !important;
  color: var(--kmoto-muted, #687182);
  font-size: .76rem;
  line-height: 1.45;
}

body.kmoto-modern-cart .cross-sells {
  margin-top: 28px;
  padding-top: 30px;
  border-top: 1px solid var(--kmoto-line, #e4e8ee);
}

body.kmoto-modern-cart .woocommerce-info,
body.kmoto-modern-cart .woocommerce-message,
body.kmoto-modern-cart .woocommerce-error {
  border-radius: 12px;
}

body.kmoto-modern-cart .woocommerce:has(.cart-empty) {
  display: block;
  max-width: 760px !important;
  margin-inline: auto;
  padding: 70px 30px;
  text-align: center;
}

body.kmoto-modern-cart .cart-empty.woocommerce-info {
  display: none;
}

.kmoto-empty-cart-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--kmoto-accent, #1f6fff) 10%, #fff);
  font-size: 2rem;
}

.kmoto-empty-cart-title {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.kmoto-empty-cart-copy {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--kmoto-muted, #687182);
}

body.kmoto-modern-cart .return-to-shop a.button {
  min-width: 220px;
  color: #fff;
  background: var(--kmoto-accent, #1f6fff);
}

@media (max-width: 1050px) {
  body.kmoto-modern-cart .woocommerce {
    grid-template-columns: 1fr;
  }

  body.kmoto-modern-cart .cart-collaterals .cart_totals {
    position: static;
  }
}

@media (max-width: 760px) {
  body.kmoto-modern-cart .content-main > .container.narrow-container,
  body.kmoto-modern-cart .site-main > .container.narrow-container {
    width: min(calc(100% - 24px), var(--kmoto-container, 1320px)) !important;
  }

  .kmoto-cart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  body.kmoto-modern-cart table.shop_table.cart tr.cart_item {
    position: relative;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 8px 14px;
    padding: 18px;
    border-top: 1px solid var(--kmoto-line, #e4e8ee);
  }

  body.kmoto-modern-cart table.shop_table.cart tr.cart_item:first-child {
    border-top: 0;
  }

  body.kmoto-modern-cart table.shop_table.cart td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    text-align: left !important;
  }

  body.kmoto-modern-cart td.product-remove {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
  }

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

  body.kmoto-modern-cart td.product-thumbnail a {
    width: 86px;
    height: 86px;
  }

  body.kmoto-modern-cart td.product-name,
  body.kmoto-modern-cart td.product-price,
  body.kmoto-modern-cart td.product-quantity,
  body.kmoto-modern-cart td.product-subtotal {
    grid-column: 2;
  }

  body.kmoto-modern-cart td.product-price::before,
  body.kmoto-modern-cart td.product-subtotal::before {
    content: attr(data-title) ': ';
    color: var(--kmoto-muted, #687182);
    font-weight: 600;
  }

  body.kmoto-modern-cart td.actions {
    display: grid !important;
    gap: 10px;
  }

  body.kmoto-modern-cart td.actions .coupon {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  body.kmoto-modern-cart td.actions .coupon input.input-text {
    width: 100% !important;
  }

  body.kmoto-modern-cart td.actions button[name="update_cart"] {
    width: 100%;
    float: none;
  }
}

/* 1.0.4 — compact and consistent mobile cart actions */
@media (max-width: 760px) {
  body.kmoto-modern-cart td.product-price::before,
  body.kmoto-modern-cart td.product-subtotal::before {
    margin-right: 5px;
  }

  body.kmoto-modern-cart td.actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 16px !important;
  }

  body.kmoto-modern-cart td.actions .coupon {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.kmoto-modern-cart td.actions .coupon input.input-text,
  body.kmoto-modern-cart td.actions .coupon button.button,
  body.kmoto-modern-cart td.actions button[name="update_cart"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    float: none !important;
    border-radius: 12px !important;
    font-size: .95rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  body.kmoto-modern-cart td.actions .coupon input.input-text {
    display: block !important;
    text-align: left !important;
    font-weight: 500 !important;
    background: #fff !important;
  }

  body.kmoto-modern-cart td.actions .coupon button.button,
  body.kmoto-modern-cart td.actions button[name="update_cart"] {
    border: 1px solid var(--kmoto-line, #dfe4ec) !important;
    color: var(--kmoto-ink, #101318) !important;
    background: #fff !important;
  }

  body.kmoto-modern-cart td.actions .coupon button.button:not(:disabled):hover,
  body.kmoto-modern-cart td.actions button[name="update_cart"]:not(:disabled):hover {
    border-color: var(--kmoto-accent, #1f6fff) !important;
    color: var(--kmoto-accent, #1f6fff) !important;
  }

  body.kmoto-modern-cart td.actions button[name="update_cart"]:disabled {
    opacity: .55 !important;
  }

  /* Keep the quantity control optically centred beside the Daudzums label. */
  body.kmoto-modern-cart td.product-quantity {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  body.kmoto-modern-cart td.product-quantity::before {
    margin-right: 0 !important;
  }
  body.kmoto-modern-cart td.product-quantity .kmoto-cart-qty {
    margin: 0 !important;
  }

  body.kmoto-modern-cart td.product-remove a.remove {
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    line-height: 1 !important;
  }
}




/* 1.0.6 – exact centering for the empty-cart return button. */
body.kmoto-modern-cart .return-to-shop {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

body.kmoto-modern-cart .return-to-shop a.button,
body.kmoto-modern-cart .return-to-shop a.button.wc-backward,
body.kmoto-modern-cart .return-to-shop .button {
  display: inline-grid !important;
  place-items: center !important;
  width: auto !important;
  min-width: 220px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  margin: 0 auto !important;
  padding: 0 28px !important;
  border: 0 !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
}

body.kmoto-modern-cart .return-to-shop a.button .kmoto-empty-cart-button__label {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: translateY(-1px);
}

/* 1.0.8: shipping is calculated normally but chosen/displayed only at Checkout. */
body.kmoto-modern-cart .cart_totals tr.woocommerce-shipping-totals.shipping,
body.kmoto-modern-cart .cart_totals tr.shipping { display:none !important; }
