* {
  box-sizing: border-box;
}

:host {
  display: block;
  background-color: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
}

.product-section {
  display: flex;
  margin-bottom: 16px;
  gap: var(--space-16);
}

.product-image,
.placeholder-image {
  width: 80px;
  height: 80px;
  background-color: #f2f2f2;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: var(--space-16);
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;

  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
}

.delivery-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.next-delivery,
.frequency {
  font-size: 14px;
  margin: 0;
}

.delivery-label {
  color: var(--primary-blue);
  font-weight: normal;
}

.next-delivery {
  color: #1a1a1a;
}

.frequency {
  color: #666;
}

.buttons-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--space-8);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  flex: 1;
  font-family: var(--ism-primary-font-family);
}

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

.button.primary {
  background-color: var(--primary-blue);
  color: white;
}

.button.primary:hover {
  background-color: #001943;
}

.button.secondary {
  background-color: white;
  border: 1px solid var(--border-color);
  color: #333;
}

.button.secondary:hover {
  background-color: var(--light-gray);
}

@media (max-width: 480px) {
  .product-section {
    flex-direction: column;
  }

  .product-image,
  .placeholder-image {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
}
