/*
 * Cookie consent banner and footer trigger styles.
 * Fixed to the bottom of the viewport so content never shifts on load.
 */

.opeoluwa-consent[hidden],
.opeoluwa-consent__choices[hidden] {
	display: none;
}

.opeoluwa-consent {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	z-index: 9999;
	max-width: 48rem;
	margin-inline: auto;
	padding: 1.125rem 1.25rem;
	color: var(--wp--preset--color--contrast, #16141a);
	background-color: var(--wp--preset--color--base, #ffffff);
	border: 1px solid var(--wp--preset--color--muted, #4f4b59);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(22, 20, 26, 0.16);
}

.opeoluwa-consent__inner {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.opeoluwa-consent__title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--contrast, #16141a);
}

.opeoluwa-consent__text {
	margin: 0;
	font-size: 0.925rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted, #4f4b59);
}

.opeoluwa-consent__text a {
	color: var(--wp--preset--color--primary, #330099);
	text-decoration: underline;
}

.opeoluwa-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
}

/* Accept all and Reject all share identical size, weight and contrast so rejecting is as easy as accepting. */
.opeoluwa-consent__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.5rem 1.125rem;
	font-family: inherit;
	font-size: 0.925rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	border-radius: 4px;
}

.opeoluwa-consent__btn--equal {
	color: var(--wp--preset--color--base, #ffffff);
	background-color: var(--wp--preset--color--primary, #330099);
	border: 1.5px solid var(--wp--preset--color--primary, #330099);
}

.opeoluwa-consent__btn--equal:hover {
	background-color: var(--wp--preset--color--accent, #0066d6);
	border-color: var(--wp--preset--color--accent, #0066d6);
}

.opeoluwa-consent__btn--secondary {
	color: var(--wp--preset--color--primary, #330099);
	background-color: transparent;
	border: 1.5px solid var(--wp--preset--color--primary, #330099);
}

.opeoluwa-consent__btn--secondary:hover {
	color: var(--wp--preset--color--base, #ffffff);
	background-color: var(--wp--preset--color--primary, #330099);
}

.opeoluwa-consent__choices {
	padding-top: 0.875rem;
	border-top: 1px solid var(--wp--preset--color--surface, #f1f7fe);
}

.opeoluwa-consent__categories {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.opeoluwa-consent__option {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.925rem;
	line-height: 1.45;
	cursor: pointer;
}

.opeoluwa-consent__option input[type="checkbox"] {
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.15rem;
	flex-shrink: 0;
	accent-color: var(--wp--preset--color--primary, #330099);
}

.opeoluwa-consent__option-desc {
	display: block;
	color: var(--wp--preset--color--muted, #4f4b59);
}

.opeoluwa-consent__save-row {
	margin-top: 0.875rem;
}

/* Footer Cookie settings button styled identically to neighbouring footer links. */
.opeoluwa-consent-footer-btn {
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	cursor: pointer;
	background: none;
	border: 0;
}

.opeoluwa-footer .opeoluwa-consent-footer-btn {
	color: rgba(255, 255, 255, 0.85);
}

.opeoluwa-footer .opeoluwa-consent-footer-btn:hover {
	color: var(--wp--preset--color--brand-sky, #87d1f6);
}

.opeoluwa-footer .opeoluwa-consent-footer-btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-sky, #87d1f6);
	outline-offset: 2px;
}

.opeoluwa-consent-fallback {
	padding: 0.75rem 1rem 1.25rem;
	text-align: center;
	font-size: 0.875rem;
}

.opeoluwa-consent-footer-btn--standalone {
	color: var(--wp--preset--color--muted, #4f4b59);
	text-decoration: underline;
}
