/*
 * QWS Cookie Consent – modelled on the current Real Cookie Banner design.
 * Selectors are prefixed with ":root body" and buttons reset common theme styles, so theme CSS
 * (e.g. Hello Elementor's reset.css colouring every <button>) can't restyle the banner.
 */
:root body .qcc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background: rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	font-size: 13px;
	line-height: 1.5;
	color: var(--qcc-text, #2b2b2b);
}

html.qcc-open {
	overflow: hidden;
}

:root body .qcc-dialog {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 530px;
	max-height: calc(100vh - 24px);
	background: var(--qcc-background, #fff);
	border-radius: 3px;
	box-shadow: 0 0 13px rgba(0, 0, 0, 0.2);
	text-align: center;
	overflow: hidden;
}

:root body .qcc-dialog.qcc-individual {
	max-width: 970px;
	text-align: left;
}

:root body .qcc-header {
	position: relative;
	padding: 15px 20px;
	border-bottom: 1px solid #efefef;
}

:root body .qcc-header h2 {
	margin: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: normal;
	line-height: 1.3;
	color: var(--qcc-text, #2b2b2b);
	text-align: center;
}

:root body .qcc-back {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	padding: 4px 6px;
	border: 0;
	background: none;
	color: var(--qcc-primary, #15779b);
	font-size: 14px;
	cursor: pointer;
}

:root body .qcc-body {
	padding: 15px 20px;
	overflow-y: auto;
}

:root body .qcc-body p {
	margin: 0 0 10px;
}

:root body .qcc-description a,
:root body .qcc-footer a,
:root body .qcc-service a {
	color: inherit;
	text-decoration: underline;
}

:root body .qcc-notices p {
	font-size: 12px;
	color: var(--qcc-muted, #757575);
}

:root body .qcc-notices sup {
	font-size: 9px;
}

:root body .qcc-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 15px 0 10px;
}

:root body .qcc-individual .qcc-buttons {
	flex-direction: row;
	flex-wrap: wrap;
}

:root body .qcc-individual .qcc-buttons .qcc-btn {
	flex: 1 1 200px;
}

:root body .qcc-btn {
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 10px;
	border: 0;
	border-radius: 5px;
	box-shadow: none;
	font-family: inherit;
	font-size: 18px;
	font-weight: normal;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	white-space: normal;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s;
}

:root body .qcc-btn-primary {
	background: var(--qcc-primary, #15779b);
	color: #fff;
}

:root body .qcc-btn-primary:hover,
:root body .qcc-btn-primary:focus-visible {
	background: var(--qcc-primary-hover, #11607d);
	color: #fff;
}

:root body .qcc-btn-secondary {
	background: var(--qcc-secondary, #efefef);
	color: var(--qcc-secondary-text, #0a0a0a);
}

:root body .qcc-btn-secondary:hover,
:root body .qcc-btn-secondary:focus-visible {
	background: #e8e8e8;
	color: #000;
}

:root body .qcc-link {
	display: inline-block;
	min-height: 0;
	margin: 0;
	padding: 5px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-weight: normal;
	letter-spacing: normal;
	text-transform: none;
	white-space: normal;
	color: var(--qcc-primary, #15779b);
	font-family: inherit;
	font-size: 16px;
	text-decoration: underline !important; /* Woodmart removes it from all buttons with !important. */
	cursor: pointer;
}

:root body .qcc-link:hover,
:root body .qcc-link:focus {
	background: none;
	color: var(--qcc-primary-hover, #11607d);
}

:root body .qcc-link.qcc-small {
	padding: 0;
	font-size: 12px;
}

:root body .qcc-group {
	margin: 10px 0;
	padding: 12px 15px;
	background: #f4f4f4;
	border-radius: 5px;
}

:root body .qcc-group > p {
	margin: 5px 0;
	font-size: 14px;
}

:root body .qcc-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

:root body .qcc-group-title {
	font-size: 16px;
}

:root body .qcc-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--qcc-primary, #15779b);
}

:root body .qcc-services {
	margin-top: 8px;
}

:root body .qcc-service {
	margin-top: 8px;
	padding: 10px;
	background: #fff;
	border: 1px solid #efefef;
	border-radius: 3px;
}

:root body .qcc-service .qcc-check {
	font-weight: bold;
}

:root body .qcc-service dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 2px 12px;
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--qcc-muted, #757575);
}

:root body .qcc-service dt {
	font-weight: bold;
}

:root body .qcc-service dd {
	margin: 0;
	word-break: break-word;
}

:root body .qcc-consent-id {
	font-size: 11px;
	color: var(--qcc-muted, #757575);
}

:root body .qcc-footer {
	padding: 10px 20px;
	background: #fcfcfc;
	border-top: 1px solid #efefef;
	font-size: 14px;
	color: #757474;
	text-align: center;
}

:root body .qcc-footer a:hover {
	color: #2b2b2b;
}

/* Re-open button */
:root body .qcc-floating {
	position: fixed;
	bottom: 20px;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--qcc-primary, #15779b);
	color: #fff;
	box-shadow: 0 2px 5px 1px rgba(16, 91, 119, 0.4);
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.15s, transform 0.15s;
}

:root body .qcc-floating:hover,
:root body .qcc-floating:focus-visible {
	opacity: 1;
	transform: scale(1.05);
}

:root body .qcc-floating-left {
	left: 20px;
}

:root body .qcc-floating-right {
	right: 20px;
}

html.qcc-open .qcc-floating {
	display: none;
}

/* Content blocker placeholder */
:root body .qcc-blocker {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 20px;
	background: #f4f4f4;
	border: 1px solid #e2e2e2;
	border-radius: 5px;
	text-align: center;
}

:root body .qcc-blocker-inner {
	max-width: 480px;
}

:root body .qcc-blocker-headline {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: bold;
}

:root body .qcc-blocker .qcc-btn {
	font-size: 15px;
}

:root body .qcc-blocker-info {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--qcc-muted, #757575);
}

@media (max-width: 600px) {
	:root body .qcc-overlay {
		align-items: flex-end;
		padding: 0;
	}

	:root body .qcc-dialog {
		max-height: 85vh;
		border-radius: 8px 8px 0 0;
	}

	:root body .qcc-btn {
		font-size: 16px;
	}

	/* Keep both choices visible without scrolling. */
	:root body .qcc-buttons {
		position: sticky;
		bottom: -15px;
		z-index: 1;
		margin: 10px -20px 0;
		padding: 10px 20px 15px;
		background: var(--qcc-background, #fff);
		box-shadow: 0 -6px 10px rgba(0, 0, 0, 0.06);
	}

	:root body .qcc-individual .qcc-buttons {
		flex-direction: column;
	}

	:root body .qcc-individual .qcc-buttons .qcc-btn {
		flex: none;
	}

	:root body .qcc-service dl {
		grid-template-columns: 1fr;
	}
}
