.shomer-shabbat-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 24px;
	background: rgba(10, 20, 35, 0.74);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #17345f;
	text-align: center;
	pointer-events: auto;
	font-family: "Noto Serif Hebrew", "Assistant", Arial, sans-serif;
}

.shomer-shabbat-overlay *,
.shomer-shabbat-overlay *::before,
.shomer-shabbat-overlay *::after {
	box-sizing: border-box;
}

.shomer-shabbat-modal {
	position: relative;
	width: min(100%, 620px);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: clamp(26px, 5vw, 40px);
	border: 1px solid rgba(203, 151, 68, 0.72);
	border-radius: 8px;
	background: #fbf7ef;
	box-shadow:
		0 0 0 4px rgba(251, 247, 239, 0.96),
		0 0 0 5px rgba(203, 151, 68, 0.72),
		0 24px 80px rgba(0, 0, 0, 0.3);
}

.shomer-shabbat-modal::before,
.shomer-shabbat-modal::after {
	position: absolute;
	left: 50%;
	width: min(140px, 40%);
	height: 1px;
	background: linear-gradient(90deg, transparent, #d7a24a 22%, #d7a24a 78%, transparent);
	content: "";
	transform: translateX(-50%);
}

.shomer-shabbat-modal::before {
	top: 18px;
}

.shomer-shabbat-modal::after {
	bottom: 18px;
}

.shomer-shabbat-logo {
	display: block;
	width: auto;
	max-width: min(190px, 72%);
	max-height: 118px;
	margin: 0 auto 10px;
	object-fit: contain;
}

.shomer-shabbat-modal h2 {
	position: relative;
	margin: 0;
	color: #17345f;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
}

.shomer-shabbat-modal h2::after {
	display: block;
	width: 112px;
	height: 2px;
	margin: 14px auto 0;
	background:
		linear-gradient(90deg, transparent 0 22px, #d7a24a 22px 46px, transparent 46px 66px, #d7a24a 66px 90px, transparent 90px),
		linear-gradient(45deg, transparent 43%, #d7a24a 43% 57%, transparent 57%) center / 12px 12px no-repeat;
	content: "";
}

.shomer-shabbat-description {
	margin: 16px 0 0;
	color: #17345f;
	font-size: clamp(16px, 1.8vw, 18px);
	font-weight: 500;
	line-height: 1.7;
}

.shomer-shabbat-description p {
	margin: 0;
}

.shomer-shabbat-description p + p {
	margin-top: 12px;
}

.shomer-shabbat-preview-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin-top: 24px;
	padding: 8px 16px;
	border: 1px solid rgba(203, 151, 68, 0.72);
	border-radius: 6px;
	background: #fbf7ef;
	color: #17345f;
	font-family: "Assistant", Arial, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
}

.shomer-shabbat-preview-close:hover,
.shomer-shabbat-preview-close:focus {
	border-color: #b27a29;
	background: #f6eedf;
}

body.shomer-shabbat-is-active {
	overflow: hidden !important;
}

@media (max-width: 480px) {
	.shomer-shabbat-overlay {
		padding: 16px;
	}

	.shomer-shabbat-modal {
		padding: 28px 22px;
	}
}
