/**
 * plugins/generic/zeusGdprConsent/styles/gdprConsent.css
 *
 * Copyright (c) 2026 Zeus Publishing
 * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
 *
 * Deliberately plain. The notice has to sit on top of three different themes
 * (default, hsmModern, Novelty) without inheriting their card or button rules,
 * so it carries its own names rather than reusing .pkp_block and friends, and
 * it leans on system colours instead of a palette that would clash with two of
 * the three.
 */

/* The plugin ships the notice hidden and lets JavaScript reveal it. Some theme
   resets re-declare display on divs, which would defeat the attribute; this
   restores the no-JavaScript guarantee. */
.zeus_gdpr_consent_notice[hidden] {
	display: none !important;
}

.zeus_gdpr_consent_notice {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	box-sizing: border-box;
	background: #ffffff;
	color: #14171a;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.14);
	font-size: 0.875rem;
	line-height: 1.5;
	/* Keeps the notice clear of the iOS home indicator. */
	padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

.zeus_gdpr_consent_notice *,
.zeus_gdpr_consent_notice *::before,
.zeus_gdpr_consent_notice *::after {
	box-sizing: inherit;
}

.zeus_gdpr_consent_inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	max-width: 1140px;
	margin: 0 auto;
}

.zeus_gdpr_consent_message {
	flex: 1 1 20rem;
	min-width: 0;
}

.zeus_gdpr_consent_title {
	margin: 0 0 0.15rem;
	font-weight: 700;
	font-size: 1em;
}

.zeus_gdpr_consent_text {
	margin: 0;
}

.zeus_gdpr_consent_actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
}

.zeus_gdpr_consent_details {
	text-decoration: underline;
	color: inherit;
	white-space: nowrap;
}

.zeus_gdpr_consent_accept {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #14171a;
	border-radius: 3px;
	background: #14171a;
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.55rem 1.25rem;
	cursor: pointer;
	white-space: nowrap;
}

.zeus_gdpr_consent_accept:hover {
	background: #333a41;
	border-color: #333a41;
}

/* Themes routinely strip focus rings from buttons; the notice is meant to be
   operable by keyboard, so it re-states its own. */
.zeus_gdpr_consent_notice a:focus,
.zeus_gdpr_consent_notice button:focus,
.zeus_gdpr_consent_notice a:focus-visible,
.zeus_gdpr_consent_notice button:focus-visible {
	outline: 3px solid #0b6ec4;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.zeus_gdpr_consent_inner {
		align-items: flex-start;
	}

	.zeus_gdpr_consent_actions {
		width: 100%;
		justify-content: flex-end;
	}
}

@media print {
	.zeus_gdpr_consent_notice {
		display: none !important;
	}
}
