/* iBreathe Age Gate Module Styles */

#ibr-age-gate-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9998;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow-y: auto;
	padding: 30px 16px;
	box-sizing: border-box;
}

/*
 * Vertical centring via auto-margins on the first/last child rather than
 * justify-content: center. This centres the stack when it fits the viewport,
 * but allows clean scrolling (no clipping, no overlap) when the content is
 * taller than the screen — e.g. logo + modal + secondary message on a phone.
 */
#ibr-age-gate-overlay > :first-child {
	margin-top: auto;
}

#ibr-age-gate-overlay > :last-child {
	margin-bottom: auto;
}

#ibr-age-gate-logo {
	max-width: 150px;
	margin-bottom: 30px;
	display: block;
	height: auto;
	z-index: 9999;
	position: relative;
}

#ibr-age-gate-modal {
	background: white;
	border-radius: 8px;
	padding: 40px;
	max-width: 600px;
	width: 90%;
	text-align: center;
	z-index: 9999;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
}

#ibr-age-gate-heading {
	font-size: 28px;
	font-weight: bold;
	margin: 0 0 20px 0;
	color: #333;
	line-height: 1.3;
}

#ibr-age-gate-text {
	font-size: 16px;
	line-height: 1.6;
	color: #666;
	margin: 0 0 30px 0;
}

.ibr-age-gate-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

.ibr-age-gate-buttons button {
	padding: 12px 30px;
	font-size: 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
}

#ibr-age-gate-yes {
	background-color: #0099cc;
	color: white;
}

#ibr-age-gate-yes:hover {
	background-color: #007aa3;
}

#ibr-age-gate-no {
	background-color: #cc0000;
	color: white;
}

#ibr-age-gate-no:hover {
	background-color: #990000;
}

/*
 * Secondary Message — generic notice box below the age gate modal.
 * Colours (background / heading / body) are injected inline from the admin
 * settings (see enqueue_frontend_assets); structural styling lives here.
 */
#ibr-age-gate-secondary {
	border-radius: 8px;
	padding: 30px 40px;
	max-width: 600px;
	width: 90%;
	text-align: center;
	margin-top: 25px;
	z-index: 9999;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
}

#ibr-age-gate-secondary-heading {
	font-size: 26px;
	font-weight: bold;
	margin: 0 0 15px 0;
	line-height: 1.3;
}

#ibr-age-gate-secondary-text {
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
	#ibr-age-gate-overlay {
		padding: 20px 16px;
	}

	#ibr-age-gate-logo {
		max-width: 120px;
		margin-bottom: 20px;
	}

	#ibr-age-gate-modal {
		padding: 30px 20px;
		width: 95%;
	}

	#ibr-age-gate-heading {
		font-size: 22px;
	}

	#ibr-age-gate-text {
		font-size: 14px;
	}

	.ibr-age-gate-buttons {
		flex-direction: column;
	}

	.ibr-age-gate-buttons button {
		width: 100%;
	}

	#ibr-age-gate-secondary {
		padding: 22px 20px;
		width: 95%;
		margin-top: 20px;
	}

	#ibr-age-gate-secondary-heading {
		font-size: 20px;
	}

	#ibr-age-gate-secondary-text {
		font-size: 14px;
	}
}
