#clarity-settings {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

#clarity-choice {
  position: fixed;
  z-index: 80;
  inset-inline-end: max(12px, env(safe-area-inset-right));
  inset-block-end: max(70px, env(safe-area-inset-bottom));
  width: min(248px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #e0ddf024;
  border-radius: 10px;
  background: #292834f2;
  color: #fafafa;
  font: 12px/1.5 system-ui, sans-serif;
  box-shadow: 0 3px 12px #17162033;
}

#clarity-choice[hidden], #clarity-settings[hidden] { display: none; }
#clarity-choice p { margin: 0; }
#clarity-choice [role="status"] { margin-block-start: 6px; }
#clarity-choice [role="status"]:empty { display: none; }

#clarity-choice .clarity-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-block-start: 8px;
}

#clarity-choice button {
  min-width: 48px;
  min-height: 32px;
  padding: 4px 9px;
  border: 1px solid #777481;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#clarity-choice [data-allow] {
  border-color: #3e6258;
  background: #3e6258;
}

#clarity-choice [data-deny]:hover { background: #373646; }
#clarity-choice [data-allow]:hover { background: #4a7065; }
#clarity-choice :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }


body.day-mode #clarity-choice {
  background: #f2f0eaf7;
  border-color: #d4cec3;
  color: #313036;
  box-shadow: 0 3px 12px #40352b1c;
}

body.day-mode #clarity-choice [data-deny] { border-color: #9a9288; }
body.day-mode #clarity-choice [data-deny]:hover { background: #e7e2d9; }
body.day-mode #clarity-choice [data-allow] { color: #fafafa; }
body.day-mode #clarity-choice :focus-visible { outline-color: #343139; }

.clarity-console-page #clarity-settings {
  position: fixed;
  z-index: 80;
  inset-inline-end: 16px;
  inset-block-end: 12px;
  padding: 6px 9px;
  border: 1px solid light-dark(#d4cec3, #e0ddf024);
  border-radius: 6px;
  background: light-dark(#f2f0eaf7, #292834f2);
  color: light-dark(#313036, #fafafa);
}
.clarity-console-page #clarity-choice {
  background: light-dark(#f2f0eaf7, #292834f2);
  border-color: light-dark(#d4cec3, #e0ddf024);
  color: light-dark(#313036, #fafafa);
}
.clarity-console-page #clarity-choice [data-deny] {
  border-color: light-dark(#9a9288, #777481);
}
.clarity-console-page #clarity-choice [data-deny]:hover {
  background: light-dark(#e7e2d9, #373646);
}
.clarity-console-page #clarity-choice [data-allow] { color: #fafafa; }
.clarity-console-page #clarity-choice :focus-visible {
  outline-color: light-dark(#343139, #fff);
}

@media (max-width: 900px), (max-height: 580px) {
  .interaction-footer:has(#clarity-settings:not([hidden])) {
    display: flex !important;
    justify-content: flex-end;
  }
  .interaction-footer:has(#clarity-settings:not([hidden])) .gesture-hint,
  .interaction-footer:has(#clarity-settings:not([hidden])) .footer-meta > span {
    display: none;
  }
  .interaction-footer:has(#clarity-settings:not([hidden])) .footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
