/* Cookie Consent BG — frontend styles
   All colors/sizes come from inline CSS custom properties set per-site
   in wp-admin (Design tab), so this file only defines structure/layout. */

/* Theme defense: page themes (e.g. WoodMart) apply global button/typography
   resets — text-transform, letter-spacing, box-sizing — to every <button>
   and box-model element on the page. Everything below is !important to make
   sure our own styles win regardless of theme CSS specificity/load order. */

.ccbg-wrapper {
	display: block !important;
	position: fixed !important;
	inset: auto 0 0 0 !important;
	z-index: 999999 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
	font-size: var( --ccbg-fontsize, 15px ) !important;
	line-height: 1.5 !important;
	color: var( --ccbg-text, #1f2933 ) !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}
.ccbg-wrapper *,
.ccbg-wrapper *::before,
.ccbg-wrapper *::after {
	box-sizing: border-box;
}

.ccbg-wrapper[hidden] {
	display: none !important;
}

.ccbg-overlay {
	display: none;
	position: fixed !important;
	inset: 0 !important;
	background: rgba( 0, 0, 0, 0.45 );
}

.ccbg-banner {
	box-sizing: border-box;
	background: var( --ccbg-bg, #fff );
	border: 1px solid var( --ccbg-border, #e2e4e8 );
	border-radius: var( --ccbg-radius, 10px );
	box-shadow: 0 6px 24px rgba( 0, 0, 0, 0.12 );
	padding: 20px 24px;
	margin: 16px;
}

/* Layout: full-width bottom bar */
.ccbg-layout-bar-bottom .ccbg-banner {
	max-width: none;
	margin: 0;
	border-radius: 0;
	border-width: 1px 0 0 0;
}

/* Layout: floating card, bottom-left / bottom-right */
.ccbg-layout-box-left,
.ccbg-layout-box-right {
	inset: auto 0 0 0;
}
.ccbg-layout-box-left .ccbg-banner {
	max-width: var( --ccbg-maxwidth, 720px );
	margin: 16px;
}
.ccbg-layout-box-right {
	display: flex;
	justify-content: flex-end;
}
.ccbg-layout-box-right .ccbg-banner {
	max-width: var( --ccbg-maxwidth, 720px );
	margin: 16px;
}

/* Layout: centered modal with dimmed overlay */
.ccbg-layout-center-modal {
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ccbg-layout-center-modal .ccbg-overlay {
	display: block;
}
.ccbg-layout-center-modal .ccbg-banner {
	position: relative;
	max-width: var( --ccbg-maxwidth, 720px );
	width: calc( 100% - 32px );
	margin: 0;
	max-height: 85vh;
	overflow-y: auto;
}

/* Page builders (Oxygen 6 in particular) apply global typography/button
   design-system styles to every heading and <button> site-wide. Without
   !important here, the admin's own color/size settings on this tab would be
   silently overridden by whatever global heading/button style the builder
   defines, regardless of what the site owner configured in wp-admin. */

.ccbg-title {
	all: unset !important;
	display: block !important;
	margin: 0 0 8px !important;
	font-family: inherit !important;
	font-size: 1.15em !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.ccbg-text {
	margin: 0 0 10px !important;
	font-size: 1em !important;
	font-weight: 400 !important;
	color: inherit !important;
}

.ccbg-links {
	display: inline !important;
	margin-left: 4px !important;
	font-size: 1em !important;
}

.ccbg-link-sep {
	color: inherit !important;
	opacity: 0.5 !important;
}

.ccbg-link,
.ccbg-links a {
	color: var( --ccbg-link, #1f8a4c ) !important;
	text-decoration: underline !important;
	font-weight: 400 !important;
	text-transform: none !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	white-space: nowrap !important;
}

.ccbg-actions {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	justify-content: flex-end !important;
}

.ccbg-btn {
	all: unset !important;
	box-sizing: border-box !important;
	display: inline-block !important;
	cursor: pointer !important;
	border: 1px solid transparent !important;
	border-radius: calc( var( --ccbg-radius, 10px ) * 0.6 ) !important;
	padding: 10px 18px !important;
	font-family: inherit !important;
	font-size: 0.95em !important;
	font-weight: 600 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1.2 !important;
	text-align: center !important;
	text-decoration: none !important;
}

.ccbg-btn-accept {
	background: var( --ccbg-accept-bg, #1f8a4c ) !important;
	color: var( --ccbg-accept-txt, #fff ) !important;
}

.ccbg-btn-reject,
.ccbg-btn-save {
	background: var( --ccbg-reject-bg, #efefef ) !important;
	color: var( --ccbg-reject-txt, #1f2933 ) !important;
}

.ccbg-btn-link {
	text-decoration: underline !important;
	padding: 10px 4px !important;
	color: var( --ccbg-text, #1f2933 ) !important;
	background: none !important;
	border: none !important;
}

.ccbg-panel[hidden],
.ccbg-banner-main[hidden] {
	display: none !important;
}

.ccbg-panel-title {
	all: unset !important;
	display: block !important;
	margin: 0 0 12px !important;
	font-family: inherit !important;
	font-size: 1.1em !important;
	font-weight: 600 !important;
	color: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.ccbg-category {
	border-top: 1px solid var( --ccbg-border, #e2e4e8 ) !important;
	padding: 12px 0 !important;
}
.ccbg-category:first-of-type {
	border-top: none !important;
}
.ccbg-category label {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	font-weight: 400 !important;
}
.ccbg-category input[type='checkbox'] {
	all: revert !important;
	width: 18px !important;
	height: 18px !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
}
.ccbg-category p {
	margin: 6px 0 0 26px !important;
	font-size: 0.88em !important;
	opacity: 0.85 !important;
}

.ccbg-reopen {
	box-sizing: border-box !important;
	position: fixed !important;
	left: 0 !important;
	bottom: 24px !important;
	top: auto !important;
	right: auto !important;
	z-index: 999998 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	height: 42px !important;
	width: auto !important;
	max-width: 42px !important;
	min-width: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 12px !important;
	border: none !important;
	border-radius: 0 21px 21px 0 !important;
	background: var( --ccbg-accept-bg, #1f8a4c ) !important;
	color: var( --ccbg-accept-txt, #fff ) !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1 !important;
	cursor: pointer !important;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.2 ) !important;
	transition: max-width 0.25s ease !important;
}
.ccbg-reopen:hover,
.ccbg-reopen:focus-visible {
	max-width: 320px !important;
}
.ccbg-reopen-icon {
	flex: 0 0 auto;
	line-height: 1;
}
.ccbg-reopen-label {
	flex: 0 0 auto;
	margin-left: 10px;
	padding-right: 2px;
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1;
	white-space: nowrap;
}
.ccbg-reopen[hidden] {
	display: none !important;
}

.ccbg-inline-reopen {
	cursor: pointer !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	text-decoration: underline !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	color: var( --ccbg-link, #1f8a4c ) !important;
	font: inherit !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 1px, 1px, 1px, 1px );
}

/* Admin preview: render inline instead of fixed/hidden. Must win against the
   !important rules above, since .ccbg-wrapper and .ccbg-is-preview are
   classes on the same element in the settings-page preview markup. */
.ccbg-is-preview {
	position: relative !important;
	inset: auto !important;
	margin-top: 10px !important;
	max-width: 760px !important;
}
.ccbg-is-preview .ccbg-overlay {
	display: none !important;
}

@media ( max-width: 600px ) {
	.ccbg-banner {
		padding: 16px;
		margin: 10px;
	}
	/* Base .ccbg-actions/.ccbg-btn rules above are !important, so the
	   overrides here must be too — otherwise they're silently ignored and
	   the buttons fall back to wrapping unpredictably instead of a clean
	   full-width stack (this happened once, see .ccbg-is-preview note). */
	.ccbg-actions {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		gap: 8px !important;
	}
	.ccbg-actions .ccbg-btn {
		width: 100% !important;
		text-align: center !important;
	}
}
