/* Roni Azulay — brand skin for the SDA Bundle compliance UI.
 *
 * The plugin ships a neutral blue (#2563eb) so it drops into any site. This
 * re-skins it to the editorial brass/dark palette WITHOUT touching the
 * sellable plugin. Site-specific only; the !important overrides win
 * regardless of enqueue order and over the JS-set inline --sda-cc-primary.
 */

/* Accent vars -> monochrome (white on the dark bar, unique-black elsewhere). */
#sda-cc-banner,
#sda-cc-recall {
	--sda-cc-primary: #ffffff !important;
}
#heb-widget,
#heb-trigger,
#heb-panel {
	--sda-a11y-primary: #14151a !important;
}

/* Banner ground -> brand dark with a quiet hairline + brand font. */
#sda-cc-banner {
	background: #141619 !important;
	font-family: "Noto Sans Hebrew", system-ui, sans-serif !important;
}
#sda-cc-banner.sda-cc-pos-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
}

/* Square the whole cookie UI (no rounded cards, no pill recall/buttons)
 * and force the single site font on every child element. */
#sda-cc-banner,
#sda-cc-banner.sda-cc-pos-box,
#sda-cc-banner .sda-cc-btn,
#sda-cc-banner .sda-cc-categories,
#sda-cc-recall {
	border-radius: 0 !important;
}
#sda-cc-banner *,
#sda-cc-recall {
	font-family: "Noto Sans Hebrew", system-ui, sans-serif !important;
}

/* Accept-all & Reject-all: equal-weight filled WHITE with near-black text,
 * mirroring the hero button on the dark bar. Equal prominence (no nudging). */
#sda-cc-banner .sda-cc-btn-primary,
#sda-cc-banner .sda-cc-btn-reject {
	background: #ffffff !important;
	border-color: #ffffff !important;
	color: #14151a !important;
}

/* Recall control floats over the light page, so it stays the unique black. */
#sda-cc-recall {
	background: #14151a !important;
	border-color: #14151a !important;
	color: #ffffff !important;
}

/* Manage/settings stays a quiet ghost button, subordinate to the choices. */
#sda-cc-banner .sda-cc-btn-secondary {
	border-color: rgba(244, 246, 250, 0.28) !important;
	color: #f4f6fa !important;
}
#sda-cc-banner .sda-cc-btn-secondary:hover {
	border-color: #ffffff !important;
	color: #ffffff !important;
}

/* Focus ring -> white so it reads on the dark bar. */
#sda-cc-banner .sda-cc-btn:focus-visible,
#sda-cc-recall:focus-visible {
	outline-color: #ffffff !important;
}

/* Cookie controls positioning by language:
 * EN -> left, HE -> right (even if dir/html state is inconsistent). */
html[lang^="en"] #sda-cc-banner.sda-cc-pos-box {
	left: 20px !important;
	right: auto !important;
}
html[lang^="en"] #sda-cc-recall {
	left: 16px !important;
	right: auto !important;
}
html[lang^="he"] #sda-cc-banner.sda-cc-pos-box {
	right: 20px !important;
	left: auto !important;
}
html[lang^="he"] #sda-cc-recall {
	left: 16px !important;
	right: auto !important;
}
:root[dir="rtl"] #sda-cc-recall,
html[dir="rtl"] #sda-cc-recall,
body.rtl #sda-cc-recall,
#sda-cc-recall[dir="rtl"] {
	left: 16px !important;
	right: auto !important;
}
@media (max-width: 600px) {
	html[lang^="en"] #sda-cc-banner.sda-cc-pos-box {
		left: 10px !important;
		right: 10px !important;
	}
	html[lang^="he"] #sda-cc-banner.sda-cc-pos-box {
		right: 10px !important;
		left: 10px !important;
	}
}

/* Accessibility widget: replace blue surfaces/accents with the brand palette. */
#heb-widget,
#heb-panel,
#heb-trigger,
#heb-panel * {
	font-family: "Noto Sans Hebrew", system-ui, sans-serif !important;
}
/* Use the supplied accessibility logo, full / edge-to-edge, in place of the
   built-in white-square SVG icon. Drop the inline white border + white ring. */
#heb-trigger {
	background: #14151a url("../img/accessibility-icon.svg") center / cover no-repeat !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
}
#heb-trigger svg {
	display: none !important;
}
#heb-panel [style*="background:#f0f7ff"],
#heb-panel [style*="background: #f0f7ff"] {
	background: #eef1f6 !important;
}
#heb-panel [style*="color:#2563eb"],
#heb-panel [style*="color: #2563eb"] {
	color: #14151a !important;
}
#heb-panel [style*="border:2px solid #2563eb"],
#heb-panel [style*="border: 2px solid #2563eb"] {
	border-color: #14151a !important;
}
