.sy-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 1.5rem 1rem;
}

.sy-popup[hidden] {
	display: none;
}

.sy-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(24, 24, 24, 0.55);
}

.sy-popup__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 1.25fr;
	max-width: 860px;
	width: calc(100% - 2rem);
	max-height: min(92vh, 760px);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
	animation: sy-popup-in 0.35s ease;
	margin: auto;
}

.sy-popup__dialog::-webkit-scrollbar {
	width: 5px;
}

.sy-popup__dialog::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.18);
	border-radius: 4px;
}

@keyframes sy-popup-in {
	from { opacity: 0; transform: translateY(16px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.sy-popup__dialog--no-media {
	grid-template-columns: 1fr;
	max-width: 480px;
}

.sy-popup__media {
	position: relative;
	min-height: 440px;
	background: #181818;
	overflow: hidden;
}

.sy-popup__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.sy-popup__content {
	padding: 3rem 2.75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	justify-content: center;
}

.sy-popup__eyebrow {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1.4rem;
	font-weight: 300;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 1rem;
	color: #111111;
}

.sy-popup__title {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.4rem;
	color: #111111;
}

.sy-popup__subtitle {
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 0.95rem;
	font-weight: 400;
	margin: 0 0 1.25rem;
	color: #111111;
}

.sy-popup__body {
	font-size: 0.82rem;
	line-height: 1.55;
	color: #4a4a4a;
	margin-bottom: 1.5rem;
}

.sy-popup__content .sy-newsletter-form {
	width: 100%;
}

.sy-popup__content .sy-newsletter-form input[type="text"],
.sy-popup__content .sy-newsletter-form input[type="email"] {
	width: 100%;
	border: 1px solid #222222;
	border-radius: 0;
	padding: 0.8rem 1rem;
	font-size: 0.85rem;
	font-family: inherit;
	color: #111111;
	background: #ffffff;
	margin-bottom: 0.75rem;
	outline: none;
	transition: border-color 0.2s ease;
}

.sy-popup__content .sy-newsletter-form input::placeholder {
	color: #777777;
}

.sy-popup__content .sy-newsletter-form input:focus {
	border-color: #000000;
	box-shadow: 0 0 0 1px #000000;
}

.sy-popup__content .sy-newsletter-form button[type="submit"] {
	width: 100%;
	background: #000000;
	color: #ffffff;
	border: 1px solid #000000;
	border-radius: 0;
	padding: 1.15rem 1.5rem;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 0.25rem;
}

.sy-popup__content .sy-newsletter-form button[type="submit"]:hover {
	background: #222222;
}

.sy-popup__dismiss-link {
	margin-top: 1rem;
	background: none;
	border: none;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	color: #111111;
	transition: opacity 0.2s ease;
}

.sy-popup__dismiss-link:hover {
	opacity: 0.7;
}

.sy-popup__disclaimer {
	margin-top: 1.25rem;
	font-size: 0.72rem;
	color: #777777;
	line-height: 1.4;
}

.sy-popup__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 20;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	width: 34px;
	height: 34px;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	color: #111111;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.sy-popup__close:hover {
	background: #ffffff;
	transform: scale(1.06);
	opacity: 1;
}

.sy-popup-tab {
	position: fixed;
	left: -2.4rem;
	bottom: 6rem;
	z-index: 9999;
	transform: rotate(-90deg);
	transform-origin: left bottom;
	background: #fff;
	border: 1px solid var(--wp--preset--color--sand, #e9e5df);
	border-bottom: none;
	padding: 0.5rem 1rem;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	cursor: pointer;
}

.sy-popup-tab[hidden] {
	display: none;
}

@media (max-width: 720px) {
	.sy-popup {
		padding: 1rem 0.75rem;
		align-items: flex-start;
	}
	.sy-popup__dialog {
		grid-template-columns: 1fr;
		max-height: 92vh;
		width: 100%;
		margin: auto;
	}
	.sy-popup__media {
		min-height: 140px;
		max-height: 180px;
		height: 22vh;
	}
	.sy-popup__content {
		padding: 1.25rem 1.15rem 1.5rem;
	}
	.sy-popup__eyebrow {
		font-size: 1.15rem;
		margin-bottom: 0.5rem;
	}
	.sy-popup__title {
		font-size: 1.6rem;
		margin-bottom: 0.3rem;
	}
	.sy-popup__subtitle {
		font-size: 0.85rem;
		margin-bottom: 0.75rem;
	}
	.sy-popup__body {
		font-size: 0.78rem;
		margin-bottom: 1rem;
	}
}
