@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.quantity-container button {
  cursor: pointer;
  transition: background-color 0.2s;
}

.quantity-container button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.remove-item {
  cursor: pointer;
  transition: background-color 0.2s;
}

.remove-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes confirmModalIn {
  from { opacity: 0; transform: scale(0.88) translateY(-12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.confirm-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px 32px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  text-align: center;
  animation: confirmModalIn 0.22s cubic-bezier(.22,.68,0,1.2);
}

.confirm-modal-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fdf0eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: #75584a;
}

.confirm-modal-title {
  font-weight: 700;
  font-size: 20px;
  color: #2f2f2f;
  margin-bottom: 8px;
}

.confirm-modal-text {
  color: #888;
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.55;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
}

.confirm-modal-actions .btn {
  flex: 1;
  padding: 11px 16px;
  font-size: 15px;
  border-radius: 30px;
}

.confirm-modal-actions .btn-cancel {
  background: #f0ede9;
  color: #2f2f2f;
  border-color: #f0ede9;
}

.confirm-modal-actions .btn-cancel:hover {
  background: #e5e0da;
  border-color: #e5e0da;
  color: #2f2f2f;
}

/* ── Cart mobile: table → cards ── */
@media (max-width: 767px) {
  /* Kill horizontal scroll */
  .site-blocks-table { overflow: visible; }

  /* Hide table header */
  .site-blocks-table thead { display: none; }

  /* Each row = card */
  .site-blocks-table table,
  .site-blocks-table tbody { display: block; }

  .site-blocks-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
  }
  .site-blocks-table tbody tr:first-child td { border-top: none !important; }

  /* All td: block by default, override below */
  .site-blocks-table td {
    display: block;
    padding: 0;
    text-align: left;
    border: none !important;
  }

  /* Image: left column, 80px */
  .site-blocks-table td.product-thumbnail {
    width: 80px;
    flex-shrink: 0;
    padding-right: 12px;
  }
  .site-blocks-table td.product-thumbnail img {
    max-width: 76px !important;
    border-radius: 6px;
  }

  /* Name: right of image, fills remaining width */
  .site-blocks-table td.product-name {
    flex: 1;
    min-width: 0;
    padding-bottom: 10px;
  }
  .site-blocks-table td.product-name h2 {
    font-size: 15px !important;
    margin-bottom: 4px;
  }

  /* Bottom row: price + qty + total + remove */
  .site-blocks-table td.product-price,
  .site-blocks-table td.product-quantity,
  .site-blocks-table td.product-subtotal,
  .site-blocks-table td.product-remove {
    width: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid #f0ede9 !important;
    font-size: 14px;
  }

  /* Quantity container on mobile */
  .site-blocks-table .quantity-container {
    max-width: 100px !important;
  }

  /* Remove button: compact */
  .site-blocks-table td.product-remove .remove-item {
    font-size: 13px;
    padding: 4px 10px !important;
  }
}