/* Body reset */
:host {
  display: block;
}

body {
  margin: 0 auto;
}

/* Main container */
.science-component-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  background: #f3f3f3;
}

/* First section */
.science-component-section-first {
  display: flex;
  padding-top: 24px;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Wrapper */
.science-component-wrapper {
  display: flex;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

/* Content */
.science-component-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

/* Header section */
.science-component-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

/* Title */
.science-component-title {
  margin: 0;
  color: #313131;
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.96px;
}

/* Subtitle */
.science-component-subtitle {
  margin: 0;
  color: #313131;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.56px;
}

/* Ingredients section */
.science-component-ingredients {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

/* Column */
.science-component-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  flex: 1 0 0;
}

/* Ingredient item */
.science-component-ingredient-item {
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: stretch;
}

/* Bullet */
.science-component-bullet {
  color: #a9a9a9;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 150%;
}

/* Ingredient text */
.science-component-ingredient-text {
  color: #313131;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

/* Ingredient link */
.science-component-ingredient-link {
  text-decoration: none;
  color: #313131;
  transition: opacity 0.2s ease;
}

.science-component-ingredient-link:hover {
  opacity: 0.7;
}

/* Hidden studies container */
.science-component-hidden-studies {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Show all wrapper */
.science-component-show-all-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

/* Show all link */
.science-component-show-all {
  color: #313131;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.56px;
  text-decoration: none;
  cursor: pointer;
}

.science-component-show-all:hover {
  opacity: 0.8;
}

/* Second section - Disclaimer */
.science-component-section-second {
  display: flex;
  padding: 24px 0 20px 0;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Disclaimer wrapper */
.science-component-disclaimer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Disclaimer content */
.science-component-disclaimer-content {
  display: flex;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* Disclaimer box */
.science-component-disclaimer-box {
  display: flex;
  padding: 8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 2px;
  border: 1px solid #c3c3c3;
}

/* Disclaimer text */
.science-component-disclaimer-text {
  margin: 0;
  color: #313131;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

/* Mobile styles - up to 768px */
@media screen and (max-width: 768px) {
  .science-component-container {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .science-component-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 16px;
    gap: 40px;
    box-sizing: border-box;
  }

  .science-component-content {
    width: 100%;
    box-sizing: border-box;
  }

  .science-component-header {
    width: 100%;
    box-sizing: border-box;
  }

  .science-component-title,
  .science-component-subtitle {
    word-break: break-word;
  }

  .science-component-ingredients {
    flex-direction: column;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
  }

  .science-component-column {
    width: 100%;
    box-sizing: border-box;
  }

  .science-component-ingredient-text {
    word-break: break-word;
  }

  .science-component-disclaimer-content {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .science-component-disclaimer-text {
    word-break: break-word;
  }
}
