/* SugarYums Print Pass — modal styling, matched to the site's pink accent. */

.syp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 40, 34, 36, 0.55 );
	-webkit-backdrop-filter: blur( 2px );
	backdrop-filter: blur( 2px );
	animation: syp-fade 0.18s ease-out;
}

@keyframes syp-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/*
 * Standalone gate page, shown in the tab the print button opens. No theme is
 * loaded here, so this carries its own page-level styling.
 */
body.syp-gate-page {
	margin: 0;
	padding: 0;
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.syp-gate-wrap {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 100vh;
	padding: 40px 18px;
	box-sizing: border-box;
}

.syp-gate-page .syp-box {
	animation: none;
	box-shadow: none;
	border: 0;
}

@media ( min-width: 600px ) {
	.syp-gate-wrap {
		align-items: center;
		padding: 24px;
	}
}

/*
 * The theme styles headings and buttons site-wide (uppercase, wide tracking)
 * and that lands on the modal too. Reset inside the box so the gate looks the
 * same no matter what the surrounding site does.
 */
.syp-overlay .syp-box,
.syp-overlay .syp-box * {
	text-transform: none;
	letter-spacing: normal;
	font-style: normal;
}

.syp-box {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	max-height: calc( 100vh - 40px );
	overflow-y: auto;
	padding: 34px 30px 26px;
	text-align: center;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba( 40, 34, 36, 0.28 );
	font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
	color: #302a2c;
	animation: syp-pop 0.2s ease-out;
}

@keyframes syp-pop {
	from { transform: translateY( 8px ) scale( 0.98 ); opacity: 0; }
	to { transform: none; opacity: 1; }
}

.syp-close {
	position: absolute;
	top: 8px;
	right: 12px;
	width: 34px;
	height: 34px;
	padding: 0;
	font-size: 26px;
	line-height: 1;
	color: #b6adb0;
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.syp-close:hover {
	color: #302a2c;
	background: #f6f2f3;
}

.syp-lock {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin: 0 auto 16px;
	color: #ff6ab4;
	background: #fff0f7;
	border-radius: 50%;
}

.syp-logo {
	display: block;
	width: auto;
	max-width: 230px;
	max-height: 76px;
	margin: 0 auto 22px;
	object-fit: contain;
}

.syp-title {
	margin: 0 0 8px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.28;
	color: #302a2c;
}

.syp-sub {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
	color: #6d6366;
}

.syp-form {
	margin: 0;
	text-align: left;
}

/* Consent tickbox, sat above the email field as on Grow's gate. */
.syp-tick-row {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	margin: 0 0 18px;
	text-align: left;
}

.syp-tick {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	margin: 1px 0 0;
	accent-color: #ff6ab4;
	cursor: pointer;
}

.syp-tick-label {
	font-size: 13px;
	line-height: 1.5;
	color: #6d6366;
	cursor: pointer;
}

.syp-tick-label a {
	color: #6d6366;
	text-decoration: underline;
}

.syp-tick-label a:hover {
	color: #ff6ab4;
}

/* Notched label sitting on the input border, mirroring Grow's field. */
.syp-field {
	position: relative;
	margin-top: 4px;
}

.syp-label {
	position: absolute;
	top: -7px;
	left: 11px;
	z-index: 1;
	padding: 0 5px;
	font-size: 12px;
	line-height: 1;
	background: #fff;
	color: #8a8083;
}

.syp-req {
	color: #c92a63;
}

.syp-input {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	padding: 0 14px;
	font-size: 16px; /* 16px avoids the iOS zoom-on-focus jump */
	color: #302a2c;
	background: #fff;
	border: 1.5px solid #e4dcde;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.syp-input::placeholder {
	color: #b6adb0;
}

.syp-input:focus {
	border-color: #ff6ab4;
	box-shadow: 0 0 0 3px rgba( 255, 106, 180, 0.18 );
}

.syp-field:focus-within .syp-label {
	color: #ff6ab4;
}

/* Honeypot — hidden from people, visible to naive bots. */
.syp-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
}

.syp-error {
	margin: 9px 0 0;
	font-size: 13.5px;
	color: #c92a63;
}

.syp-submit {
	display: block;
	width: 100%;
	height: 50px;
	margin-top: 16px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: #ff6ab4;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.syp-submit:hover:not( :disabled ) {
	background: #f2559f;
}

.syp-submit:active:not( :disabled ) {
	transform: translateY( 1px );
}

.syp-submit:disabled {
	cursor: default;
	opacity: 0.72;
}

.syp-fine {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #988f92;
}

.syp-skip {
	margin-top: 12px;
	padding: 6px 4px;
	font-size: 13.5px;
	font-family: inherit;
	color: #988f92;
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

.syp-skip:hover {
	color: #302a2c;
}

@media ( max-width: 480px ) {
	.syp-box {
		padding: 30px 22px 22px;
	}

	.syp-title {
		font-size: 19px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.syp-overlay,
	.syp-box {
		animation: none;
	}
}
