.lexivon-cart-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1300;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  background: #111827;
  color: #fff;
  font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.lexivon-cart-fab:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lexivon-cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 20px;
}

.lexivon-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  justify-content: flex-end;
}

.lexivon-cart-drawer[hidden] {
  display: none;
}

.lexivon-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.lexivon-cart-panel {
  position: relative;
  width: 100%;
  max-width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.lexivon-cart-drawer:not([hidden]) .lexivon-cart-panel {
  transform: translateX(0);
}

.lexivon-cart-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.lexivon-cart-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.lexivon-cart-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  color: #6b7280;
}

.lexivon-cart-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lexivon-cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.lexivon-cart-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.lexivon-cart-item-meta {
  flex: 1;
  min-width: 0;
}

.lexivon-cart-item-name {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  word-break: break-word;
}

.lexivon-cart-item-sub {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.lexivon-cart-qty-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lexivon-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

.lexivon-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 18px;
  line-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}

.lexivon-qty-val {
  width: 42px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 36px;
  border-left: 1px solid #d1d5db;
  border-right: 1px solid #d1d5db;
}

.lexivon-cart-price {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.lexivon-cart-footer {
  flex-shrink: 0;
  border-top: 1px solid #eee;
  padding: 14px 18px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lexivon-cart-summary {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #111827;
  font-weight: 700;
}

.lexivon-pay-error {
  margin: 0;
  padding: 8px 10px;
  font-size: 13px;
  text-align: center;
  border-radius: 8px;
  background: #fdecea;
  color: #b42318;
}

.lexivon-pay-error[hidden] {
  display: none;
}

.lexivon-pay-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 800;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.lexivon-pay-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.lexivon-pay-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

.lexivon-addbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.lexivon-addbar-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lexivon-addbar-info {
  flex: 1;
  min-width: 0;
}

.lexivon-addbar-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lexivon-addbar-price {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.lexivon-add-btn {
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

