/* Banner container */
.soglpdn-banner {
	position: fixed;
	z-index: 999999;
	box-sizing: border-box;
	background: var(--soglpdn-bg, #1e1e2e);
	color: var(--soglpdn-text, #fff);
	border-radius: var(--soglpdn-radius, 12px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	padding: 18px 22px;
	font-size: 14px;
	line-height: 1.5;
}

.soglpdn-banner[hidden] {
	display: none;
}

.soglpdn-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
}

.soglpdn-message {
	flex: 1 1 280px;
	min-width: 220px;
}

.soglpdn-message p {
	margin: 0 0 6px;
}

.soglpdn-message a {
	color: inherit;
	text-decoration: underline;
}

.soglpdn-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
	align-items: center;
}

/* Button styles are protected from theme overrides (!important + reset). */
#soglpdn-banner .soglpdn-btn {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	border: none !important;
	border-radius: 8px !important;
	margin: 0 !important;
	padding: 10px 20px !important;
	min-height: 40px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	font-family: inherit !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-shadow: none !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	width: auto !important;
	transition: opacity 0.15s ease !important;
}

#soglpdn-banner .soglpdn-btn:hover,
#soglpdn-banner .soglpdn-btn:focus {
	opacity: 0.88 !important;
	outline: none !important;
}

#soglpdn-banner .soglpdn-btn-accept {
	background: var(--soglpdn-btn-bg, #4f7cff) !important;
	color: var(--soglpdn-btn-text, #fff) !important;
}

#soglpdn-banner .soglpdn-btn-decline {
	background: var(--soglpdn-btn2-bg, #3a3a4a) !important;
	color: var(--soglpdn-btn2-text, #fff) !important;
}

/* "Learn more" — secondary link-button */
#soglpdn-banner .soglpdn-btn-policy {
	background: transparent !important;
	color: var(--soglpdn-text, #fff) !important;
	border: 1px solid currentColor !important;
	opacity: 0.85 !important;
}
#soglpdn-banner .soglpdn-btn-policy:hover {
	opacity: 1 !important;
}

/* Background dimming */
.soglpdn-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999998;
	display: none;
}
.soglpdn-overlay.soglpdn-show {
	display: block;
}

/* Positions */
.soglpdn-pos-bottom-bar {
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 0;
	margin: 0 auto;
}
.soglpdn-pos-top-bar {
	left: 0;
	right: 0;
	top: 0;
	border-radius: 0;
	margin: 0 auto;
}
.soglpdn-pos-bottom-left {
	left: 20px;
	bottom: 20px;
}
.soglpdn-pos-bottom-right {
	right: 20px;
	bottom: 20px;
}
.soglpdn-pos-top-left {
	left: 20px;
	top: 20px;
}
.soglpdn-pos-top-right {
	right: 20px;
	top: 20px;
}
.soglpdn-pos-center {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

/* In corners and centered, buttons stack below */
.soglpdn-pos-bottom-left .soglpdn-inner,
.soglpdn-pos-bottom-right .soglpdn-inner,
.soglpdn-pos-top-left .soglpdn-inner,
.soglpdn-pos-top-right .soglpdn-inner,
.soglpdn-pos-center .soglpdn-inner {
	flex-direction: column;
	align-items: stretch;
}
.soglpdn-pos-bottom-left .soglpdn-actions,
.soglpdn-pos-bottom-right .soglpdn-actions,
.soglpdn-pos-top-left .soglpdn-actions,
.soglpdn-pos-top-right .soglpdn-actions,
.soglpdn-pos-center .soglpdn-actions {
	justify-content: flex-end;
}

/* Mobile */
@media (max-width: 600px) {
	.soglpdn-inner {
		flex-direction: column;
		align-items: stretch;
	}
	.soglpdn-actions {
		justify-content: stretch;
	}
	.soglpdn-btn {
		flex: 1;
	}
	.soglpdn-pos-bottom-left,
	.soglpdn-pos-bottom-right {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}
	.soglpdn-pos-top-left,
	.soglpdn-pos-top-right {
		left: 10px;
		right: 10px;
		top: 10px;
	}
}
