/*
 * WM Cookies in the Bloomer look: the banner is a cream card with a thick ink border in the
 * bottom left corner, the buttons in the mono face, the settings over a dimmed page.
 */

.wmcookies-banner {
	left: clamp(12px, 3vw, 32px);
	right: clamp(12px, 3vw, 32px);
	bottom: clamp(12px, 3vw, 32px);
	max-width: 460px;
	padding: 24px;
	border: var(--bl-border);
	border-radius: 0;
	background: var(--bl-cream);
	box-shadow: 8px 8px 0 var(--bl-ink);
	color: var(--bl-ink);
	font-family: var(--bl-sans);
}

.wmcookies-banner-inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wmcookies-title,
.wmcookies-panel-title {
	margin: 0 0 8px;
	color: var(--bl-ink);
	font-family: var(--bl-display);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
}

.wmcookies-panel-title {
	font-size: 30px;
}

.wmcookies-text,
.wmcookies-panel-text {
	color: var(--bl-ink);
	font-size: 15px;
	line-height: 1.6;
}

.wmcookies-text a,
.wmcookies-panel-text a,
.wmcookies-policy {
	color: var(--bl-ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--bl-coral);
	text-decoration-thickness: 3px;
}

.wmcookies-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wmcookies-button.wp-element-button {
	flex: 1 1 150px;
	min-height: 48px;
	padding: 12px 16px;
	border: var(--bl-border);
	border-radius: 0;
	background: var(--bl-ink);
	color: var(--bl-cream);
	font-family: var(--bl-mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
}

.wmcookies-button.wp-element-button:hover {
	background: var(--bl-ink-2);
	color: var(--bl-yellow);
}

.wmcookies-button--reject.wp-element-button {
	background: var(--bl-cream);
	color: var(--bl-ink);
}

.wmcookies-button--reject.wp-element-button:hover {
	background: var(--bl-yellow);
	color: var(--bl-ink);
}

/* "Cookie settings": an underlined link under the two buttons. */
.wmcookies-banner .wmcookies-button--customise.wp-element-button {
	flex: 1 1 100%;
	min-height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bl-ink);
	text-align: left;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.wmcookies-banner .wmcookies-button--customise.wp-element-button:hover {
	background: none;
	color: var(--bl-ink);
	text-decoration-color: var(--bl-coral);
}

/* Settings dialog. */
.wmcookies-panel {
	background: rgba(25, 20, 20, 0.6);
}

.wmcookies-panel-box {
	max-width: 540px;
	padding: clamp(24px, 4vw, 36px);
	border: var(--bl-border);
	border-radius: 0;
	background: var(--bl-cream);
	box-shadow: 10px 10px 0 var(--bl-ink);
	color: var(--bl-ink);
	font-family: var(--bl-sans);
}

.wmcookies-close {
	color: var(--bl-ink);
}

.wmcookies-category {
	margin-top: 0;
	padding: 18px 0;
	border-top: 2px dashed var(--bl-ink);
}

.wmcookies-category:last-of-type {
	border-bottom: 2px dashed var(--bl-ink);
}

/* A heading, so it would take the display face (one weight only): the text face instead. */
.wmcookies-category-title {
	color: var(--bl-ink);
	font-family: var(--bl-sans);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: none;
}

.wmcookies-category-description,
.wmcookies-details {
	font-size: 14px;
	line-height: 1.55;
}

.wmcookies-always {
	font-family: var(--bl-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.wmcookies-switch-input {
	accent-color: var(--bl-ink);
}

.wmcookies-switch-input:checked {
	background-color: var(--bl-ink);
}

.wmcookies-panel-buttons {
	margin-top: 28px;
}

.wmcookies-consent-id {
	font-size: 13px;
}
