/**
 * Legal Consent System — cookie banner + T&C modal
 * @package Dr_Psych_Theme
 */

/* The author display rules below would otherwise override the UA [hidden]
   display:none, so the elements would never hide. Force hidden to win. */
.dr-psych-cookie-banner[hidden],
.dr-psych-consent-overlay[hidden] { display: none !important; }

/* ───────── Cookie banner (bottom bar) ───────── */
.dr-psych-cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	padding: 0.9rem 1.25rem;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.dr-psych-cookie-text {
	margin: 0;
	font-size: 0.875rem;
	color: #334155;
	line-height: 1.55;
	max-width: 60rem;
}
.dr-psych-cookie-text a {
	color: #436278;
	text-decoration: underline;
	font-weight: 600;
}
.dr-psych-cookie-btn {
	flex-shrink: 0;
	background: #436278;
	color: #ffffff;
	border: none;
	border-radius: 9999px;
	padding: 0.6rem 1.6rem;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.dr-psych-cookie-btn:hover,
.dr-psych-cookie-btn:focus { background: #376944; color: #fff; }
.dr-psych-cookie-btn:active { transform: scale(0.97); }

/* ───────── T&C consent modal ───────── */
.dr-psych-consent-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000; /* above booking modal (z-index 50) */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.dr-psych-consent-box {
	background: #ffffff;
	border-radius: 16px;
	max-width: 30rem;
	width: 100%;
	padding: 2rem 1.9rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	text-align: center;
	animation: drpsConsentIn 0.2s ease-out;
}
@keyframes drpsConsentIn {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.dr-psych-consent-icon {
	font-size: 1.9rem;
	line-height: 1;
	margin-bottom: 0.6rem;
}
.dr-psych-consent-title {
	font-family: 'Noto Serif', serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: #436278;
	margin: 0 0 0.75rem;
}
.dr-psych-consent-lead {
	font-size: 0.98rem;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.55;
	margin: 0 0 0.75rem;
}
.dr-psych-consent-body {
	font-size: 0.85rem;
	color: #64748b;
	line-height: 1.65;
	margin: 0 0 1.5rem;
}
.dr-psych-consent-body a {
	color: #436278;
	text-decoration: underline;
	font-weight: 600;
}
.dr-psych-consent-accept {
	display: inline-block;
	width: 100%;
	background: #436278;
	color: #ffffff;
	border: none;
	border-radius: 9999px;
	padding: 0.85rem 1.6rem;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.dr-psych-consent-accept:hover,
.dr-psych-consent-accept:focus { background: #376944; color: #fff; }
.dr-psych-consent-accept:active { transform: scale(0.98); }
.dr-psych-consent-accept:disabled { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 480px) {
	.dr-psych-cookie-banner { flex-direction: column; gap: 0.75rem; text-align: center; }
	.dr-psych-cookie-btn { width: 100%; }
	.dr-psych-consent-box { padding: 1.6rem 1.3rem; }
}
