.at-analytics-choice, .at-cookie-dialog, .at-cookie-account-card {
  box-sizing: border-box;
  color: var(--ink, #292725);
  font-family: Manrope, Arial, sans-serif;
}
.at-analytics-choice {
  position: fixed;
  z-index: 1000;
  inset: auto clamp(12px, 3vw, 40px) calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 38px);
  max-width: 1080px;
  max-height: min(75dvh, 600px);
  overflow-y: auto;
  margin: auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line, #e4d8cf);
  border-radius: 5px;
  background: var(--white, #fff);
  box-shadow: 0 18px 60px #17141229;
}
.at-analytics-copy { max-width: 650px; min-width: 0; }
.at-analytics-kicker {
  color: var(--copper-dark, #9c684d);
  font: 700 10px/1.5 Manrope, Arial, sans-serif;
  letter-spacing: .12em;
}
.at-analytics-choice h2, .at-cookie-dialog h2 {
  margin: 8px 0 10px;
  color: var(--ink, #292725);
  font: 400 clamp(25px, 3vw, 33px)/1.12 var(--serif, Georgia, serif);
}
.at-analytics-choice p, .at-cookie-dialog p {
  margin: 0;
  color: var(--muted, #625a55);
  font: 13px/1.65 Manrope, Arial, sans-serif;
}
.at-analytics-actions { display: grid; flex: 0 0 210px; gap: 8px; }
.at-analytics-actions button, .at-cookie-footer button {
  min-height: 44px;
  border: 1px solid var(--ink, #292725);
  border-radius: 3px;
  padding: 10px 14px;
  background: var(--white, #fff);
  color: var(--ink, #292725);
  font: 700 12px/1.3 Manrope, Arial, sans-serif;
  cursor: pointer;
}
.at-analytics-actions .at-cookie-customize { border-color: var(--line, #e4d8cf); }
.at-analytics-actions button:hover, .at-cookie-footer button:hover {
  box-shadow: inset 0 0 0 1px var(--ink, #292725);
}
.at-analytics-choice :focus-visible, .at-cookie-dialog :focus-visible {
  outline: 3px solid var(--copper-dark, #9c684d);
  outline-offset: 3px;
}
.at-cookie-dialog {
  width: min(680px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 40px - env(safe-area-inset-bottom, 0px));
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line, #e4d8cf);
  border-radius: 6px;
  background: var(--white, #fff);
  box-shadow: 0 28px 90px #17141250;
}
.at-cookie-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.at-cookie-dialog::backdrop { background: #181512a6; }
.at-cookie-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 26px 16px;
  border-bottom: 1px solid var(--line, #e4d8cf);
  flex-shrink: 0;
}
.at-cookie-heading h2 { margin-bottom: 0; }
.at-cookie-heading h2:focus { outline: none; }
.at-cookie-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line, #e4d8cf);
  border-radius: 50%;
  background: transparent;
  color: var(--ink, #292725);
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}
.at-cookie-body { padding: 20px 26px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.at-cookie-category { padding: 20px 0; border-bottom: 1px solid var(--line, #e4d8cf); }
.at-cookie-category-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.at-cookie-category h3, .at-cookie-switch-label > span:first-child {
  margin: 0;
  color: var(--ink, #292725);
  font: 700 14px/1.4 Manrope, Arial, sans-serif;
}
.at-cookie-always, .at-cookie-switch-label small {
  display: block;
  color: var(--muted, #625a55);
  font: 600 11px/1.4 Manrope, Arial, sans-serif;
}
.at-cookie-always { text-align: right; }
.at-cookie-switch-label { cursor: pointer; }
.at-cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 44px;
}
.at-cookie-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.at-cookie-switch > span {
  width: 52px;
  height: 30px;
  border: 1px solid var(--muted, #625a55);
  border-radius: 20px;
  background: var(--white, #fff);
  pointer-events: none;
}
.at-cookie-switch > span::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border-radius: 50%;
  background: var(--muted, #625a55);
  transition: transform .15s ease;
}
.at-cookie-switch input:checked + span { background: var(--ink, #292725); border-color: var(--ink, #292725); }
.at-cookie-switch input:checked + span::after { transform: translateX(22px); background: var(--white, #fff); }
.at-cookie-switch input:focus-visible + span { outline: 3px solid var(--copper-dark, #9c684d); outline-offset: 3px; }
.at-cookie-details { margin-top: 18px; font-size: 12px; line-height: 1.6; }
.at-cookie-details summary { min-height: 44px; padding: 12px 0; color: var(--ink, #292725); font-weight: 700; cursor: pointer; }
.at-cookie-details dl { margin: 0 0 16px; }
.at-cookie-details dt { margin-top: 12px; font-weight: 700; }
.at-cookie-details dd { margin: 4px 0 0; color: var(--muted, #625a55); }
.at-cookie-details code { overflow-wrap: anywhere; font-size: 11px; }
.at-cookie-dialog .at-cookie-storage-note { font-size: 11px; }
.at-cookie-footer { flex-shrink: 0; padding: 18px 26px 20px; border-top: 1px solid var(--line, #e4d8cf); }
.at-cookie-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.at-cookie-footer .at-cookie-save { width: 100%; margin-top: 10px; background: var(--ink, #292725); color: var(--white, #fff); }
.at-cookie-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 16px; margin-top: 8px; }
.at-cookie-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted, #625a55); font-size: 11px; text-underline-offset: 3px; }
.at-cookie-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 680px) {
  .at-analytics-choice { display: block; padding: 18px; }
  .at-analytics-kicker { font-size: 9px; }
  .at-analytics-actions { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .at-analytics-actions button { padding: 10px 8px; }
  .at-analytics-actions .at-cookie-customize { grid-column: 1 / -1; }
  .at-cookie-heading { padding: 20px 18px 15px; }
  .at-cookie-body { padding: 16px 18px; }
  .at-cookie-footer { padding: 16px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .at-cookie-switch > span::after { transition: none; }
}

.at-cookie-account-card {
  margin: 24px 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line, #e4d8cf);
  border-radius: 5px;
  background: var(--white, #fff);
}
.at-cookie-account-card h2 { margin: 0 0 10px; font: 400 26px/1.2 var(--serif, Georgia, serif); }
.at-cookie-account-card p { max-width: 650px; color: var(--muted, #625a55); font-size: 13px; line-height: 1.6; }
.at-cookie-account-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0; font-size: 12px; }
.at-cookie-account-summary span { display: flex; align-items: center; gap: 7px; }
.at-cookie-account-summary i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink, #292725); }
