/**
 * Safety Information Block Styles
 * Frontend styles for the important safety information section
 */

.safety-information,
.wp-block-besremi-safety-information {
	position: relative;
	z-index: 100;
	padding: 59px 30px;
	background: linear-gradient(190.6deg, #FFFFFF 0%, rgba(0, 142, 156, 0.16) 99.48%);
}

.safety-information__container,
.wp-block-besremi-safety-information .safety-information__container {
	background-color: #fff;
	border-radius: 12px;
	padding: 61px 54px;
	max-width: 1300px;
	margin: 0 auto;
}

/* Title - H2 */
.safety-information__title {
	font-family: 'Urbanist', sans-serif;
	font-size: 35px;
	font-weight: 600;
	line-height: 1.2;
	color: #000;
	text-align: center;
	margin-bottom: 67px;
}

/* Section Headings - H3 */
.safety-information__section-heading {
	font-family: 'Urbanist', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.69;
	color: #000;
	margin-top: 30px;
	margin-bottom: 14px;
}

/* Paragraphs */
.safety-information__container p {
	font-family: 'Urbanist', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.69;
	color: rgba(0, 0, 0, 0.8);
}

/* Lists */
.safety-information__container ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.safety-information__container ul li {
	font-family: 'Urbanist', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.69;
	color: rgba(0, 0, 0, 0.8);
	margin-bottom: 14px;
	padding-left: 24px;
	position: relative;
}

.safety-information__container ul li::before {
	content: '•';
	position: absolute;
	left: 0;
	color: rgba(0, 0, 0, 0.8);
}

/* Footer text with links */
.safety-information__footer a {
	text-decoration: underline;
	text-decoration-skip-ink: none;
	text-underline-position: from-font;
	color: rgba(0, 0, 0, 0.8);
}

.safety-information__footer a:hover {
	color: var(--color-primary, #e2422a);
}

/* Spacing adjustments */
.safety-information__container > .wp-block-heading:first-child {
	margin-top: 0;
}

.safety-information__container > *:last-child {
	margin-bottom: 0;
}

/* Sticky Excerpt Element */
.safety-info-sticky {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	max-width: 1200px;
	width: calc(100% - 40px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.safety-info-sticky.visible {
	opacity: 1;
	visibility: visible;
}

.safety-info-sticky__content {
	padding: 20px 26px;
	position: relative;
}

.safety-info-sticky__header {
	margin-bottom: 16px;
}

.safety-info-sticky__title {
	font-family: 'Urbanist', sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.33;
	color: #000;
	margin: 0;
	padding-right: 44px;
}

.safety-info-sticky__toggle {
	position: absolute;
	top: 20px;
	right: 15px;
	width: 24px;
	height: 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background-color: rgba(54, 102, 59, 0.96);
	border-radius: 3px;
	transition: background-color 0.2s ease;
}

.safety-info-sticky__toggle:hover {
	background-color: rgba(54, 102, 59, 1);
}

.safety-info-sticky__icon {
	width: 16px;
	height: 16px;
	transition: opacity 0.2s ease;
}

.safety-info-sticky__icon--close {
	opacity: 1;
}

.safety-info-sticky__icon--expand {
	opacity: 0;
	position: absolute;
}

.safety-info-sticky.collapsed .safety-info-sticky__icon--close {
	opacity: 0;
}

.safety-info-sticky.collapsed .safety-info-sticky__icon--expand {
	opacity: 1;
}

.safety-info-sticky__excerpt {
	margin-bottom: 16px;
	max-height: 200px;
	overflow-y: auto;
	transition: max-height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
}

.safety-info-sticky.collapsed .safety-info-sticky__excerpt {
	max-height: 0;
	margin-bottom: 0;
	opacity: 0;
	overflow: hidden;
}

.safety-info-sticky.collapsed .safety-info-sticky__title {
	display: none;
}

.safety-info-sticky__excerpt p {
	font-family: 'Urbanist', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: #000;
	margin: 0;
}

.safety-info-sticky__footer {
	border-top: 1px solid #e5e5e5;
	padding-top: 15px;
	transition: padding 0.3s ease, border 0.3s ease;
}

.safety-info-sticky.collapsed .safety-info-sticky__footer {
	border-top: none;
	padding-top: 0;
}

.safety-info-sticky.collapsed .safety-info-sticky__header {
	margin-bottom: 0;
}

.safety-info-sticky.collapsed .safety-info-sticky__content {
	padding: 20px 40px;
}

.safety-info-sticky.collapsed .safety-info-sticky__toggle {
	top: 19px;
}

.safety-info-sticky__scroll-link {
	font-family: 'Urbanist', sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.33;
	color: #3e6c43;
	text-decoration: underline;
	text-decoration-skip-ink: none;
	text-underline-position: from-font;
	display: block;
	text-align: center;
	cursor: pointer;
	transition: color 0.2s ease;
}

.safety-info-sticky__scroll-link:hover {
	color: #2d5132;
}

/* Responsive Styles */
@media (max-width: 1600px) {
	.safety-information__container,
	.wp-block-besremi-safety-information .safety-information__container {
		max-width: 1340px;
	}
}

@media (max-width: 991px) {
	.safety-information {
		padding: 40px 30px;
	}

	.safety-information__container {
		padding: 40px 35px;
	}

	.safety-information__title {
		font-size: 28px;
		margin-bottom: 50px;
	}

	.safety-info-sticky {
		max-width: calc(100% - 40px);
		bottom: 20px;
	}

	.safety-info-sticky__title,
	.safety-info-sticky__scroll-link {
		font-size: 16px;
	}

	.safety-info-sticky__excerpt p {
		font-size: 15px;
	}
}

@media (max-width: 767px) {
	.safety-information {
		padding: 0;
	}

	.safety-information__container,
	.wp-block-besremi-safety-information .safety-information__container {
		max-width: 1360px;
		padding: 50px 30px;
	}
}

@media (max-width: 576px) {
	.safety-information__container {
		padding: 30px 25px;
		border-radius: 8px;
	}

	.safety-information__title {
		font-size: 24px;
		margin-bottom: 40px;
	}

	.safety-information__section-heading {
		margin-top: 25px;
	}

	.safety-information__container p,
	.safety-information__container ul li {
		font-size: 15px;
	}

	.safety-info-sticky {
		max-width: calc(100% - 20px);
		bottom: 15px;
	}

	.safety-info-sticky__content {
		padding: 16px 20px;
	}

	.safety-info-sticky.collapsed .safety-info-sticky__content {
		padding: 16px 40px;
	}

	.safety-info-sticky__title,
	.safety-info-sticky__scroll-link {
		font-size: 14px;
	}

	.safety-info-sticky__excerpt p {
		font-size: 14px;
	}

	.safety-info-sticky__toggle {
		width: 20px;
		height: 20px;
	}

	.safety-info-sticky__icon {
		width: 14px;
		height: 14px;
	}
}
