/**
 * UruShop Nutrition Label Styles
 *
 * Branded, UK-compliant ingredient & nutrition label styling.
 * BEM naming convention: .urushop-nutrition__element--modifier
 *
 * @version 1.1.0
 */

/* ==========================================================================
   Container
   ========================================================================== */

.urushop-nutrition {
	max-width: 600px;
	font-size: 14px;
	line-height: 1.6;
	color: #2D3436;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

/* ==========================================================================
   Branded Header
   ========================================================================== */

.urushop-nutrition__header {
	background: #1B4332;
	padding: 12px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.urushop-nutrition__header-brand {
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.02em;
}

.urushop-nutrition__header-product {
	color: #C3F73A;
	font-size: 12px;
	font-weight: 500;
	text-align: right;
	max-width: 60%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ==========================================================================
   Inner content padding
   ========================================================================== */

.urushop-nutrition__net-weight,
.urushop-nutrition__recommended-use,
.urushop-nutrition__ingredients,
.urushop-nutrition__table-wrapper,
.urushop-nutrition__warning {
	padding-left: 20px;
	padding-right: 20px;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

.urushop-nutrition__section-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 2px solid #00A86B;
	color: #1B4332;
}

/* ==========================================================================
   Net Weight
   ========================================================================== */

.urushop-nutrition__net-weight {
	margin: 0;
	padding-top: 16px;
	padding-bottom: 12px;
	font-size: 14px;
	border-bottom: 1px solid #e0e0e0;
}

/* ==========================================================================
   Recommended Use
   ========================================================================== */

.urushop-nutrition__recommended-use {
	padding-top: 16px;
	padding-bottom: 4px;
}

.urushop-nutrition__recommended-use p {
	margin: 8px 0 4px;
	color: #2D3436;
}

/* ==========================================================================
   Ingredients
   ========================================================================== */

.urushop-nutrition__ingredients {
	padding-top: 16px;
	margin-bottom: 0;
	padding-bottom: 4px;
}

.urushop-nutrition__ingredients p {
	margin: 8px 0 4px;
}

.urushop-nutrition__allergen-note {
	margin: 4px 0 0;
	color: #666;
}

.urushop-nutrition__allergen-note small {
	font-size: 12px;
}

/* ==========================================================================
   Nutrition Table
   ========================================================================== */

.urushop-nutrition__table-wrapper {
	padding-top: 16px;
	margin-bottom: 0;
	padding-bottom: 4px;
}

.urushop-nutrition__table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
	font-size: 14px;
}

.urushop-nutrition__table th,
.urushop-nutrition__table td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.urushop-nutrition__table thead th {
	background: #f5f5f5;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 2px solid #1B4332;
	color: #1B4332;
}

.urushop-nutrition__table tbody tr:last-child td {
	border-bottom: 2px solid #1B4332;
}

.urushop-nutrition__table td:not(:first-child) {
	text-align: right;
	white-space: nowrap;
}

.urushop-nutrition__table th:not(:first-child) {
	text-align: right;
}

/* Zebra striping */
.urushop-nutrition__table tbody tr:nth-child(even) {
	background: #fafafa;
}

/* Indented "of which" rows */
.urushop-nutrition__table-indent td:first-child {
	padding-left: 28px;
	font-style: italic;
	color: #555;
}

/* ==========================================================================
   Caffeine Warning
   ========================================================================== */

.urushop-nutrition__warning {
	padding-top: 16px;
	padding-bottom: 16px;
}

.urushop-nutrition__warning > div {
	padding: 12px 16px;
	background: #FFF3CD;
	border: 1px solid #FECF63;
	border-left: 4px solid #FF6B35;
	border-radius: 4px;
}

.urushop-nutrition__warning p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
}

.urushop-nutrition__warning strong {
	color: #CC5500;
}

/* ==========================================================================
   Branded Footer
   ========================================================================== */

.urushop-nutrition__footer {
	background: #1B4332;
	padding: 8px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 16px;
}

.urushop-nutrition__footer-brand {
	color: #C3F73A;
	font-weight: 600;
	font-size: 12px;
}

.urushop-nutrition__footer-info {
	color: rgba(255, 255, 255, 0.7);
	font-size: 11px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
	.urushop-nutrition__header-product {
		display: none;
	}

	.urushop-nutrition__table th,
	.urushop-nutrition__table td {
		padding: 6px 8px;
		font-size: 13px;
	}

	.urushop-nutrition__table-indent td:first-child {
		padding-left: 20px;
	}

	.urushop-nutrition__footer {
		flex-direction: column;
		gap: 2px;
		text-align: center;
	}
}
