/* HMF Nutrition Tabs - Complete Rewrite */
.nutrition-tabs {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
}

/* Tab Navigation */
.nutrition-tabs__list {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nutrition-tabs__tab {
  appearance: none;
  background: #dc2626; /* Red background like in screenshot */
  border: 2px solid #000;
  border-bottom: none;
  padding: 12px 44px;
  margin: 0;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 12px 12px 0 0;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: "Barlow Condensed";
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
}

.nutrition-tabs__tab:first-child {
  border-top-left-radius: 12px;
}

.nutrition-tabs__tab:last-child {
  border-top-right-radius: 12px;
}

.nutrition-tabs__tab:hover {
  background: #b91c1c;
}

.nutrition-tabs__tab.is-active {
  background: #fff;
  color: #000;
  border-bottom: none;
  z-index: 2;
}

.nutrition-tabs__tab:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* Tab Panels Container */
.nutrition-tabs__panels {
  position: relative;
}

.nutrition-tabs__panel {
  background: #fff;
  border: 2px solid #000;
  border-top: none;
  border-radius: 0 12px 12px 12px;
  padding: 24px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.nutrition-tabs__panel[hidden] {
  display: none;
}

/* Nutrition Facts Content */
.nutrition-facts {
  font-family: "Montserrat", Sans-serif;
  line-height: 1.4;
  color: #000;
}

.product-name {
  font-weight: bold;
  font-size: 14px;
  color: #000;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.nutrition-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid #000;
  min-height: 20px;
}

/* Fix double borders by removing borders from rows followed by hidden rows */
.nutrition-row + .nutrition-row {
  border-top: none;
}

/* Remove border from last nutrition row before special sections */
.nutrition-row:last-of-type,
.nutrition-special:first-of-type ~ .nutrition-row:last-of-type {
  border-bottom: none;
}

.nutrition-label {
  font-weight: bold;
  color: #000;
  flex: 1;
}

.nutrition-percent {
  font-weight: bold;
  color: #000;
  min-width: 50px;
  text-align: right;
  flex-shrink: 0;
}

.nutrition-thick-border {
  border-bottom: 3px solid #000;
  margin: 0;
}

.calories-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: none;
}

.calories-left,
.calories-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nutrition-value-inline {
  font-weight: bold;
  color: #000;
}

/* Indentation for sub-items */
.nutrition-indent .nutrition-label {
  padding-left: 16px;
}

.nutrition-indent-2 .nutrition-label {
  padding-left: 32px;
}



/* Special sections for Ingredients and Contains */
.nutrition-special {
  margin-top: 16px;
  padding-top: 0;
  border: none;
}

.nutrition-special + .nutrition-special {
  margin-top: 16px;
}

.nutrition-special-label {
  font-weight: bold;
  color: #000;
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  text-transform: uppercase;
}

.nutrition-special-content {
  color: #000;
  display: block;
  line-height: 1.5;
  font-size: 15px;
}


.two-pixel-border {
	border-bottom: 2px solid #000;
}

.extra-nutrition-padding {
	padding-top: 15px;
}

.nutrition-tab-title {
  text-transform: uppercase;
  font-family: "Barlow Condensed";
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  padding-bottom: 10px;
}

.nutrition-disclaimer {
	font-size:11px; 
	line-height:1.4; 
	margin-top:32px;
}

.nutrition-special-label,
.nutrition-special-content {
  display: inline;
}

.nutrition-special .toggle-btn {
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #000;
  font-size: 15px;
  text-transform: uppercase;
}

.nutrition-special .toggle-btn:hover, .nutrition-special .toggle-btn:focus {
  background-color: #fff;
	color: #333;
}

.nutrition-special .more { display: none; }
.nutrition-special .dots { display: inline; }

.nutrition-special.expanded .more { display: inline; }
.nutrition-special.expanded .dots { display: none; }

.nutrition-special .read-less { display: none; }
.nutrition-special.expanded .read-less { display: inline; }
.nutrition-special.expanded .read-more { display: none; }


/* Responsive adjustments */

@media (min-width:768px) and (max-width: 1024px) {
.nutrition-tabs__tab {
  font-size: 24px;
  padding: 12px 34px;
	}
.nutrition-tab-title {
  font-size: 19px;
	}}


@media (max-width: 767px) {
  .nutrition-tabs__tab {
    font-size: 20px;
	padding: 12px 24px;
  }
  
  .nutrition-tabs__panel {
    padding: 16px;
  }
  
  .nutrition-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
	
	/* Override for standard label+percent rows */
  .nutrition-row:not(.calories-row) {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }

  /* Ensure spans stay inline */
  .nutrition-row:not(.calories-row) .nutrition-label,
  .nutrition-row:not(.calories-row) .nutrition-percent {
    display: inline-block;
    width: auto;
  }
  
  .nutrition-value {
    text-align: left;
    min-width: auto;
  }
	.nutrition-tab-title {
  font-size: 18px;
	}
}


