.budget-local-data {
  position: fixed;
  z-index: 9000;
  bottom: calc(
    14px + var(
        --metriclab-host-bottom-offset,
        env(safe-area-inset-bottom, 0px)
      )
  );
  left: 14px;
  width: min(390px, calc(100vw - 28px));
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 36px rgb(15 23 42 / 18%);
  font:
    14px/1.5 system-ui,
    sans-serif;
}

.budget-local-data summary {
  padding-right: 36px;
  font-weight: 700;
  cursor: pointer;
}

.budget-local-data p {
  margin: 10px 0;
  color: #475569;
}

.budget-local-data__delete {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #b91c1c;
  border-radius: 999px;
  background: #fff;
  color: #991b1b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.budget-local-data__delete:hover,
.budget-local-data__delete:focus-visible {
  background: #fef2f2;
}

.budget-local-data__dismiss {
  position: absolute;
  top: 5px;
  right: 7px;
  display: inline-grid;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.budget-local-data__dismiss:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.budget-local-data__dismiss:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .budget-local-data {
    border-color: #334155;
    background: #0f172a;
    color: #f8fafc;
  }

  .budget-local-data p {
    color: #cbd5e1;
  }

  .budget-local-data__delete {
    background: #0f172a;
    color: #fca5a5;
  }

  .budget-local-data__dismiss {
    color: #cbd5e1;
  }

  .budget-local-data__dismiss:hover {
    background: #1e293b;
    color: #f8fafc;
  }
}
