.lphd-cart-toggle {
  position: fixed;
  z-index: 9990;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 10px 16px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #0b4f52;
  box-shadow: 0 10px 30px rgba(8, 42, 45, .24);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lphd-cart-count {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  background: #f26555;
  color: #092d30;
  font-size: 13px;
}

.lphd-cart-backdrop {
  position: fixed;
  z-index: 9997;
  inset: 0;
  background: rgba(6, 31, 34, .54);
}

.lphd-cart-drawer {
  position: fixed;
  z-index: 9998;
  top: 0;
  right: 0;
  display: flex;
  width: min(440px, 100vw);
  height: 100dvh;
  flex-direction: column;
  padding: 24px;
  background: #fffaf0;
  box-shadow: -18px 0 55px rgba(6, 31, 34, .26);
  color: #102f33;
  transform: translateX(105%);
  transition: transform .22s ease;
}

.lphd-cart-drawer[aria-hidden="false"] { transform: translateX(0); }
.lphd-cart-open { overflow: hidden; }

.lphd-cart-header,
.lphd-cart-subtotal,
.lphd-cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lphd-cart-header { padding-bottom: 18px; border-bottom: 1px solid #d7dedc; }
.lphd-cart-header h2 { margin: 0; font-size: 30px; }
.lphd-cart-header .eyebrow { margin: 0 0 3px; }
.lphd-cart-close { border: 0; background: transparent; color: #102f33; font-size: 36px; line-height: 1; cursor: pointer; }
.lphd-cart-status { min-height: 24px; padding: 10px 0; color: #31565a; font-weight: 700; }
.lphd-cart-status.is-error { color: #a2362a; }
.lphd-cart-items { flex: 1; overflow-y: auto; }
.lphd-cart-empty { padding: 34px 8px; text-align: center; }

.lphd-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #d7dedc;
}

.lphd-cart-image img,
.lphd-cart-image-placeholder {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.lphd-cart-image-placeholder { color: #ba4b3e; font-weight: 900; }
.lphd-cart-item h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.25; }
.lphd-cart-sku { margin: 0 0 10px; color: #557075; font-size: 12px; }
.lphd-cart-item-controls { justify-content: flex-start; }
.lphd-cart-item-controls input { width: 60px; min-height: 38px; }
.lphd-cart-item-controls button { border: 0; background: transparent; color: #a2362a; text-decoration: underline; cursor: pointer; }
.lphd-cart-item-controls strong { margin-left: auto; }

.lphd-cart-footer {
  padding-top: 18px;
  border-top: 2px solid #0b4f52;
}

.lphd-cart-subtotal { font-size: 21px; }
.lphd-cart-footer p { margin: 8px 0 14px; color: #557075; font-size: 13px; }
.lphd-cart-checkout { width: 100%; }
.lphd-cart-footer small { display: block; margin-top: 8px; text-align: center; }

[data-lphd-add-to-cart][disabled] { cursor: wait; opacity: .72; }

.lphd-checkout-return {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #a9ccc0;
  background: #e7f4ef;
  color: #143f42;
  text-align: center;
}

.lphd-checkout-return strong { color: #0b4f52; }

@media (max-width: 680px) {
  .lphd-cart-toggle { right: 14px; bottom: 14px; }
  .lphd-cart-drawer { padding: 18px; }
  .lphd-checkout-return { align-items: flex-start; flex-direction: column; gap: 2px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .lphd-cart-drawer { transition: none; }
}
