/* Cart drawer + nav trigger */
.alchemy-cart-panel[hidden],
.alchemy-cart-backdrop[hidden] {
  display: none !important;
}

/* Navbar cart icon (store + checkout) */
.alchemy-nav-cart-btn {
  position: relative;
}
.alchemy-nav-cart-btn .alchemy-nav-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #00ff88;
  color: #03140a;
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  pointer-events: none;
}
.alchemy-nav-cart-btn.has-items {
  border-color: rgba(0, 255, 136, 0.45);
  color: #00ff88;
}

.alchemy-cart-root--nav .alchemy-cart-fab {
  display: none !important;
}

.alchemy-cart-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(0, 230, 122, 0.45);
  background: linear-gradient(165deg, rgba(0, 255, 136, 0.22), rgba(0, 0, 0, 0.85));
  color: #00e67a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 230, 122, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}
.alchemy-cart-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 32px rgba(0, 230, 122, 0.28);
}
.alchemy-cart-fab-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #00ff88;
  color: #03140a;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alchemy-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 901;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.alchemy-cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 902;
  width: min(380px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(12, 14, 16, 0.98);
  border-left: 1px solid rgba(0, 230, 122, 0.25);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.5);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.alchemy-cart-panel-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.alchemy-cart-panel-head h2 {
  margin: 0;
  font-family: "Lexend", "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.alchemy-cart-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.alchemy-cart-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px;
}
.alchemy-cart-empty {
  margin: 24px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.alchemy-cart-line {
  display: grid;
  grid-template-columns: 96px 1fr 36px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}
.alchemy-cart-line:last-child {
  margin-bottom: 0;
}
.alchemy-cart-line-thumb {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 230, 122, 0.18);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(0, 230, 122, 0.1), transparent 60%),
    rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alchemy-cart-line-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.alchemy-cart-line-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.alchemy-cart-line-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.alchemy-cart-line-price {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #00ff88;
}
.alchemy-cart-remove {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alchemy-cart-remove:hover {
  color: #ffb4b4;
  border-color: rgba(255, 120, 120, 0.35);
  background: rgba(255, 80, 80, 0.1);
}
.alchemy-cart-panel-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding: 14px 20px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 16, 0.98);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.alchemy-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}
.alchemy-cart-subtotal strong {
  font-size: 1.1rem;
  color: #00ff88;
}
.alchemy-cart-checkout-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(180deg, #00ff88 0%, #00b35c 100%);
  color: #03140a;
}
.alchemy-cart-checkout-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.alchemy-cart-continue {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0, 255, 170, 0.85);
  text-decoration: none;
}
body.alchemy-cart-open {
  overflow: hidden;
}

/* Store plan card actions — themed in site-store-premium.css */

/* Checkout multi-line summary */
.co-cart-lines {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.co-cart-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.co-cart-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.co-cart-line img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 230, 122, 0.2);
}
.co-cart-line-text {
  flex: 1;
  min-width: 0;
}
.co-cart-line-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.co-cart-line-text span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 255, 170, 0.9);
}
.co-cart-multi-note {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}
