.ingredient-card {
	background-color: #fff;
  border: 1px solid #877d7a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.accordion {
  background: rgba(238, 234, 231, 0.4);
  cursor: pointer;
  padding: 15px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: white;
}

.badge-safe { background: #4caf50; }
.badge-warning { background: #966; }
.badge-danger { background: #cca09e; }
.badge-neutral { background: #e6dacc; color: #000 }
.badge-danger_high { background: #666f7d; }
.badge-warning_moderate { background: #a5b3bb; }

.panel {
  display: none;
  padding: 0 15px 15px;
}

.description {
  font-weight: bold;
  margin: 10px 0 5px;
}

.note {
  margin: 6px 0;
  font-size: 14px;
}

.warning {
  color: #d32f2f;
}

.insight-card {
  margin-top: 25px;
  padding: 16px;
  background: rgba(204, 160, 158, 0.2);
  border-left: 6px solid #633;
  border-radius: 8px;
}

/* CSS for Shopify Products */
.shopify-products-container {
  padding: 24px 0px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow: scroll;
}
.shopify-message {
	margin-top: 32px;
}
.related-products__item {
  min-width: 260px;
  border: 1px solid #877d7a;
  background: rgba(239, 234, 231, 1);
  padding: 0.5rem;
  text-align: left;
  border-radius: 8px;
}
.related-products__item a {
  text-decoration: none;
}
.related-products__img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}
.related-products__item h5 {
  font-size: 1rem;
  line-height: 24px;
  margin: 0.5rem 0 0.25rem;
}
.related-products__item p {
  margin-bottom: 0px;
}
.related-products__item p {
  font-size: 0.875rem;
  color: #777;
}

/* CSS for widget */
.ingredient-checker .ingredient-input {
  width: 100%;
  margin-bottom: 16px;
  min-height: 150px;
}
.ingredient-checker .widget__powered-by {
  font-size: 12px;
  text-decoration: none;
}
.chekit__form-footer {
	display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

/* Pop Up for Product analysis */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal {
	position: relative;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 1.2rem;
  cursor: pointer;
}
.progress-bar {
  background: #eee;
  border-radius: 4px;
  height: 10px;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 4px;
}
.progress-fill {
  background: #996666;
  height: 100%;
  border-radius: 4px;
}

@media only screen and (max-width: 600px) {
  .accordion-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .chekit__form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}