/* Basic styling for the sheet store plugin */
#sheet-store-container {
  margin-top: 1rem;
}

.sheet-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.sheet-store-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.sheet-store-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.sheet-store-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.sheet-store-desc {
  font-size: 0.875rem;
  color: #555;
  flex-grow: 1;
}

.sheet-store-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.sheet-store-price {
  font-weight: 700;
}

.sheet-store-add {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}

#sheet-store-cart {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 1rem;
}

.sheet-store-cart-summary h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.sheet-store-cart-items {
  margin-bottom: 1rem;
}

.sheet-store-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.sheet-store-cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-controls button {
  background: #f5f5f5;
  border: 1px solid #ccc;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
}

.remove-item {
  color: #dc2626;
  border: none;
  background: none;
  font-size: 1rem;
}

.field {
  margin: 0.5rem 0;
}

.field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.field button {
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: none;
  background: #2563eb;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.coupon-message {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.totals {
  margin-top: 1rem;
}
.totals div {
  display: flex;
  justify-content: space-between;
  margin: 0.25rem 0;
}

.totals .total {
  font-weight: 700;
}

.sheet-store-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sheet-store-actions button {
  padding: 0.6rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}

.sheet-store-actions .order-whatsapp {
  background: #10b981; /* green */
  color: white;
}

.sheet-store-actions .order-email {
  background: #3b82f6; /* blue */
  color: white;
}