.cart-popup {
  width: min(520px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(20, 27, 23, .28);
}

.cart-popup::backdrop {
  background: rgba(20, 27, 23, .52);
  backdrop-filter: blur(3px);
}

.cart-popup-card {
  position: relative;
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.cart-popup-card h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 5vw, 36px);
}

.cart-popup-item {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.cart-popup-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 8px;
  background: #f2eee5;
}

.cart-popup-total {
  color: var(--soil);
  font-size: 19px;
}

.cart-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cart-popup-actions .button,
.cart-popup-close {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.cart-popup-actions .button.light {
  border: 1px solid var(--line);
}

.cart-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f2eee5;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 520px) {
  .cart-popup-actions {
    grid-template-columns: 1fr;
  }

  .cart-popup-summary {
    display: grid;
  }
}
