/* Blogsy Child — cookie consent banner.
 * Uses the theme's own CSS variables (--pt-*) so it matches whatever
 * color scheme is active in the Customizer, with safe fallbacks.
 */

/* Safety net: without this, `.blogsy-consent__categories { display: flex }`
 * below has equal specificity to the browser's default `[hidden] { display:
 * none }` rule and — because it's an author stylesheet loaded after the UA
 * one — wins the cascade, making the "Customize" checkboxes and "Save"
 * button visible by default instead of only after the Customize click.
 * This one rule keeps every [hidden] element inside the banner truly
 * hidden regardless of what display value its own class sets. */
.blogsy-consent [hidden] {
	display: none !important;
}

.blogsy-consent {
	position: fixed;
	z-index: 999999;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--nc-bg-panel, #fff);
	color: var( --pt-body-color, #1a1a1a );
	box-shadow: 0 -2px 16px rgba( 0, 0, 0, 0.12 );
	font-size: 14px;
	line-height: 1.5;
}

.blogsy-consent--bottom-left,
.blogsy-consent--bottom-right {
	left: 16px;
	right: auto;
	bottom: 16px;
	max-width: 380px;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba( 0, 0, 0, 0.18 );
}

.blogsy-consent--bottom-right {
	left: auto;
	right: 16px;
}

.blogsy-consent__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.blogsy-consent--bottom-left .blogsy-consent__inner,
.blogsy-consent--bottom-right .blogsy-consent__inner {
	flex-direction: column;
	align-items: flex-start;
}

.blogsy-consent__text {
	margin: 0;
	flex: 1 1 320px;
}

.blogsy-consent__text a {
	color: var(--nc-accent, #FF6633);
	text-decoration: underline;
}

.blogsy-consent__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	flex-basis: 100%;
	margin: 4px 0;
}

.blogsy-consent__categories label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
}

.blogsy-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 0 0 auto;
}

.blogsy-consent__btn {
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	background: transparent;
	color: inherit;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.blogsy-consent__btn:hover {
	background: rgba( 0, 0, 0, 0.05 );
}

.blogsy-consent__btn:active {
	transform: scale( 0.97 );
}

.blogsy-consent__btn--accept,
.blogsy-consent__btn--save {
	background: var(--nc-accent, #FF6633);
	border-color: var(--nc-accent, #FF6633);
	color: #fff;
}

.blogsy-consent__btn--accept:hover,
.blogsy-consent__btn--save:hover {
	filter: brightness( 0.92 );
}

.blogsy-consent-reopen {
	position: fixed;
	z-index: 999998;
	left: 16px;
	bottom: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--nc-bg-panel, #fff);
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.2 );
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.blogsy-consent-settings-link {
	background: none;
	border: none;
	padding: 0;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

@media ( max-width: 600px ) {
	.blogsy-consent__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.blogsy-consent__actions {
		width: 100%;
	}

	.blogsy-consent__btn {
		flex: 1 1 auto;
	}
}
