.tsr-analytics-consent,
.tsr-analytics-preferences {
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tsr-analytics-consent {
	position: fixed;
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2147483000;
	width: calc(100% - 36px);
	max-width: 960px;
	box-sizing: border-box;
	max-height: calc(100vh - 36px);
	max-height: calc(100dvh - 36px);
	overflow-y: auto;
	margin: 0;
	padding: 24px;
	border: 1px solid #ff9e09;
	border-radius: 12px;
	background: #11161b;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
	color: #f5f7fa;
}

.tsr-analytics-consent[hidden],
.tsr-analytics-preferences[hidden] { display: none !important; }

.tsr-analytics-consent__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
}

.tsr-analytics-consent h2 { margin: 0 0 8px; color: #ff9e09; font-family: inherit; font-size: 26px; font-weight: 500; line-height: 1.25; }
.tsr-analytics-consent p { margin: 6px 0; color: #f5f7fa; font-size: 16px; line-height: 1.55; }
.tsr-analytics-consent a { color: #ffb33a; font-weight: 700; }
.tsr-analytics-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.tsr-analytics-consent button,
.tsr-analytics-preferences {
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid #ff9e09;
	border-radius: 7px;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}
.tsr-analytics-consent__accept { background: #ff9e09; color: #090c0f; }
.tsr-analytics-consent__decline { background: #171d23; color: #f5f7fa; }
.tsr-analytics-consent button:focus-visible,
.tsr-analytics-preferences:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tsr-analytics-preferences {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 2147482999;
	min-height: 36px;
	padding: 7px 11px;
	background: #11161b;
	color: #ffb33a;
	font-size: 13px;
}

@media (max-width: 700px) {
	.tsr-analytics-consent { width: calc(100% - 20px); padding: 16px; }
	.tsr-analytics-consent__inner { grid-template-columns: 1fr; gap: 14px; }
	.tsr-analytics-consent__actions { justify-content: stretch; }
	.tsr-analytics-consent__actions button { flex: 1 1 180px; }
}

/* Proposed analytics comparison chart: presentation only; consent JS unchanged. */
.tsr-analytics-consent__inner { display: block; }
.tsr-analytics-consent__chart { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.tsr-analytics-consent__chart-card { min-width: 0; padding: 18px; border: 1px solid #4d5862; border-radius: 12px; background: #182026; }
.tsr-analytics-consent__chart-card h3 { margin: 0 0 12px; color: #ffb33a; font-size: 16px; line-height: 1.4; font-weight: 700; }
.tsr-analytics-consent__chart-card ul { margin: 0; padding-left: 20px; list-style: disc; }
.tsr-analytics-consent__chart-card li { margin: 0 0 10px; color: #f5f7fa; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.tsr-analytics-consent__chart-card li:last-child { margin-bottom: 0; }
.tsr-analytics-consent p.tsr-analytics-consent__note { color: #b7c0cc; font-size: 14px; }
.tsr-analytics-consent__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; position: sticky; bottom: 0; z-index: 1; padding: 12px 0 0; background: #11161b; }
.tsr-analytics-consent__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 360px; max-width: 100%; margin-left: auto; }
.tsr-analytics-consent__actions button { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; white-space: normal; overflow-wrap: anywhere; font-family: inherit; }
@media (max-width: 700px) {
  .tsr-analytics-consent { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .tsr-analytics-consent__chart { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 14px 0; }
  .tsr-analytics-consent__chart-card { padding: 16px; }
  .tsr-analytics-consent__chart-card li { font-size: 15px; }
  .tsr-analytics-consent__footer { display: block; }
  .tsr-analytics-consent__actions { width: 100%; margin: 12px 0 0; }
}

/* Approved revised optional-analytics chart: scoped presentation only. */
.tsr-analytics-consent__chart-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  column-gap: 16px;
  align-items: center;
}
.tsr-analytics-consent__chart-card h3 { grid-column: 1 / -1; grid-row: 1; }
.tsr-analytics-consent__chart-card ul { grid-column: 1; grid-row: 2; }
.tsr-analytics-consent__chart-icon { grid-column: 2; grid-row: 2; display: block; width: 100px; height: 100px; max-width: 100%; justify-self: center; }
.tsr-analytics-consent__chart-icon--accept { color: #5ee0a1; }
.tsr-analytics-consent__chart-icon--decline { color: #f27b81; }
.tsr-analytics-consent p.tsr-analytics-consent__statement { margin: 18px 0 10px; color: #FF9E09; font-size: 20px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.tsr-analytics-consent__chart-card, .tsr-analytics-consent__footer { box-sizing: border-box; }
@media (min-width: 701px) and (max-width: 1100px) {
  .tsr-analytics-consent__chart-card { grid-template-columns: minmax(0, 1fr) 80px; column-gap: 12px; }
  .tsr-analytics-consent__chart-icon { width: 80px; height: 80px; }
}
@media (max-width: 700px) {
  .tsr-analytics-consent__chart-card { grid-template-columns: minmax(0, 1fr) 64px; column-gap: 12px; }
  .tsr-analytics-consent__chart-icon { width: 64px; height: 64px; }
  .tsr-analytics-consent p.tsr-analytics-consent__statement { font-size: 18px; line-height: 1.45; }
}
@media (max-width: 360px) {
  .tsr-analytics-consent__chart-card { grid-template-columns: minmax(0, 1fr) 52px; column-gap: 8px; }
  .tsr-analytics-consent__chart-icon { width: 52px; height: 52px; }
}

/* Approved compact popup: bounded dialog, independently scrollable information,
   and an action footer outside that information's scroll area. */
.tsr-analytics-consent {
  display: flex;
  flex-direction: column;
  width: calc(100% - 32px);
  max-width: 860px;
  max-height: 82vh;
  max-height: 82dvh;
  overflow: hidden;
  padding: 0;
}
.tsr-analytics-consent__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: inherit;
}
.tsr-analytics-consent__content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 24px 12px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.tsr-analytics-consent__content:focus-visible { outline: 2px solid #ff9e09; outline-offset: -4px; }
.tsr-analytics-consent__footer {
  position: static;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding: 14px 24px;
  border-top: 1px solid #39434d;
  max-height: 50vh;
  max-height: 50dvh;
  overflow: auto;
}
.tsr-analytics-consent__footer > a { max-width: 100%; overflow-wrap: anywhere; }
.tsr-analytics-consent__actions { flex: 0 1 360px; width: 360px; margin-left: auto; }
.tsr-analytics-consent__actions button { min-height: 48px; font-size: .9375rem; line-height: 1.45; }
.tsr-analytics-consent h2 { font-size: 1.5rem; }
.tsr-analytics-consent p { font-size: 1rem; }
.tsr-analytics-consent__chart-card li { font-size: .9375rem; }
.tsr-analytics-consent p.tsr-analytics-consent__statement { font-size: 1.25rem; }
.tsr-analytics-consent p.tsr-analytics-consent__media { color: #cbd2dc; }
.tsr-analytics-consent p.tsr-analytics-consent__note { font-size: .875rem; }
@media (max-width: 700px) {
  .tsr-analytics-consent { width: calc(100% - 32px); max-height: 82vh; max-height: 82dvh; padding: 0; }
  .tsr-analytics-consent__inner { gap: 0; }
  .tsr-analytics-consent__content { padding: 18px 14px 12px; }
  .tsr-analytics-consent__footer { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .tsr-analytics-consent__actions { flex: none; width: 100%; margin: 0; }
  .tsr-analytics-consent__chart-card { padding: 12px; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; }
  .tsr-analytics-consent__chart-card h3 { font-size: .875rem; }
  .tsr-analytics-consent__chart-card ul { padding-left: 18px; }
  .tsr-analytics-consent__chart-card li { font-size: .9375rem; line-height: 1.5; }
  .tsr-analytics-consent__chart-icon { width: 48px; height: 48px; }
  .tsr-analytics-consent p.tsr-analytics-consent__statement { font-size: 1.125rem; }
}
