/* ── Citypet Consent: modal + iframe gating ─────────────────── */

/* Prevent body scroll when modal is open */
.citypet-consent-modal-open {
	overflow: hidden;
}

/* Modal: full-screen overlay with centered panel */
.citypet-consent-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	font-family: Comfortaa, 'Trebuchet MS', sans-serif;
	font-size: 0.95rem;
	line-height: 1.55;
}

.citypet-consent-modal-panel {
	background: #1e2330;
	color: #fff;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 2rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.citypet-consent-modal-title {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
}

.citypet-consent-modal-body p {
	margin: 0 0 0.85rem;
	color: rgba(255, 255, 255, 0.92);
}
.citypet-consent-modal-body p:last-child {
	margin-bottom: 0;
}

.citypet-consent-modal-link {
	margin-top: 0.5rem !important;
}
.citypet-consent-modal-link a {
	color: #f5a623;
	text-decoration: underline;
}
.citypet-consent-modal-link a:hover {
	text-decoration: none;
}

.citypet-consent-modal-actions {
	margin-top: 1.5rem;
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
	flex-wrap: wrap;
}

/* Buttons inside the modal: light-on-dark */
.citypet-consent-modal-actions .citypet-consent-btn {
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.65rem 1.4rem;
	border: 1px solid #fff;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease;
}
.citypet-consent-modal-actions .citypet-consent-btn:hover,
.citypet-consent-modal-actions .citypet-consent-btn:focus {
	background: #fff;
	color: #1e2330;
	outline: none;
}
.citypet-consent-modal-actions .citypet-consent-btn.citypet-consent-accept {
	background: #f5a623;
	border-color: #f5a623;
	color: #1e2330;
}
.citypet-consent-modal-actions .citypet-consent-btn.citypet-consent-accept:hover,
.citypet-consent-modal-actions .citypet-consent-btn.citypet-consent-accept:focus {
	background: #fff;
	border-color: #fff;
	color: #1e2330;
}

/* Inline buttons (shortcode [citypet_consent_inline]): dark-on-light */
.citypet-consent-inline {
	margin: 1.5rem 0;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.citypet-consent-inline .citypet-consent-btn {
	font-family: Comfortaa, 'Trebuchet MS', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.65rem 1.4rem;
	border: 1px solid #1e2330;
	background: transparent;
	color: #1e2330;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease;
}
.citypet-consent-inline .citypet-consent-btn:hover,
.citypet-consent-inline .citypet-consent-btn:focus {
	background: #1e2330;
	color: #fff;
	outline: none;
}
.citypet-consent-inline .citypet-consent-btn.citypet-consent-inline-accept {
	background: #f5a623;
	border-color: #f5a623;
	color: #1e2330;
}
.citypet-consent-inline .citypet-consent-btn.citypet-consent-inline-accept:hover,
.citypet-consent-inline .citypet-consent-btn.citypet-consent-inline-accept:focus {
	background: #1e2330;
	border-color: #1e2330;
	color: #fff;
}

/* Iframe wrapper + placeholder when consent not granted */
.citypet-consent-wrapper {
	position: relative;
}

.citypet-consent-placeholder {
	background: #f5f0e8;
	border: 1px dashed #ccc;
	padding: 2.5rem 1.5rem;
	text-align: center;
	font-family: Comfortaa, 'Trebuchet MS', sans-serif;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.citypet-placeholder-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1e2330;
}
.citypet-placeholder-text {
	margin: 0 0 1.5rem;
	font-size: 0.9rem;
	color: #666;
	max-width: 400px;
}

.citypet-load-iframe {
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.65rem 1.4rem;
	border: 1px solid #1e2330;
	background: #1e2330;
	color: #fff;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease;
}
.citypet-load-iframe:hover,
.citypet-load-iframe:focus {
	background: #fff;
	color: #1e2330;
	outline: none;
}

/* Mobile */
@media (max-width: 640px) {
	.citypet-consent-modal-panel {
		padding: 1.5rem;
		max-height: 95vh;
	}
	.citypet-consent-modal-title {
		font-size: 1.25rem;
	}
	.citypet-consent-modal-actions {
		flex-direction: column;
	}
	.citypet-consent-modal-actions .citypet-consent-btn {
		width: 100%;
	}
}
