.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-cart {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--kl-dark);
  font-family: var(--kl-heading);
  font-size: 13px;
  font-weight: 600;
}

.header-cart b {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--kl-orange);
  color: var(--kl-white);
  font-size: 12px;
}

.header-cart b[hidden] { display: none; }

.price-pending {
  min-height: 0 !important;
  margin: 10px 0 0 !important;
  color: #666 !important;
  font-size: 12px !important;
}

.product-card-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.product-card-actions .product-action { margin-top: 0; }

.product-add,
.product-actions button,
.place-order,
.cart-summary > a,
.cart-empty > a,
.order-success-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--kl-orange);
  color: var(--kl-white);
  font-family: var(--kl-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease-out, transform 180ms ease-out;
}

.product-add:hover,
.product-actions button:hover,
.place-order:hover,
.cart-summary > a:hover,
.cart-empty > a:hover,
.order-success-actions a:hover { background: var(--kl-dark); transform: translateY(-1px); }

.product-actions button { flex: 1 1 180px; }

.commerce-toast {
  position: fixed;
  z-index: 35;
  right: 20px;
  bottom: 84px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 18px;
  background: var(--kl-dark);
  color: var(--kl-white);
  font-weight: 600;
}

.commerce-toast:empty { display: none; }

.commerce-page {
  width: min(calc(100% - 40px), var(--kl-content));
  margin: 56px auto 90px;
}

.commerce-page > header {
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--kl-border);
}

.commerce-page > header > p {
  margin: 0 0 8px;
  color: var(--kl-cyan);
  font-family: var(--kl-heading);
  font-weight: 600;
}

.commerce-page > header h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 56px);
}

.commerce-page > header span { display: block; max-width: 68ch; }
.commerce-status:empty { display: none; }
.commerce-status { margin: 0 0 20px; padding: 14px 18px; background: var(--kl-light); color: var(--kl-dark); }

.cart-empty {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--kl-light);
}

.cart-empty[hidden] { display: none; }
.cart-empty h2 { font-size: 28px; }
.cart-empty p { margin: 12px 0 24px; }

.cart-filled {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 34px;
  align-items: start;
}

.cart-filled[hidden] { display: none; }
.cart-table-wrap { overflow-x: auto; }
.cart-table-wrap table { width: 100%; border-collapse: collapse; }
.cart-table-wrap th { padding: 12px 14px; background: var(--kl-dark); color: var(--kl-white); text-align: left; font-family: var(--kl-heading); }
.cart-table-wrap td { padding: 14px; border-bottom: 1px solid var(--kl-border); vertical-align: middle; }
.cart-table-wrap td:first-child a { display: flex; align-items: center; gap: 16px; color: var(--kl-dark); font-family: var(--kl-heading); font-weight: 600; }
.cart-table-wrap img { width: 84px; height: 84px; object-fit: contain; background: var(--kl-light); }
.cart-table-wrap input[type="number"] { width: 76px; min-height: 44px; padding: 0 10px; border: 1px solid var(--kl-border); }
.cart-table-wrap button { min-height: 44px; padding: 0 14px; border: 1px solid var(--kl-border); background: var(--kl-white); color: #a40000; cursor: pointer; }

.cart-summary,
.checkout-summary {
  padding: 26px;
  background: var(--kl-light);
}

.cart-summary h2,
.checkout-summary h2 { margin-bottom: 18px; font-size: 23px; }
.cart-summary p { color: var(--kl-dark); font-size: 17px; }
.cart-summary > span,
.checkout-summary > span { display: block; margin-bottom: 22px; }
.cart-summary > a { width: 100%; margin-top: 8px; background: var(--kl-cyan); }
.cart-summary > a.secondary { border: 1px solid var(--kl-dark); background: transparent; color: var(--kl-dark); }

.checkout-errors {
  margin-bottom: 26px;
  padding: 18px 22px;
  background: #fff0f0;
  color: #8b0000;
}

.checkout-errors p { margin: 5px 0 0; }

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 40px;
  align-items: start;
}

