.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 7px;
  background: #a2ad8a;
  color: #222a1c;
  box-shadow: inset 0 1px 2px rgba(34, 42, 28, 0.35);
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.notice-visible {
  opacity: 1;
  transform: translateY(0);
}

.notice-leaving {
  opacity: 0;
  transform: translateY(3px);
}

.notice-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 14px;
  margin: 0 2px;
  background: #222a1c;
  box-shadow: 0 -3px 0 -1px #222a1c, 0 3px 0 -1px #222a1c;
}

.notice-icon::before {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 4px;
  height: 5px;
  background: #a2ad8a;
  box-shadow: 5px 0 0 #a2ad8a, 0 6px 0 -1px #a2ad8a, 5px 6px 0 -1px #a2ad8a;
  content: "";
}

.notice-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.notice-title {
  font-weight: 700;
}

.notice-body {
  color: #222a1c;
}

.notice-button {
  flex: 0 0 auto;
  min-width: 35px;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  background: rgba(34, 42, 28, 0.12);
  color: #222a1c;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(34, 42, 28, 0.3);
}

.notice-button:active {
  transform: translateY(2px);
  box-shadow: none;
}

.notice-button:focus-visible {
  outline: 2px solid #222a1c;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .notice {
    transition: none;
  }
}
