:root {
  --lcp-bg: #090b12;
  --lcp-text: #ffffff;
  --lcp-muted: #b8bdd6;
  --lcp-primary-start: #7f2dff;
  --lcp-primary-mid: #d736c9;
  --lcp-primary-end: #ff2b6f;
  --lcp-secondary-bg: rgba(255, 255, 255, 0.08);
}

.lcp-no-scroll {
  overflow: hidden;
}

.lcp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.lcp-modal.is-open {
  display: block;
}

.lcp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.lcp-dialog {
  position: relative;
  margin: min(6vh, 40px) auto;
  width: min(92vw, 560px);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 22px;
  color: var(--lcp-text);
  background: linear-gradient(135deg, #120725 0%, #2c0f5a 35%, #af1faa 70%, #f01e5b 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: lcp-slide-in 220ms ease-out;
}

@keyframes lcp-slide-in {
  from {
    transform: translateY(10px) scale(0.985);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.lcp-head,
.lcp-body,
.lcp-actions,
.lcp-view-cart-link {
  padding-left: 20px;
  padding-right: 20px;
}

.lcp-head {
  padding-top: 22px;
}

.lcp-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.lcp-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.lcp-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.lcp-body {
  margin-top: 12px;
  max-height: 50vh;
  overflow: auto;
}

.lcp-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.lcp-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(4, 6, 14, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lcp-item.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.lcp-item-image {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.lcp-item-image img,
.lcp-img-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lcp-item-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.lcp-item-meta {
  margin-top: 2px;
  color: var(--lcp-muted);
  font-size: 13px;
}

.lcp-item-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lcp-qty-wrap {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.lcp-qty-btn {
  width: 32px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.lcp-qty-value {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.lcp-remove-btn {
  border: 0;
  background: transparent;
  color: #fff;
  opacity: 0.92;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 13px;
  cursor: pointer;
}

.lcp-empty {
  padding: 14px;
  text-align: center;
  border-radius: 12px;
  background: rgba(4, 6, 14, 0.3);
}

.lcp-warning {
  text-align: left;
  line-height: 1.45;
}

.lcp-retry-btn {
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.lcp-summary {
  margin-top: 12px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(4, 6, 14, 0.4);
}

.lcp-total-label {
  color: rgba(255, 255, 255, 0.84);
}

.lcp-total-value {
  font-size: 22px;
}

.lcp-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.lcp-btn {
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  text-align: center;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.lcp-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.lcp-btn-secondary {
  color: #fff;
  background: var(--lcp-secondary-bg);
}

.lcp-btn-primary {
  color: #fff !important;
  background: linear-gradient(90deg, var(--lcp-primary-start), var(--lcp-primary-mid), var(--lcp-primary-end));
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.lcp-view-cart-link {
  display: block;
  padding-top: 10px;
  padding-bottom: 18px;
  text-align: center;
  color: #fff !important;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.75);
  text-underline-offset: 3px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  opacity: 0.95;
}

.lcp-dialog a.lcp-btn-primary:hover,
.lcp-dialog a.lcp-btn-primary:focus,
.lcp-dialog a.lcp-btn-primary:visited,
.lcp-dialog a.lcp-btn-primary:active,
.lcp-dialog a.lcp-view-cart-link:hover,
.lcp-dialog a.lcp-view-cart-link:focus,
.lcp-dialog a.lcp-view-cart-link:visited,
.lcp-dialog a.lcp-view-cart-link:active {
  color: #fff !important;
}

@media (max-width: 767px) {
  .lcp-dialog {
    width: calc(100vw - 16px);
    margin: 8px auto;
    border-radius: 18px;
    max-height: calc(100vh - 16px);
  }

  .lcp-head,
  .lcp-body,
  .lcp-actions,
  .lcp-view-cart-link {
    padding-left: 14px;
    padding-right: 14px;
  }

  .lcp-actions {
    grid-template-columns: 1fr;
  }

  .lcp-btn {
    width: 100%;
  }

  .lcp-item-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .lcp-total-value {
    font-size: 20px;
  }
}
