.berzver-analytics-choice {
  --choice-left: max(16px, env(safe-area-inset-left));
  --choice-bottom: max(16px, env(safe-area-inset-bottom));
  --choice-room: calc(100% - var(--choice-left) - max(16px, env(safe-area-inset-right)));
  position: fixed;
  z-index: 1100;
  inset: auto auto var(--choice-bottom) var(--choice-left);
  box-sizing: border-box;
  width: min(620px, var(--choice-room));
  max-height: calc(100dvh - var(--choice-bottom) - max(16px, env(safe-area-inset-top)));
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px 24px 18px;
  border: 0;
  border-radius: 12px;
  color: #302c29;
  background: #f4efe7;
  box-shadow: 0 20px 55px #101a18a3, 0 2px 8px #101a1833;
  font: normal 16px/1.45 Georgia, serif;
  text-align: left;
  color-scheme: light;
}
.berzver-analytics-choice[hidden],
.berzver-analytics-choice .analytics-intro[hidden],
.berzver-analytics-choice .analytics-settings[hidden] { display: none; }
.berzver-analytics-choice p { margin: 0; font: inherit; color: inherit; }
.berzver-analytics-choice a {
  color: #8b3d27;
  text-decoration: underline;
  text-underline-offset: .16em;
}
.berzver-analytics-choice strong { display: block; margin-bottom: 8px; font: bold 21px/1.25 Georgia, serif; }
.berzver-analytics-choice .analytics-settings > p { margin-bottom: 14px; }
.berzver-analytics-choice .analytics-details { margin-top: 14px; }
.berzver-analytics-choice .analytics-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; }
.berzver-analytics-choice button {
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid #a64e32;
  border-radius: 28% 72% 34% 66% / 65% 43% 57% 35%;
  color: #833c29;
  background: transparent;
  cursor: pointer;
  font: 600 15px/1.2 system-ui, sans-serif;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.berzver-analytics-choice .analytics-actions button:nth-child(2) { border-radius: 60% 40% 45% 55% / 36% 60% 40% 64%; }
.berzver-analytics-choice .analytics-actions button:nth-child(3) { border-radius: 64% 36% 58% 42% / 44% 62% 38% 56%; }
.berzver-analytics-choice button:hover { background: #ecded1; transform: translateY(-1px); }
.berzver-analytics-choice button:active { transform: scale(.98); }
.berzver-analytics-choice button.analytics-accept { color: #fff; background: #a64e32; }
.berzver-analytics-choice button.analytics-accept:hover { background: #843b28; }
.berzver-analytics-choice button.analytics-configure { margin-left: auto; }
.berzver-analytics-choice .analytics-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  border-top: 1px solid #d2c6b7;
  font: 16px/1.35 Georgia, serif;
}
.berzver-analytics-choice .analytics-option small { display: block; margin-top: 2px; color: #5e6058; font-size: 13px; }
.berzver-analytics-choice .analytics-option input { flex: none; width: 20px; height: 20px; accent-color: #a64e32; }
.berzver-analytics-choice :focus-visible { outline: 3px solid #274a40; outline-offset: 3px; }
@media (max-width: 480px) {
  .berzver-analytics-choice { padding: 17px 18px; font-size: 15px; }
  .berzver-analytics-choice button { padding-inline: 14px; font-size: 14px; }
  .berzver-analytics-choice .analytics-intro .analytics-actions { gap: clamp(4px, 1.4vw, 7px); }
  .berzver-analytics-choice .analytics-intro .analytics-actions button {
    flex: 1 0 auto;
    padding-inline: clamp(4px, calc(7vw - 18px), 14px);
  }
  .berzver-analytics-choice button.analytics-configure { margin-left: 0; }
}
@media (max-width: 359px) {
  .berzver-analytics-choice .analytics-intro .analytics-actions { margin-inline: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .berzver-analytics-choice button { transition: none; }
  .berzver-analytics-choice button:hover,
  .berzver-analytics-choice button:active { transform: none; }
}
.berzver-analytics-choice.is-settings { width: min(480px, calc(var(--choice-room) - 8px)); padding: 0; }
.berzver-analytics-choice .analytics-settings { display: flex; flex-direction: column; }
.berzver-analytics-choice .analytics-settings-head { display: flex; align-items: center; min-height: 54px; padding: 0 15px; border-bottom: 1px solid #ded4c7; }
.berzver-analytics-choice button.analytics-back { min-width: 44px; width: 44px; padding: 0; border: 0; border-radius: 0; color: #615f59; background: transparent; font: 28px/1 Georgia, serif; }
.berzver-analytics-choice .analytics-settings-content { padding: 22px 24px 24px; }
.berzver-analytics-choice .analytics-settings-content h2 { margin: 0 0 16px; font: 29px/1.2 Georgia, serif; }
.berzver-analytics-choice .analytics-settings-lead { margin-bottom: 22px; font-size: 16px; line-height: 1.5; }
.berzver-analytics-choice .analytics-options { border-top: 1px solid #d2c6b7; }
.berzver-analytics-choice .analytics-category { position: relative; border-bottom: 1px solid #d2c6b7; }
.berzver-analytics-choice .analytics-category summary { display: flex; align-items: center; gap: 9px; min-height: 66px; padding: 10px 145px 10px 0; color: #302c29; font: 17px/1.3 Georgia, serif; list-style: none; cursor: pointer; }
.berzver-analytics-choice .analytics-category summary::-webkit-details-marker { display: none; }
.berzver-analytics-choice .analytics-category summary::before { content: '+'; flex: none; width: 18px; color: #302c29; font: 21px/1 Georgia, serif; }
.berzver-analytics-choice .analytics-category details[open] summary::before { content: '−'; }
.berzver-analytics-choice .analytics-category p { padding: 0 0 17px 27px; color: #64625e; font-size: 14px; line-height: 1.5; }
.berzver-analytics-choice .analytics-always { position: absolute; top: 24px; right: 0; color: #456a5d; font: 11px/1.3 system-ui, sans-serif; white-space: nowrap; }
.berzver-analytics-choice .analytics-switch { position: absolute; z-index: 1; top: 19px; right: 0; display: flex; align-items: center; gap: 8px; min-height: 28px; font: 11px/1.3 system-ui, sans-serif; cursor: pointer; }
.berzver-analytics-choice .analytics-switch-state { color: #77756e; white-space: nowrap; }
.berzver-analytics-choice .analytics-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.berzver-analytics-choice .analytics-switch-track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 20px; background: #b9b8b4; transition: background-color .18s ease; }
.berzver-analytics-choice .analytics-switch-track::after { content: ''; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.berzver-analytics-choice .analytics-switch input:checked + .analytics-switch-track { background: #a64e32; }
.berzver-analytics-choice .analytics-switch input:checked + .analytics-switch-track::after { transform: translateX(18px); }
.berzver-analytics-choice .analytics-switch input:focus-visible + .analytics-switch-track { outline: 3px solid #274a40; outline-offset: 3px; }
.berzver-analytics-choice .analytics-settings-actions { margin: 0; padding: 14px 24px; border-top: 1px solid #ded4c7; }
@media (max-width: 480px) {
  .berzver-analytics-choice .analytics-settings-content { padding: 18px 18px 22px; }
  .berzver-analytics-choice .analytics-settings-content h2 { font-size: 25px; }
  .berzver-analytics-choice .analytics-settings-actions { padding-inline: 18px; }
  .berzver-analytics-choice .analytics-category summary { min-height: 62px; padding-right: 130px; font-size: 15px; }
  .berzver-analytics-choice .analytics-always { top: 23px; font-size: 10px; }
  .berzver-analytics-choice .analytics-switch { top: 17px; gap: 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .berzver-analytics-choice .analytics-switch-track, .berzver-analytics-choice .analytics-switch-track::after { transition: none; }
}