.checkout-grid form { min-width: 0; }
.checkout-grid fieldset { margin: 0 0 28px; padding: 0; border: 0; }
.checkout-grid legend { width: 100%; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--kl-border); color: var(--kl-dark); font-family: var(--kl-heading); font-size: 22px; font-weight: 600; }
.checkout-grid label:not(.choice):not(.honeypot) { margin-bottom: 16px; display: flex; flex-direction: column; gap: 7px; color: var(--kl-dark); font-weight: 600; }
.checkout-grid input[type="text"],
.checkout-grid input[type="tel"],
.checkout-grid input[type="email"],
.checkout-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 0;
  background: var(--kl-white);
  color: var(--kl-dark);
  font: inherit;
}

.checkout-grid textarea { min-height: 104px; resize: vertical; }
.choice { min-height: 44px; display: flex; align-items: center; gap: 9px; color: var(--kl-dark); }
.choice input { width: 20px; height: 20px; flex: 0 0 auto; }
.consent { margin: 8px 0 22px; align-items: flex-start; }
.consent a { color: #087f8c; text-decoration: underline; }
.place-order { width: 100%; min-height: 52px; background: var(--kl-orange); font-size: 15px; }
.place-order:disabled { background: #9b9b9b; cursor: not-allowed; transform: none; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.checkout-summary ul { margin: 0 0 20px; padding: 0; list-style: none; }
.checkout-summary li { padding: 12px 0; border-bottom: 1px solid var(--kl-border); color: var(--kl-dark); }
.checkout-summary p { color: var(--kl-dark); font-size: 17px; }
.checkout-summary > a { min-height: 44px; display: inline-flex; align-items: center; color: #087f8c; font-weight: 700; }

.order-success {
  width: min(calc(100% - 40px), 820px);
  margin: 70px auto 100px;
  text-align: center;
}

.success-mark {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--kl-cyan);
  color: var(--kl-white);
  font-size: 36px;
}

.order-success > p:first-of-type { margin: 0 0 8px; color: #087f8c; font-family: var(--kl-heading); font-weight: 600; }
.order-success h1 { font-size: clamp(32px, 5vw, 50px); }
.order-reference { margin: 30px auto; padding: 22px; display: flex; flex-direction: column; gap: 5px; background: var(--kl-dark); color: var(--kl-white); }
.order-reference strong { font-size: 21px; letter-spacing: 0.04em; }
.order-success dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--kl-border); }
.order-success dl div { padding: 18px; background: var(--kl-light); }
.order-success dt { margin-bottom: 6px; color: #666; }
.order-success dd { margin: 0; color: var(--kl-dark); font-weight: 700; }
.order-success ul { margin: 28px 0; padding: 0; list-style: none; text-align: left; }
.order-success li { padding: 13px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--kl-border); }
.notification-state { padding: 18px; background: var(--kl-light); }
.order-success-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.order-success-actions a:first-child { background: var(--kl-cyan); }

@media (max-width: 1023px) {
  .cart-filled,
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-summary,
  .checkout-summary { position: static; }
}

@media (max-width: 767px) {
  .header-cart span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .header-cart { min-width: 44px; justify-content: center; }
  .commerce-page { width: calc(100% - 32px); margin: 40px auto 64px; }
  .commerce-page > header h1 { font-size: 36px; }
  .cart-table-wrap td { padding: 10px 8px; }
  .cart-table-wrap td:first-child a { gap: 9px; font-size: 13px; }
  .cart-table-wrap img { width: 58px; height: 58px; }
  .cart-table-wrap input[type="number"] { width: 62px; }
  .cart-summary,
  .checkout-summary { padding: 22px 18px; }
  .checkout-grid { gap: 28px; }
  .order-success { width: calc(100% - 32px); margin: 50px auto 70px; }
  .order-reference strong { font-size: 16px; white-space: nowrap; }
  .order-success dl { grid-template-columns: 1fr; }
  .order-success-actions { flex-direction: column; }
  .commerce-toast { right: 16px; bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-add,
  .product-actions button,
  .place-order,
  .cart-summary > a,
  .cart-empty > a,
  .order-success-actions a { transition: none; }
}
