/* CookieFrame admin styles */

/* Screen title — hidden but present so WP injects admin notices above our layout */
.cookieframe-screen-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* ---- Layout ---- */
.cookieframe-wrap {
	max-width: 1200px;
}

.cookieframe-layout {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.cookieframe-main {
	flex: 1;
	min-width: 0;
}

.cookieframe-sidebar {
	width: 300px;
	flex-shrink: 0;
}

@media (max-width: 1024px) {
	.cookieframe-layout {
		flex-direction: column;
	}
	.cookieframe-sidebar {
		width: 100%;
	}
}

/* ---- Header ---- */
.cookieframe-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	padding: 16px 24px;
	margin: 20px 0;
}

.cookieframe-header__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cookieframe-header__logo {
	flex-shrink: 0;
}

.cookieframe-header__name {
	font-size: 20px;
	font-weight: 700;
	color: #1d2327;
}

.cookieframe-header__version {
	font-size: 12px;
	color: #787c82;
	background: #f0f0f1;
	padding: 2px 8px;
	border-radius: 10px;
}

.cookieframe-header__links {
	display: flex;
	gap: 16px;
}

.cookieframe-header__links a {
	text-decoration: none;
	color: #50575e;
	font-size: 13px;
}

.cookieframe-header__links a:hover {
	color: #2271b1;
}

/* ---- Card ---- */
.cookieframe-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 20px;
}

.cookieframe-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.cookieframe-card__header h2 {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
}

/* ---- Badge ---- */
.cookieframe-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.cookieframe-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.cookieframe-badge--success {
	background: #edfcf2;
	color: #0a7227;
}

.cookieframe-badge--success::before {
	background: #00a32a;
}

.cookieframe-badge--warning {
	background: #fef6e7;
	color: #996800;
}

.cookieframe-badge--warning::before {
	background: #dba617;
}

.cookieframe-badge--muted {
	background: #f0f0f1;
	color: #787c82;
}

.cookieframe-badge--muted::before {
	background: #a7aaad;
}

/* ---- Notice ---- */
.cookieframe-notice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	border-radius: 6px;
	margin-bottom: 16px;
	border-left: 4px solid transparent;
}

.cookieframe-notice--warning {
	background: #fef6e7;
	border-left-color: #dba617;
}

.cookieframe-notice__content strong {
	display: block;
	font-size: 13px;
	color: #1d2327;
}

.cookieframe-notice__content p {
	margin: 2px 0 0;
	font-size: 13px;
	color: #50575e;
}

.cookieframe-btn--sm {
	padding: 0 14px;
	height: 34px;
	font-size: 12px;
	flex-shrink: 0;
}

/* ---- Connected state ---- */
.cookieframe-connected-info {
	background: #f6f7f7;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 16px;
}

.cookieframe-connected-info__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
}

.cookieframe-connected-info__row + .cookieframe-connected-info__row {
	border-top: 1px solid #e0e0e0;
}

.cookieframe-connected-info__label {
	color: #787c82;
	font-size: 13px;
	min-width: 80px;
}

.cookieframe-connected-info__badges {
	display: flex;
	gap: 6px;
	align-items: center;
}

.cookieframe-connected-info code {
	background: #e0e0e0;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 13px;
}

/* ---- Settings form rows ---- */
.cookieframe-settings-fields {
	background: #f6f7f7;
	border-radius: 6px;
	padding: 4px 16px;
	margin-bottom: 16px;
}

.cookieframe-settings-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
}

.cookieframe-settings-row + .cookieframe-settings-row {
	border-top: 1px solid #e0e0e0;
}

.cookieframe-settings-row__label {
	color: #787c82;
	font-size: 13px;
	min-width: 130px;
	flex-shrink: 0;
}

.cookieframe-settings-row__control {
	flex: 1;
	min-width: 0;
}

.cookieframe-field-hint {
	font-size: 12px;
	color: #787c82;
	margin: 6px 0 0 !important;
}

/* Override monospace placeholder for plain text inputs in settings rows */
.cookieframe-settings-row__control .cookieframe-input-wrap input::placeholder {
	font-family: inherit;
	letter-spacing: normal;
}


/* ---- Segmented radio control ---- */
.cookieframe-segment {
	display: inline-flex;
	border: 1px solid #dcdde1;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.cookieframe-segment input[type="radio"] {
	display: none;
}

.cookieframe-segment label {
	padding: 0 16px;
	height: 38px;
	font-size: 13px;
	cursor: pointer;
	color: #50575e;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	border-right: 1px solid #dcdde1;
	transition: background 0.15s, color 0.15s;
	margin: 0;
}

