/* KCN wholesale cart - isolated styles (opt-in demo) */

.kcn-cart-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-right: 0.35rem;
  border: 0.5px solid rgba(0, 41, 87, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--navy, #002957);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.kcn-cart-nav-btn:hover {
  background: #f4f7fb;
  border-color: rgba(0, 41, 87, 0.22);
}

.kcn-cart-nav-btn__count {
  position: absolute;
  top: -0.2rem;
  right: -0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--gold, #ffc729);
  color: #001b39;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
}

.kcn-cart-pdp.kcn-ecom.buy-product {
  margin: 0.85rem 0 0.65rem;
}

.kcn-cart-pdp__label {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy, #002957);
}

.kcn-cart-pdp__unit-hint {
  font-weight: 500;
  color: var(--ecom-gray-500, #8c9ec5);
}

.kcn-cart-pdp.kcn-ecom .box-quantity {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 0.65rem;
}

/* In-cart: single compact row — qty label inline, buttons fixed height */
.kcn-cart-pdp.kcn-ecom:not(.kcn-cart-pdp--no-qty) .kcn-cart-pdp__qty-col {
  display: flex;
  flex: 0 1 auto;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: none;
}

.kcn-cart-pdp.kcn-ecom:not(.kcn-cart-pdp--no-qty) .kcn-cart-pdp__qty-col .kcn-cart-pdp__label {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}

.kcn-cart-pdp.kcn-ecom:not(.kcn-cart-pdp--no-qty) .kcn-cart-pdp__qty-col .input-quantity {
  flex: 0 0 5.25rem;
  min-width: 5.25rem;
  max-width: 5.25rem;
  padding: 0 1.5rem;
}

.kcn-cart-pdp.kcn-ecom .box-quantity .input-quantity {
  flex: 0 0 6.5rem;
  min-width: 6.5rem;
  max-width: 6.5rem;
  margin-right: 1rem;
  padding: 0 1.75rem;
  position: relative;
}

.kcn-cart-pdp.kcn-ecom .box-quantity .input-quantity input {
  width: 100%;
  height: 2.5rem;
  border: 0;
  border-bottom: 4px solid var(--ecom-border, #dde4f0);
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ecom-brand-3, #425a8b);
  background: transparent;
}

.kcn-cart-pdp__qty-col {
  flex: 0 0 6.5rem;
  min-width: 6.5rem;
  max-width: 6.5rem;
}

.kcn-cart-pdp__qty-col .kcn-cart-pdp__label {
  margin-bottom: 0.35rem;
}

.kcn-cart-pdp__qty-col .input-quantity {
  position: relative;
  padding: 0 1.75rem;
}

.kcn-cart-pdp.kcn-ecom.kcn-cart-pdp--no-qty .kcn-cart-pdp__qty-col,
.kcn-cart-pdp__qty-col[hidden] {
  display: none !important;
}

.kcn-cart-pdp.kcn-ecom.kcn-cart-pdp--no-qty .box-quantity .button-buy {
  flex: 1;
  width: 100%;
}

.kcn-cart-pdp__qty-block[hidden] {
  display: none !important;
}

.kcn-cart-pdp.kcn-ecom .box-quantity .button-buy {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  height: 2.5rem;
}

.kcn-cart-pdp.kcn-ecom .button-buy .btn {
  flex: 1 1 0;
  max-width: none;
  margin: 0;
  height: 2.5rem !important;
  min-height: 2.5rem !important;
  max-height: 2.5rem !important;
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0 0.75rem !important;
  box-sizing: border-box;
  align-self: center;
}

.kcn-cart-pdp.kcn-ecom .button-buy .btn.btn-cart.is-added {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  padding: 0 0.7rem !important;
}

.kcn-cart-pdp.kcn-ecom .button-buy .btn.btn-cart.is-added span {
  display: none;
}

.kcn-cart-pdp.kcn-ecom .button-buy .btn.btn-cart.is-added i {
  margin: 0;
  font-size: 0.875rem;
}

.kcn-cart-pdp.kcn-ecom .button-buy .kcn-ecom-action-btn {
  min-height: 2.5rem !important;
  max-height: 2.5rem !important;
  width: auto;
}

.kcn-cart-pdp.kcn-ecom .button-buy .kcn-cart-pdp__checkout {
  flex: 1 1 0;
  min-width: 0;
}

.kcn-cart-pdp.kcn-ecom .btn.btn-cart.is-added {
  border-color: rgba(192, 57, 43, 0.45);
  color: #c0392b;
  background: #fff;
}

.kcn-cart-pdp.kcn-ecom .btn.btn-cart.is-added:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.kcn-cart-pdp.kcn-ecom .kcn-cart-pdp__checkout {
  text-decoration: none;
}

@media (max-width: 520px) {
  .kcn-cart-pdp.kcn-ecom .box-quantity {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .kcn-cart-pdp.kcn-ecom:not(.kcn-cart-pdp--no-qty) .kcn-cart-pdp__qty-col {
    flex: 1 1 100%;
  }

  .kcn-cart-pdp.kcn-ecom .box-quantity .button-buy {
    flex: 1 1 100%;
    width: 100%;
    flex-direction: row;
  }
}

/* Legacy PDP block - kept for catalog card context only */
.kcn-cart-pdp:not(.kcn-ecom) {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.kcn-cart-toast {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: min(26rem, calc(100vw - 2rem));
  max-width: min(26rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #001b39;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  visibility: hidden;
}

body.kcn-has-sticky-cart {
  padding-bottom: calc(7.25rem + env(safe-area-inset-bottom, 0px));
}

body.page-kcn-checkout.kcn-has-sticky-cart {
  padding-bottom: 0;
}

.kcn-cart-toast__text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.kcn-cart-toast__qty {
  font-weight: 800;
  color: var(--gold, #ffc729);
}

.kcn-cart-toast__product {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.kcn-cart-toast__text strong,
.kcn-cart-toast__product strong {
  font-weight: 800;
}

.kcn-cart-toast__checkout {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--gold, #ffc729);
  color: #001b39 !important;
  font-size: 0.8125rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.kcn-cart-toast__checkout:hover {
  background: #ffe08a;
}

.kcn-cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
  visibility: visible;
}

.kcn-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 10040;
}

.kcn-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 20, 40, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.kcn-cart-drawer.is-open .kcn-cart-drawer__backdrop {
  opacity: 1;
}

.kcn-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(24rem, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.kcn-cart-drawer.is-open .kcn-cart-drawer__panel {
  transform: translateX(0);
}

.kcn-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.kcn-cart-drawer__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy, #002957);
}

.kcn-cart-drawer__head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.kcn-cart-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: #f4f6f8;
  color: #4a5568;
  cursor: pointer;
  font-size: 0.875rem;
}

.kcn-cart-drawer__list {
  flex: 1;
  overflow-y: auto;
  padding: 0.35rem 0;
}

.kcn-cart-drawer__list--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}

.kcn-cart-drawer__empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.kcn-cart-drawer__empty {
  margin: 0;
  text-align: center;
  color: #6e6e73;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.kcn-cart-drawer__empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 0.5px solid rgba(0, 41, 87, 0.2);
  background: #fff;
  color: var(--navy, #002957) !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.kcn-cart-drawer__empty-btn:hover {
  background: #f4f7fb;
}

/* Drawer product rows - mini-cart style */
.kcn-drawer-product {
  position: relative;
  display: block;
  padding: 1rem 1.1rem 1rem 4.75rem;
  border-bottom: 0.5px solid #e8e8e8;
}

.kcn-drawer-product__img {
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  display: block;
  width: 3.35rem;
  height: 3.35rem;
  border: 0.5px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f8f8;
}

.kcn-drawer-product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kcn-drawer-product__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9aa3ad;
  font-size: 1rem;
}

.kcn-drawer-product__body {
  min-width: 0;
  padding-right: 1.25rem;
}

.kcn-drawer-product__title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  line-height: 1.35;
  font-weight: 600;
}

.kcn-drawer-product__title a {
  color: var(--navy, #002957);
  text-decoration: none;
}

.kcn-drawer-product__title a:hover {
  text-decoration: underline;
}

.kcn-drawer-product__brand {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: #6e6e73;
}

.kcn-drawer-product__meta {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #c0392b;
}

.kcn-drawer-product__remove {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  background: #fff;
  color: #4a5568;
  font-size: 0.625rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.kcn-drawer-product__remove:hover {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.35);
  background: #fff5f5;
}

.kcn-cart-line {
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.kcn-cart-line__info {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.65rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.kcn-cart-line__info:hover .kcn-cart-line__name {
  text-decoration: underline;
}

.kcn-cart-line__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kcn-cart-line__media img,
.kcn-cart-line__ph {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 8px;
  object-fit: cover;
  background: #f4f6f8;
}

.kcn-cart-line__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa3ad;
}

.kcn-cart-line__product-link {
  text-decoration: none;
  color: inherit;
}

.kcn-cart-line__name {
  display: block;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy, #002957);
}

.kcn-cart-line__brand {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #6e6e73;
}

.kcn-cart-line__qty {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin-top: 0;
  padding-left: calc(3.25rem + 0.65rem);
}

.kcn-cart-line__qty--checkout {
  margin-top: 0;
}

/* Ecom Marketplace cart patterns (scoped) */
.kcn-ecom {
  --ecom-brand-1: #0ba9ed;
  --ecom-brand-2: #fd9636;
  --ecom-brand-3: #425a8b;
  --ecom-border: #dde4f0;
  --ecom-gray-500: #8c9ec5;
}

/* Checkout - swap Ecom palette for KCN navy / gold */
.page-kcn-checkout.kcn-ecom {
  --ecom-brand-1: var(--navy, #002957);
  --ecom-brand-2: var(--gold, #ffc729);
  --ecom-brand-3: var(--navy, #002957);
  --ecom-border: rgba(0, 41, 87, 0.12);
  --ecom-gray-500: #6e6e73;
}

.kcn-ecom .color-brand-1 { color: var(--ecom-brand-1) !important; }
.kcn-ecom .color-brand-2 { color: var(--ecom-brand-2) !important; }
.kcn-ecom .color-brand-3 { color: var(--ecom-brand-3) !important; }
.kcn-ecom .color-gray-500 { color: var(--ecom-gray-500) !important; }
.kcn-ecom .color-gray-100 { color: var(--navy, #002957) !important; }
.kcn-ecom .font-sm { font-size: 0.8125rem; line-height: 1.35; }
.kcn-ecom .font-sm-bold { font-size: 0.8125rem; font-weight: 700; }
.kcn-ecom .font-md-bold { font-size: 0.9375rem; font-weight: 700; }
.kcn-ecom .font-lg-bold { font-size: 1rem; font-weight: 700; line-height: 1.3; }

.kcn-ecom .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.kcn-ecom .btn.btn-cart {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ecom-brand-3);
  border: 1px solid #8c9ec5;
  padding: 0.45rem 1.1rem;
  background: #fff;
}

.kcn-ecom .btn.btn-cart:hover {
  border-color: var(--ecom-brand-3);
  background: var(--ecom-brand-3);
  color: #fff;
}

.kcn-ecom .btn.btn-buy {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid #8c9ec5;
  padding: 0.55rem 1.15rem;
  background-color: var(--ecom-brand-3);
  background-image: none !important;
}

.kcn-ecom .btn.btn-buy:hover {
  background-color: #fff;
  color: var(--ecom-brand-3);
}

.kcn-ecom-action-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto !important;
  min-height: 2.5rem;
  white-space: nowrap;
  text-decoration: none;
  background-image: none !important;
  background-repeat: no-repeat !important;
}

.kcn-ecom-action-btn i {
  font-size: 0.8125rem;
  line-height: 1;
  flex-shrink: 0;
}

.kcn-ecom .btn.btn-delete {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--ecom-gray-500);
  font-size: 0.9375rem;
  line-height: 1;
}

.kcn-ecom .btn.btn-delete:hover {
  color: #c0392b;
}

.kcn-ecom-btn-icon {
  gap: 0.45rem;
}

.kcn-ecom-continue-btn {
  display: inline-flex;
}

.kcn-cart-drawer__clear {
  gap: 0.35rem;
}

.kcn-ecom .kcn-ecom-qty-btn {
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ecom-brand-3);
  font-size: 0.6875rem;
  line-height: 1;
  cursor: pointer;
}

.kcn-ecom .kcn-ecom-qty-btn:hover {
  color: var(--ecom-brand-1);
}

.kcn-ecom .kcn-ecom-qty-btn:focus-visible {
  outline: 2px solid var(--ecom-brand-1);
  outline-offset: 1px;
  border-radius: 2px;
}

.kcn-ecom .box-quantity {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.35rem;
}

.kcn-ecom .box-quantity .input-quantity {
  position: relative;
  min-width: 6.5rem;
  max-width: 6.5rem;
  padding: 0 1.75rem;
}

.kcn-ecom .box-quantity .input-quantity input {
  width: 100%;
  height: 2.25rem;
  border: 0;
  border-bottom: 4px solid var(--ecom-border);
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ecom-brand-3);
  background: transparent;
}

.kcn-ecom .box-quantity .input-quantity input:focus {
  outline: none;
  border-bottom-color: var(--ecom-brand-1);
}

.kcn-ecom .box-quantity .minus-cart {
  left: 0;
}

.kcn-ecom .box-quantity .plus-cart {
  right: 0;
}

.kcn-ecom-qty__unit {
  font-size: 0.75rem;
  color: #6e6e73;
  line-height: 1;
}

/* Drawer - Ecom mini-cart */
.kcn-ecom-drawer-panel {
  width: min(22rem, 100vw) !important;
}

.kcn-cart-drawer__list:not(.kcn-cart-drawer__list--empty) {
  padding: 0.35rem 1.1rem 0.15rem;
}

.kcn-ecom .item-cart {
  display: flex;
  align-items: flex-start;
  gap: 0;
  text-align: left;
  margin-bottom: 0;
  padding: 1rem 2.35rem 1rem 0;
  border-bottom: 1px solid #e8ecf0;
  position: relative;
}

.kcn-ecom .item-cart:last-child {
  border-bottom: none;
  padding-bottom: 1rem;
}

.kcn-ecom .item-cart .cart-image {
  flex: 0 0 4.75rem;
  margin-right: 1rem;
}

.kcn-ecom .item-cart .cart-image img,
.kcn-ecom-item-cart__ph {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: contain;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid #e0e4ea;
  background: #fff;
}

.kcn-ecom-item-cart__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c9ec5;
}

.kcn-ecom .item-cart .cart-info {
  flex: 1;
  min-width: 0;
}

.kcn-ecom .item-cart .cart-info a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy, #002957) !important;
}

.kcn-ecom .item-cart .cart-info a:hover {
  color: var(--ecom-brand-1) !important;
}

.kcn-ecom-item-cart__brand {
  display: block;
  font-size: 0.75rem;
  color: #6e6e73;
  margin-bottom: 0.35rem;
}

.kcn-ecom .item-cart .cart-info p {
  margin: 0;
}

.kcn-ecom .item-cart .cart-info .color-brand-2 {
  color: var(--ecom-brand-2, #fd9636) !important;
  font-weight: 700;
  font-size: 0.8125rem;
}

.kcn-ecom-item-cart__remove {
  position: absolute;
  top: 1rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #8c9ec5;
}

.kcn-ecom-item-cart__remove:hover {
  color: #c0392b;
}

.kcn-ecom-cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0;
}

.kcn-ecom-drawer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.kcn-ecom-drawer-btns .kcn-drawer-btn {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
}

.kcn-ecom-drawer-btns[hidden] {
  display: none !important;
}

.kcn-ecom-drawer-summary[hidden] {
  display: none !important;
}

/* Feature icons row */

.border-bottom {
  border-bottom: 1px solid var(--ecom-border);
}

.mb-15 { margin-bottom: 0.85rem; }
.pt-0 { padding-top: 0; }

/* Checkout - KCN-branded order list */
.page-kcn-checkout.kcn-ecom .kcn-checkout-card--order,
.page-kcn-checkout .kcn-ecom .box-border {
  border: 1px solid rgba(0, 41, 87, 0.1);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 41, 87, 0.04);
}

.kcn-checkout-order-title {
  margin: 0 0 1rem;
  color: var(--navy, #002957);
}

.kcn-ecom-carts .head-wishlist {
  margin-bottom: 0.65rem;
}

.kcn-ecom-carts .head-wishlist .item-wishlist {
  padding: 0.55rem 1.1rem;
  background: #f4f7fb;
  border: none;
  border-radius: 10px;
}

.kcn-ecom-carts .head-wishlist .font-md-bold {
  color: var(--navy, #002957);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.kcn-ecom-carts .content-wishlist .item-wishlist {
  border: 1px solid rgba(0, 41, 87, 0.1);
  padding: 1.1rem 1.15rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  align-items: flex-start;
  background: #fff;
}

.kcn-ecom-carts .item-wishlist {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.kcn-ecom-carts .item-wishlist .wishlist-product {
  flex: 1;
  min-width: 0;
}

.kcn-ecom-carts .item-wishlist .wishlist-status {
  flex: 0 0 7rem;
  text-align: center;
}

.kcn-ecom-carts .item-wishlist .wishlist-remove {
  flex: 0 0 2.5rem;
  text-align: center;
  padding-top: 0.15rem;
}

.kcn-ecom-head .wishlist-product { width: auto; flex: 1; }
.kcn-ecom-head .wishlist-status { flex: 0 0 7rem; }
.kcn-ecom-head .wishlist-remove { flex: 0 0 2.5rem; }

.kcn-ecom-carts .product-wishlist {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

.kcn-ecom-carts .product-wishlist .product-image {
  flex: 0 0 5rem;
  margin-right: 0.85rem;
}

.kcn-ecom-carts .product-wishlist .product-image img,
.kcn-ecom-thumb-ph {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  padding: 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 41, 87, 0.1);
  background: #fff;
}

.kcn-ecom-thumb-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 41, 87, 0.35);
  font-size: 1.1rem;
}

.kcn-ecom-carts .product-wishlist .product-info {
  flex: 1;
  min-width: 0;
}

.kcn-ecom-carts .product-wishlist .product-info a {
  text-decoration: none;
}

.kcn-ecom-carts .product-wishlist .product-info h6 {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy, #002957);
}

.kcn-ecom-brand {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e6e73;
}

/* Checkout qty stepper - navy underline, gold focus */
.page-kcn-checkout .kcn-ecom .box-quantity .input-quantity input {
  height: 2rem;
  border-bottom-width: 2px;
  border-bottom-color: rgba(0, 41, 87, 0.15);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy, #002957);
}

.page-kcn-checkout .kcn-ecom .box-quantity .input-quantity input:focus {
  border-bottom-color: var(--gold, #ffc729);
}

.page-kcn-checkout .kcn-ecom .kcn-ecom-qty-btn {
  color: var(--navy, #002957);
  opacity: 0.65;
}

.page-kcn-checkout .kcn-ecom .kcn-ecom-qty-btn:hover {
  color: var(--navy, #002957);
  opacity: 1;
}

.page-kcn-checkout .kcn-ecom .kcn-ecom-qty-btn:focus-visible {
  outline: 2px solid var(--gold, #ffc729);
  outline-offset: 1px;
  border-radius: 2px;
}

.page-kcn-checkout .kcn-ecom .kcn-ecom-qty__unit {
  color: #6e6e73;
}

.page-kcn-checkout .kcn-ecom .btn.btn-delete {
  color: #9ca3af;
}

.page-kcn-checkout .kcn-ecom .btn.btn-delete:hover {
  color: #c0392b;
}

.kcn-ecom-cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* KCN branded pill buttons */
.kcn-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill, 999px);
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kcn-btn-pill--outline {
  border-color: rgba(0, 41, 87, 0.2);
  background: #fff;
  color: var(--navy, #002957) !important;
}

.kcn-btn-pill--outline:hover {
  background: #f4f7fb;
  color: var(--navy, #002957) !important;
}

.kcn-btn-pill--primary {
  border-color: rgba(0, 26, 51, 0.35);
  background: var(--navy, #002957);
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.kcn-btn-pill--primary:hover {
  background: var(--navy-muted, #0f2744);
  color: #fff !important;
  box-shadow: var(--btn-gold-ring, 0 0 0 2px rgba(255, 199, 41, 0.35)), 0 4px 14px rgba(0, 41, 87, 0.18);
}

.kcn-checkout-continue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill, 999px);
  border: 1px solid rgba(0, 26, 51, 0.35);
  background: var(--navy, #002957);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.kcn-checkout-continue-btn:hover {
  background: var(--navy-muted, #0f2744);
  color: #fff !important;
  box-shadow: var(--btn-gold-ring, 0 0 0 2px rgba(255, 199, 41, 0.35)), 0 4px 14px rgba(0, 41, 87, 0.18);
}

.kcn-ecom-cart-actions--top {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Checkout feature row - KCN why-card pattern */
.kcn-checkout-features {
  padding-top: 2rem;
  padding-bottom: 3.25rem;
}

.kcn-checkout-features__grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.kcn-checkout-feature {
  padding: 1.35rem 1.15rem;
  border-color: rgba(0, 41, 87, 0.08);
  border-radius: 1.25rem;
  gap: 0.65rem;
  box-shadow: none;
}

.kcn-checkout-feature:hover {
  box-shadow: none;
  transform: none;
}

.kcn-checkout-feature .why-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
}

.kcn-checkout-feature .why-icon i {
  font-size: 1rem;
}

.kcn-checkout-feature .why-title {
  font-size: 0.9375rem;
  margin: 0;
}

.kcn-checkout-feature .why-desc {
  font-size: 0.8125rem;
  margin: 0;
}

@media (min-width: 640px) {
  .kcn-checkout-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .kcn-checkout-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .kcn-checkout-features__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }

  .kcn-checkout-feature {
    padding: 1.15rem 1rem;
  }

  .kcn-checkout-feature .why-title {
    font-size: 0.875rem;
  }

  .kcn-checkout-feature .why-desc {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

.kcn-ecom-features {
  padding-bottom: 3rem;
}

.kcn-ecom-features .list-col-5 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kcn-ecom-features .list-col-5 li {
  flex: 1 1 10rem;
  min-width: 10rem;
  padding: 0;
}

.kcn-ecom-features .item-list {
  display: flex;
  align-items: flex-start;
  gap: 0;
  height: 100%;
  padding: 0.85rem;
  border: 1px solid #d5dfe4;
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.kcn-ecom-features .item-list:hover {
  background: #f4f7fc;
  border-color: #8c9ec5;
}

.kcn-ecom-features .icon-left {
  flex: 0 0 2.75rem;
  padding-right: 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.1rem;
}

.kcn-ecom-features .icon-left i {
  font-size: 1.65rem;
  line-height: 1;
  color: var(--ecom-brand-3, #425a8b);
}

.page-kcn-checkout .kcn-ecom-features .icon-left i {
  color: var(--navy, #002957);
}

.page-kcn-checkout .kcn-ecom-features .item-list {
  border-color: rgba(0, 41, 87, 0.1);
  border-radius: 12px;
}

.page-kcn-checkout .kcn-ecom-features .item-list:hover {
  border-color: rgba(0, 41, 87, 0.18);
  background: #f9fafb;
}

.kcn-ecom-features .material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 2rem;
  line-height: 1;
  color: var(--ecom-brand-3, #425a8b);
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.kcn-ecom-features .icon-left img {
  width: 2.25rem;
  height: auto;
}

.kcn-ecom-features .info-right h5 {
  margin: 0 0 0.2rem;
}

.kcn-ecom-features .info-right p {
  margin: 0;
}

@media (max-width: 767px) {
  .kcn-ecom-carts .head-wishlist {
    display: none;
  }

  .kcn-ecom-carts .item-wishlist {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .kcn-ecom-carts .item-wishlist .wishlist-product {
    flex: 1 1 100%;
  }

  .kcn-ecom-carts .item-wishlist .wishlist-status {
    flex: 1;
  }

  .kcn-ecom-carts .item-wishlist .wishlist-remove {
    flex: 0 0 auto;
  }
}

.page-kcn-checkout .kcn-checkout-table__qty-cell {
  min-width: 7rem;
  overflow: visible;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.kcn-checkout-table th:nth-child(2),
.kcn-checkout-table td:nth-child(2) {
  width: 1%;
  white-space: nowrap;
}

.kcn-cart-line__remove {
  border: none;
  background: transparent;
  color: #9aa3ad;
  cursor: pointer;
  padding: 0.25rem;
}

.kcn-cart-line__remove:hover {
  color: #c0392b;
}

.kcn-cart-drawer__foot {
  padding: 1rem 1.1rem 1.15rem;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.kcn-cart-drawer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy, #002957);
}

.kcn-cart-drawer__summary-count {
  color: #c0392b;
  font-weight: 700;
}

.kcn-cart-drawer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.kcn-cart-drawer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 0.5px solid transparent;
}

.kcn-cart-drawer__btn--ghost {
  background: #fff;
  border-color: rgba(0, 41, 87, 0.22);
  color: var(--navy, #002957) !important;
}

.kcn-cart-drawer__btn--ghost:hover {
  background: #f4f7fb;
}

.kcn-cart-drawer__btn--primary {
  background: var(--navy, #002957);
  color: #fff !important;
}

.kcn-cart-drawer__btn--primary:hover {
  background: #001b39;
}

.kcn-cart-drawer__summary[hidden],
.kcn-cart-drawer__actions[hidden] {
  display: none !important;
}

.kcn-cart-drawer__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 0.5px solid rgba(192, 57, 43, 0.28);
  background: #fff;
  color: #c0392b;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}

.kcn-cart-drawer__clear:hover {
  background: #fef2f2;
}

.kcn-cart-drawer__clear[hidden],
.kcn-cart-drawer__catalog[hidden] {
  display: none !important;
}

.kcn-cart-drawer__catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 0.5px solid rgba(0, 41, 87, 0.2);
  background: #fff;
  color: var(--navy, #002957) !important;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.kcn-cart-drawer__catalog:hover {
  background: #f4f7fb;
}

.kcn-cart-drawer__checkout {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--navy, #002957);
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.kcn-cart-drawer__checkout[hidden] {
  display: none !important;
}

.kcn-cart-drawer__continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  color: #6e6e73 !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.kcn-cart-drawer__continue:hover {
  color: var(--navy, #002957) !important;
  text-decoration: underline;
}

.kcn-cart-drawer__checkout:hover {
  background: #001b39;
}

.kcn-cart-drawer__hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #6e6e73;
  text-align: center;
}

.kcn-cart-drawer__hint[hidden] {
  display: none !important;
}

.kcn-cart-drawer__note {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #9aa3ad;
  text-align: center;
}

body.kcn-cart-drawer-open {
  overflow: hidden;
}

/* Checkout page */
.kcn-checkout-hero {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 1rem;
}

.kcn-checkout-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}

.kcn-checkout-hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy, #002957);
}

.kcn-checkout-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.kcn-checkout-hero__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 0.5px solid rgba(192, 57, 43, 0.28);
  background: #fff;
  color: #c0392b;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.kcn-checkout-hero__clear:hover {
  background: #fef2f2;
}

.kcn-checkout-hero__clear[hidden],
.kcn-checkout-hero__catalog[hidden] {
  display: none !important;
}

.kcn-checkout-hero__catalog {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 0.5px solid rgba(0, 41, 87, 0.2);
  background: #fff;
  color: var(--navy, #002957) !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.kcn-checkout-hero__catalog:hover {
  background: #f4f7fb;
}

.kcn-checkout-hero__lead {
  margin: 0;
  color: #6e6e73;
  font-size: 0.9375rem;
  max-width: 36em;
}

.kcn-checkout-layout {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 900px) {
  .kcn-checkout-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .kcn-checkout-card--form {
    position: sticky;
    top: 1.25rem;
  }
}

.kcn-checkout-card {
  padding: 1.25rem;
  border-radius: 14px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.kcn-checkout-card__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy, #002957);
}

.kcn-checkout-table-outer {
  overflow-x: auto;
  border: 0.5px solid #e5e5e5;
}

.kcn-checkout-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.kcn-checkout-table thead {
  background: #f8f8f8;
}

.kcn-checkout-table th {
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy, #002957);
  border-bottom: 0.5px solid #e5e5e5;
}

.kcn-checkout-table th:first-child {
  text-align: left;
}

.kcn-checkout-table td {
  padding: 1rem;
  vertical-align: middle;
  text-align: center;
  border-bottom: 0.5px solid #e5e5e5;
  color: var(--navy, #002957);
}

.kcn-checkout-table tbody tr:last-child td {
  border-bottom: none;
}

.kcn-checkout-table__product {
  text-align: left;
}

.kcn-checkout-table__remove-col,
.kcn-checkout-table__remove-cell {
  width: 2.5rem;
  padding-left: 0.25rem;
  padding-right: 0.75rem;
}

.kcn-checkout-table__product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.kcn-checkout-table__product-link:hover strong {
  text-decoration: underline;
}

.kcn-checkout-table__prod-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kcn-checkout-table__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.kcn-checkout-table__copy strong {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.kcn-checkout-table__thumb {
  flex: 0 0 auto;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 6px;
  object-fit: cover;
  background: #f4f6f8;
  border: 0.5px solid #e5e5e5;
}

.kcn-checkout-table__thumb--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9aa3ad;
  font-size: 1.1rem;
}

.kcn-checkout-table__brand {
  display: block;
  font-size: 0.75rem;
  color: #6e6e73;
}

.kcn-checkout-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #4a5568;
  font-size: 0.875rem;
  cursor: pointer;
}

.kcn-checkout-remove:hover {
  color: #c0392b;
}

.kcn-checkout-table__qty {
  /* hook for JS */
}

.kcn-checkout-table__qty,
.kcn-cart-line__qty-input {
  /* touchspin input */
}

.kcn-checkout-continue-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.kcn-checkout-catalog {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 0.5px solid rgba(0, 41, 87, 0.2);
  background: #fff;
  color: var(--navy, #002957) !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.kcn-checkout-catalog:hover {
  background: #f4f7fb;
}

.kcn-checkout-catalog--empty {
  margin-bottom: 0.25rem;
}

.kcn-checkout-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy, #002957) !important;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.kcn-checkout-continue:hover {
  color: #001b39 !important;
  text-decoration: underline;
}

.kcn-checkout-continue--empty {
  display: inline-flex;
  margin-bottom: 0.85rem;
}

.kcn-checkout-table__remove {
  border: none;
  background: transparent;
  color: #9aa3ad;
  cursor: pointer;
}

.kcn-checkout-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  padding: 2rem 1rem;
}

.kcn-checkout-empty p {
  margin: 0;
  color: #6e6e73;
}

.kcn-checkout-empty .kcn-checkout-continue--empty {
  margin-bottom: 0;
}

.kcn-checkout-empty .btn-primary {
  margin-top: 0.15rem;
}

.kcn-checkout-form .vertical-rfq__field {
  margin-bottom: 0.85rem;
}

.kcn-checkout-form .vertical-rfq__submit {
  width: 100%;
  margin-top: 0.5rem;
}

.kcn-checkout-privacy {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #f4f7fb;
  color: #4b5563;
  font-size: 0.75rem;
  line-height: 1.5;
}

.kcn-checkout-privacy i {
  margin-right: 0.35rem;
  color: var(--navy, #002957);
  font-size: 0.7rem;
}

.kcn-checkout-thanks {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.9375rem;
  font-weight: 600;
}

.kcn-checkout-demo-badge {
  display: none;
}

/* Checkout uses a minimal footer - avoid triple border-top stacking */
.page-kcn-checkout .footer--light {
  border-top: none;
  padding: 0;
  background: transparent;
}

.page-kcn-checkout .footer-bottom,
.page-kcn-checkout .footer--light .footer-bottom {
  margin-top: 0;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 639px) {
  .page-kcn-checkout .kcn-checkout-hero .container,
  .page-kcn-checkout .kcn-checkout-layout.container,
  .page-kcn-checkout .kcn-checkout-features.container {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  }

  .page-kcn-checkout .kcn-checkout-card {
    padding: 1.2rem 1.1rem;
  }

  .page-kcn-checkout .kcn-checkout-feature {
    padding: 1.2rem 1.1rem;
  }

  .page-kcn-checkout .kcn-checkout-privacy {
    padding: 0.9rem 1rem;
  }
}

.kcn-cart-card-controls {
  width: 100%;
  margin-top: 0.5rem;
}

.kcn-cart-card-controls.is-in-cart {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.35rem 0.2rem 0.25rem;
  border: 0.5px solid rgba(0, 41, 87, 0.18);
  border-radius: 999px;
  background: #f4f7fb;
}

.kcn-cart-card-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: var(--navy, #002957);
  font-size: 0.625rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.kcn-cart-card-qty-btn:hover {
  background: var(--navy, #002957);
  color: #fff;
}

.kcn-cart-card-qty {
  flex: 1;
  min-width: 1.1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy, #002957);
  line-height: 1;
}

.kcn-cart-card-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  margin-left: 0.1rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #c0392b;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.kcn-cart-card-remove:hover {
  background: #fef2f2;
}

.kcn-cart-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0;
  padding: 0.42rem 0.65rem;
  border: 0.5px solid rgba(0, 41, 87, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--navy, #002957);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kcn-cart-card-btn i {
  font-size: 0.6875rem;
}

.kcn-cart-card-btn:hover {
  background: var(--navy, #002957);
  border-color: var(--navy, #002957);
  color: #fff;
}

.subcats-section--minimal .product-card .kcn-cart-card-controls {
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* Equal-height catalog cards (loaded with cart CSS for cache bust) */
.subcats-section--minimal .grid-2-3 {
  align-items: stretch;
}

.subcats-section--minimal .product-card {
  height: 100%;
  min-height: 100%;
}

.subcats-section--minimal .product-card > a {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.subcats-section--minimal .product-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.subcats-section--minimal .product-card-name {
  min-height: calc(1.4em * 2);
}

.subcats-section--minimal .product-card-foot {
  margin-top: auto;
}

.pdp-convert .kcn-cart-pdp {
  margin-top: 0.85rem;
  margin-bottom: 0.65rem;
}
