/* =========================================
   CSS Custom Properties (set via inline PHP)
   ========================================= */

:root {
	--ps-sm-bg: #0d385a;
	--ps-sm-font: #ffffff;
	--ps-sm-btn: #0f89c3;
	--ps-sm-btn-text: #ffffff;
	--ps-sm-radius: 3px;
	--ps-sm-z: 99999999;
}

/* =========================================
   Banner Base
   ========================================= */

#ps-sm-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: var(--ps-sm-z);
	background: #0d385a;
	background: linear-gradient(180deg, #0e3b5e 0%, #08263e 100%);
	color: var(--ps-sm-font);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13.5px;
	line-height: 1.5;
	border-top: 3px solid #0f89c3;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

#ps-sm-banner *,
#ps-sm-banner *::before,
#ps-sm-banner *::after {
	box-sizing: border-box;
}

.ps-sm-banner-inner {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	position: relative;
}

/* =========================================
   Message Area
   ========================================= */

.ps-sm-banner-upper {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
}

.ps-sm-banner-message {
	margin: 0;
	color: #e6eef5;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

/* =========================================
   Actions / Buttons
   ========================================= */

.ps-sm-banner-lower {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-shrink: 0;
}

.ps-sm-banner-btn {
	display: inline-block;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: bold;
	line-height: 1;
	padding: 9px 18px;
	border-radius: var(--ps-sm-radius);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	outline: none;
}

.ps-sm-banner-btn-accept {
	background-color: var(--ps-sm-btn, #0f89c3);
	color: var(--ps-sm-btn-text, #ffffff);
	border: 1px solid var(--ps-sm-btn, #0f89c3);
}

.ps-sm-banner-btn-accept:hover,
.ps-sm-banner-btn-accept:focus {
	background-color: #003451;
	border-color: #ffffff;
	color: #ffffff;
}

.ps-sm-banner-btn-reject {
	background-color: transparent;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.ps-sm-banner-btn-reject:hover,
.ps-sm-banner-btn-reject:focus {
	background-color: rgba(255, 255, 255, 0.15);
	border-color: #ffffff;
	color: #ffffff;
}

/* =========================================
   Close Button
   ========================================= */

.ps-sm-banner-close {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #a3c2db !important;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 22px !important;
	font-weight: 300;
	line-height: 1 !important;
	width: 30px;
	height: 30px;
	min-width: 30px;
	padding: 0 !important;
	margin: 0 !important;
	margin-left: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 50%;
	transition: color 0.2s ease, background-color 0.2s ease;
	outline: none;
	position: static;
}

.ps-sm-banner-close:hover,
.ps-sm-banner-close:focus {
	color: #ffffff !important;
	background-color: rgba(255, 255, 255, 0.15) !important;
}

/* =========================================
   Mobile / Tablet Responsive
   ========================================= */

@media (max-width: 768px) {
	.ps-sm-banner-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 14px 16px;
		padding-right: 40px;
	}

	.ps-sm-banner-close {
		position: absolute !important;
		top: 10px !important;
		right: 10px !important;
		margin: 0 !important;
	}

	.ps-sm-banner-lower {
		width: 100%;
		justify-content: flex-start;
		gap: 8px;
	}

	.ps-sm-banner-btn {
		padding: 8px 14px;
		font-size: 12px;
	}
}

/* =============================================================================
		 WP Admin Styles
		 ============================================================================= */

.ps-sm-admin-toggle-row {
	margin-bottom: 0;
}

#ps-sm-banner-setup {
	margin-top: 16px;
}

.ps-sm-admin-box {
	background: #fff;
	border-left: 5px solid #ccc;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	margin-bottom: 20px;
	padding: 16px 20px 4px;
}

.ps-sm-admin-box h2 {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	padding: 0;
}

.ps-sm-admin-box .form-table {
	margin-top: 0;
}

.ps-sm-admin-box-info {
	border-left-color: #72aee6;
}

.ps-sm-admin-box-ga {
	border-left-color: #4285f4;
}

.ps-sm-admin-box-gads {
	border-left-color: #34a853;
}

.ps-sm-admin-box-fb {
	border-left-color: #1877f2;
}

.ps-sm-admin-box-bing {
	border-left-color: #ffb900;
}

.ps-sm-admin-box-chat {
	border-left-color: #8b5cf6;
}

.ps-sm-admin-box-misc {
	border-left-color: #e0440e;
}

.ps-sm-admin-box-testing {
	border-left-color: #f0b849;
}

.ps-sm-admin-box-testing #ps-sm-clear-consent-status {
	color: #3c763d;
	font-style: italic;
	margin-left: 10px;
}

.ps-sm-script-count {
	background: #f0f6fc;
	border: 1px solid #72aee6;
	border-radius: 3px;
	font-size: 13px;
	margin-bottom: 20px;
	padding: 10px 14px;
}

.ps-sm-form-table-indented th.scope {
	padding-left: 0;
}

.ps-sm-form-table-indented td {
	padding-left: 32px;
}

.ps-sm-form-table-indented th {
	padding-left: 32px;
	color: #666;
}

#ps-sm-more-services {
	margin-top: 16px;
}