.cookieframe-segment label:last-child {
	border-right: none;
}

.cookieframe-segment label code {
	background: #ebebeb;
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 12px;
	transition: background 0.15s, color 0.15s;
}

.cookieframe-segment input[type="radio"]:checked + label {
	background: #2580ff;
	color: #fff;
}

.cookieframe-segment input[type="radio"]:checked + label code {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}


/* ---- Settings actions ---- */
.cookieframe-settings-actions {
	display: flex;
	align-items: center;
}

/* ---- Token input (excluded pages autocomplete) ---- */
.cookieframe-token-input {
	border: 1px solid #dcdde1;
	border-radius: 6px;
	background: #fff;
	padding: 6px 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	min-height: 42px;
	cursor: text;
	position: relative;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.cookieframe-token-input:focus-within {
	border-color: #2580ff;
	box-shadow: 0 0 0 1px #2580ff;
}

.cookieframe-token-input__chips {
	display: contents;
}

.cookieframe-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #eef4ff;
	border: 1px solid #c8dbff;
	border-radius: 4px;
	padding: 3px 4px 3px 8px;
	font-size: 12px;
	color: #1d2327;
	white-space: nowrap;
}

.cookieframe-chip__type {
	font-size: 10px;
	font-weight: 700;
	color: #2580ff;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	flex-shrink: 0;
}

.cookieframe-chip__title {
	color: #1d2327;
}

.cookieframe-chip__remove {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #9ea3a8;
	font-size: 15px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 3px;
	transition: background 0.1s, color 0.1s;
	flex-shrink: 0;
}

.cookieframe-chip__remove:hover {
	background: rgba(0, 0, 0, 0.08);
	color: #1d2327;
}

.cookieframe-token-input__search {
	border: none !important;
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 13px;
	color: #1d2327;
	padding: 0 !important;
	height: 26px;
	min-width: 140px;
	flex: 1;
}

.cookieframe-token-input__search::placeholder {
	color: #b7b9bc;
	font-family: inherit;
	letter-spacing: normal;
}

.cookieframe-token-input__dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #dcdde1;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	z-index: 9999;
	list-style: none;
	margin: 0;
	padding: 4px;
	display: none;
}

.cookieframe-token-input__option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	color: #1d2327;
	transition: background 0.1s;
}

.cookieframe-token-input__option:hover {
	background: #f0f5ff;
}

/* ---- Stats grid ---- */
.cookieframe-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}

.cookieframe-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 16px 12px;
	background: #f6f7f7;
	border-radius: 6px;
	text-align: center;
}

.cookieframe-stat__value {
	font-size: 22px;
	font-weight: 700;
	color: #1d2327;
	line-height: 1.2;
}

.cookieframe-stat__label {
	font-size: 12px;
	color: #787c82;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	font-weight: 500;
}

/* Skeleton loading animation */
.cookieframe-stat__skeleton {
	color: transparent !important;
	background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f1 50%, #e8e8e8 75%);
	background-size: 200% 100%;
	animation: cookieframe-shimmer 1.5s infinite;
	border-radius: 4px;
	min-width: 40px;
}

@keyframes cookieframe-shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

@media (max-width: 600px) {
	.cookieframe-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 380px) {
	.cookieframe-stats-grid {
		grid-template-columns: 1fr;
	}
}

/* Stat subtitle (e.g., uncategorized count) */
.cookieframe-stat__subtitle {
	font-size: 11px;
	color: #d63638;
	font-weight: 500;
	line-height: 1.3;
}

.cookieframe-connected-actions {
	display: flex;
	gap: 8px;
}

.cookieframe-btn--subtle {
	background: #fff;
	color: #787c82;
	border: 1px solid #dcdde1;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cookieframe-btn--subtle:hover {
	color: #d63638;
	border-color: #d63638;
	background: #fcf0f1;
}

.cookieframe-btn--subtle:active {
	background: #f8e5e5;
}

/* ---- Sections ---- */
.cookieframe-section {
	position: relative;
	padding-left: 48px;
}

.cookieframe-section__icon {
	position: absolute;
	left: 0;
	top: 0;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef5ff;
	border-radius: 8px;
}

.cookieframe-section h3 {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.cookieframe-section > p {
	margin: 0 0 16px;
	color: #787c82;
	font-size: 13px;
	line-height: 1.5;
}

.cookieframe-hint {
	margin: 8px 0 0;
	color: #a7aaad;
	font-size: 12px;
}

.cookieframe-hint a {
	color: #787c82;
}

/* ---- Divider ---- */
.cookieframe-divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 24px 0;
	margin-left: 48px;
	color: #c3c4c7;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 500;
}

.cookieframe-divider::before,
.cookieframe-divider::after {
	content: "";
	flex: 1;
	border-top: 1px solid #e8e8e8;
}

/* ---- Inputs ---- */
.cookieframe-input-wrap {
	position: relative;
}

.cookieframe-input-wrap input {
	width: 100%;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #dcdde1;
	border-radius: 6px;
	font-size: 14px;
	color: #1d2327;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
	box-sizing: border-box;
}

.cookieframe-input-wrap input:focus {
	border-color: #2580ff;
	box-shadow: 0 0 0 1px #2580ff;
}

.cookieframe-input-wrap input::placeholder {
	color: #c3c4c7;
	font-family: monospace;
	letter-spacing: 2px;
}

/* ---- Buttons ---- */
.cookieframe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 22px;
	height: 42px;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	text-decoration: none;
	line-height: 1;
}

.cookieframe-btn:focus-visible {
	outline: 2px solid #2580ff;
	outline-offset: 2px;
}

.cookieframe-btn:active {
	transform: translateY(1px);
}

.cookieframe-btn--primary {
	background: linear-gradient(180deg, #3d8eff 0%, #2580ff 100%);
	color: #fff;
	box-shadow: 0 1px 2px rgba(37, 128, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cookieframe-btn--primary:hover {
	background: linear-gradient(180deg, #2580ff 0%, #1a6de0 100%);
	box-shadow: 0 2px 6px rgba(37, 128, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	color: #fff;
}

.cookieframe-btn--primary:active {
	background: #1a6de0;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.cookieframe-btn--primary:disabled {
	background: #c3c4c7;
	color: #fff;
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

.cookieframe-btn--full {
	width: 100%;
}

.cookieframe-btn--arrow {
	gap: 8px;
}

.cookieframe-btn--arrow::after {
	content: "\2192";
	font-size: 15px;
	transition: transform 0.2s ease;
}

.cookieframe-btn--arrow:hover::after {
	transform: translateX(3px);
}

.cookieframe-btn--secondary {
	background: #fff;
	color: #2580ff;
	border: 1px solid #2580ff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cookieframe-btn--secondary:hover {
	background: #f0f6ff;
	color: #1a6de0;
	border-color: #1a6de0;
}

.cookieframe-btn--secondary:active {
	background: #e5f0ff;
}

/* ---- Input group (inline input + button) ---- */
.cookieframe-input-group {
	display: flex;
	gap: 10px;
	align-items: stretch;
	margin-bottom: 4px;
}

.cookieframe-input-group .cookieframe-input-wrap {
	flex: 1;
	max-width: 240px;
}

.cookieframe-input-group .cookieframe-input-wrap input {
	font-family: monospace;
	font-size: 15px;
	letter-spacing: 2px;
	text-align: center;
}

/* ---- Form rows ---- */
.cookieframe-form-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.cookieframe-form-row {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.cookieframe-form-row label {
	font-weight: 500;
	font-size: 12px;
	color: #787c82;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.cookieframe-form-row .cookieframe-input-wrap {
	max-width: 400px;
}


/* ---- Toggle switch ---- */
.cookieframe-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.cookieframe-toggle input[type="checkbox"] {
	display: none;
}

.cookieframe-toggle__slider {
	position: relative;
	width: 40px;
	height: 22px;
	background: #c3c4c7;
	border-radius: 11px;
	transition: background 0.2s;
	flex-shrink: 0;
}

.cookieframe-toggle__slider::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}

.cookieframe-toggle input:checked + .cookieframe-toggle__slider {
	background: #2580ff;
}

.cookieframe-toggle input:checked + .cookieframe-toggle__slider::after {
	transform: translateX(18px);
}

.cookieframe-toggle__label {
	font-size: 13px;
	color: #50575e;
}

/* ---- Messages ---- */
.cookieframe-message {
	min-height: 20px;
	font-size: 13px;
	margin-top: 12px !important;
	padding: 10px 14px;
	border-radius: 6px;
	border-left: 4px solid transparent;
	line-height: 1.5;
}

.cookieframe-message:empty {
	display: none;
	margin: 0;
	padding: 0;
}

.cookieframe-message--error {
	color: #8a1c1f;
	background: #fcf0f0;
	border-left-color: #d63638;
}

.cookieframe-message--success {
	color: #005c12;
	background: #edf8f0;
	border-left-color: #00a32a;
}

/* ---- Shortcodes ---- */
.cookieframe-shortcode {
	padding: 4px 0;
}

.cookieframe-shortcode__code {
	display: inline-block;
	background: #f0f0f1;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 4px;
}

.cookieframe-card hr {
	border: none;
	border-top: 1px solid #f0f0f1;
	margin: 16px 0;
}

/* ---- Sidebar cards ---- */
.cookieframe-sidebar-card h3 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
}

.cookieframe-sidebar-card__status {
	margin: 0 0 12px;
}

.cookieframe-sidebar-card .description {
	color: #50575e;
	font-size: 13px;
}

/* ---- Features list ---- */
.cookieframe-features {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cookieframe-features li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	font-size: 13px;
	color: #1d2327;
}

.cookieframe-features li svg {
	flex-shrink: 0;
}

/* ---- Help links ---- */
.cookieframe-help-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cookieframe-help-links li {
	padding: 4px 0;
}

.cookieframe-help-links a {
	text-decoration: none;
	font-size: 13px;
}

.cookieframe-help-links a:hover {
	text-decoration: underline;
}

/* ---- Compliance Health ---- */
.cookieframe-compliance {
	background: #f6f7f7;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 16px;
}

.cookieframe-compliance__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.cookieframe-compliance__title {
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.cookieframe-compliance__label {
	font-size: 12px;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 10px;
	background: #f0f0f1;
	color: #787c82;
}

.cookieframe-compliance__score-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 10px;
}

.cookieframe-compliance__number {
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	color: #787c82;
}

.cookieframe-compliance__out-of {
	font-size: 13px;
	color: #787c82;
}

.cookieframe-compliance__bar-wrap {
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.cookieframe-compliance__bar {
	height: 100%;
	width: 0;
	border-radius: 4px;
	transition: width 0.6s ease;
	background: #787c82;
}

/* Compliance empty state */
.cookieframe-compliance--empty {
	opacity: 0.45;
	pointer-events: none;
}

/* Compliance color modifiers */
.cookieframe-compliance--excellent .cookieframe-compliance__bar { background: #00a32a; }
.cookieframe-compliance--excellent .cookieframe-compliance__number { color: #00a32a; }
.cookieframe-compliance--excellent .cookieframe-compliance__label { background: #edfcf2; color: #0a7227; }

.cookieframe-compliance--good .cookieframe-compliance__bar { background: #22c55e; }
.cookieframe-compliance--good .cookieframe-compliance__number { color: #22c55e; }
.cookieframe-compliance--good .cookieframe-compliance__label { background: #edfcf2; color: #0a7227; }

.cookieframe-compliance--fair .cookieframe-compliance__bar { background: #eab308; }
.cookieframe-compliance--fair .cookieframe-compliance__number { color: #9a7b0a; }
.cookieframe-compliance--fair .cookieframe-compliance__label { background: #fef6e7; color: #996800; }

.cookieframe-compliance--poor .cookieframe-compliance__bar { background: #f97316; }
.cookieframe-compliance--poor .cookieframe-compliance__number { color: #c2590c; }
.cookieframe-compliance--poor .cookieframe-compliance__label { background: #fef0e7; color: #9a4a00; }

.cookieframe-compliance--critical .cookieframe-compliance__bar { background: #dc2626; }
.cookieframe-compliance--critical .cookieframe-compliance__number { color: #dc2626; }
.cookieframe-compliance--critical .cookieframe-compliance__label { background: #fcf0f1; color: #8b1a1a; }

/* Consent metrics empty state */
.cookieframe-consent-metrics--empty {
	opacity: 0.45;
	pointer-events: none;
}

/* ---- Consent Performance ---- */
.cookieframe-consent-metrics {
	background: #f6f7f7;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 16px;
}

.cookieframe-consent-metrics__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.cookieframe-consent-metrics__title {
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.cookieframe-consent-metrics__period {
	font-size: 11px;
	color: #787c82;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	font-weight: 500;
}

.cookieframe-consent-metrics__rate {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 16px;
}

.cookieframe-consent-metrics__rate-value {
	font-size: 32px;
	font-weight: 700;
	color: #1d2327;
	line-height: 1;
}

.cookieframe-consent-metrics__rate-label {
	font-size: 13px;
	color: #787c82;
}

.cookieframe-consent-metrics__bars {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cookieframe-consent-metrics__bar-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cookieframe-consent-metrics__bar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cookieframe-consent-metrics__bar-label {
	font-size: 12px;
	font-weight: 500;
	color: #50575e;
}

.cookieframe-consent-metrics__bar-pct {
	font-size: 12px;
	font-weight: 600;
	color: #1d2327;
}

.cookieframe-consent-metrics__bar-track {
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.cookieframe-consent-metrics__bar-fill {
	height: 100%;
	width: 0;
	border-radius: 4px;
	transition: width 0.6s ease;
}

.cookieframe-consent-metrics__bar-fill--accept {
	background: #00a32a;
}

.cookieframe-consent-metrics__bar-fill--reject {
	background: #d63638;
}

.cookieframe-consent-metrics__bar-count {
	font-size: 11px;
	color: #787c82;
}

/* Stats grid empty state */
.cookieframe-stats-grid--empty {
	opacity: 0.45;
	pointer-events: none;
}

/* ---- Banner Design CTA Card ---- */
.cookieframe-banner-design-card {
	background: linear-gradient(120deg, #1050b3 0%, #2580ff 55%, #4fa8ff 100%);
	border: none !important;
	border-radius: 10px;
	padding: 0 !important;
	overflow: hidden;
	position: relative;
}

/* Dot grid texture */
.cookieframe-banner-design-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
	background-size: 18px 18px;
	pointer-events: none;
}

/* Decorative ring top-right */
.cookieframe-banner-design-card::after {
	content: "";
	position: absolute;
	right: -50px;
	top: -50px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	border: 36px solid rgba(255, 255, 255, 0.06);
	pointer-events: none;
}

.cookieframe-banner-design-content {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
	position: relative;
	z-index: 1;
}

.cookieframe-banner-design-icon {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	backdrop-filter: blur(4px);
}

.cookieframe-banner-design-icon svg {
	width: 22px;
	height: 22px;
}

.cookieframe-banner-design-text {
	flex: 1;
	min-width: 0;
}

.cookieframe-banner-design-title {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 2px;
	line-height: 1.3;
}

.cookieframe-banner-design-desc {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	line-height: 1.4;
}

.cookieframe-btn--subtle {
	background: transparent;
	color: #787c82;
	border: 1px solid #dcdde1;
	box-shadow: none;
}

.cookieframe-btn--subtle:hover {
	background: #fff0f0;
	color: #c0392b;
	border-color: #e8b4b0;
}

.cookieframe-btn--subtle:active {
	background: #ffe5e5;
	transform: translateY(1px);
}

.cookieframe-btn--white {
	background: #fff;
	color: #1565c0;
	font-weight: 700;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
	flex-shrink: 0;
	white-space: nowrap;
}

.cookieframe-btn--white:hover {
	background: #f0f6ff;
	color: #0d47a1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.cookieframe-btn--white:active {
	background: #e3eef9;
	transform: translateY(1px);
}

@media (max-width: 900px) {
	.cookieframe-banner-design-content {
		flex-wrap: wrap;
		gap: 14px;
	}
	.cookieframe-btn--white {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}
}

/* ---- Review Reminder ---- */
.cookieframe-review-card {
	border-color: #e0e7ff;
	background: #f8faff;
	transition: opacity 0.3s ease, max-height 0.3s ease;
}

.cookieframe-review-content {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
}

.cookieframe-review-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #eef2ff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #2580ff;
}

.cookieframe-review-title {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 4px;
}

.cookieframe-review-desc {
	font-size: 13px;
	color: #50575e;
	margin: 0;
	line-height: 1.5;
}

.cookieframe-review-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-left: 52px;
}

.cookieframe-review-dismiss {
	background: none;
	border: none;
	color: #787c82;
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookieframe-review-dismiss:hover {
	color: #50575e;
}

.cookieframe-review-card--hiding {
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	margin-bottom: 0;
	padding: 0 24px;
}

@media (max-width: 600px) {
	.cookieframe-review-actions {
		padding-left: 0;
		flex-wrap: wrap;
	}
}

/* ---- Dashboard Widget ---- */
.cookieframe-widget .cookieframe-stats-grid {
	grid-template-columns: repeat(2, 1fr);
}

.cookieframe-widget .cookieframe-compliance {
	margin-bottom: 12px;
}

.cookieframe-widget .cookieframe-consent-metrics {
	margin-bottom: 12px;
}

.cookieframe-widget__status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.cookieframe-badge--loading {
	display: none;
}

.cookieframe-badge--error {
	background: #fcf0f1;
	color: #8b1a1a;
}

.cookieframe-badge--error::before {
	background: #d63638;
}

.cookieframe-widget__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid #e0e0e0;
}

.cookieframe-widget__footer a {
	font-size: 13px;
	text-decoration: none;
	font-weight: 500;
}

.cookieframe-widget__footer a:hover {
	text-decoration: underline;
}
