/* Unmatch, block, and report sheets. Outfit, cream panels, tomato only on the confirm buttons. */
.safety-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.46);
  z-index: 420;
}

.safety-sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  max-height: min(92vh, 100dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--aisle-cream, #F7F1E6);
  color: var(--aisle-ink, #1C1917);
  border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 421;
  font-family: Outfit;
}

.safety-sheet > * {
  flex-shrink: 0;
}

.safety-grabber {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: rgba(28, 25, 23, 0.2);
  margin: 4px auto 14px;
}

.safety-kicker {
  margin: 0 4px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--aisle-muted, #8A837A);
}

.safety-menu-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.safety-menu-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  background: #fff;
  padding: 16px 16px;
  font-family: Outfit;
  font-size: 17px;
  font-weight: 400;
  color: var(--aisle-ink, #1C1917);
  text-align: left;
  cursor: pointer;
}

.safety-menu-row:last-child {
  border-bottom: none;
}

.safety-menu-note {
  margin-left: auto;
  font-size: 14px;
  font-weight: 400;
  color: var(--aisle-muted, #8A837A);
}

.safety-title {
  margin: 4px 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.safety-copy {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.4;
  color: #44403c;
}

.safety-check,
.safety-reason {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  padding: 8px 2px;
  font-family: Outfit;
  font-size: 16px;
  font-weight: 400;
  color: var(--aisle-ink, #1C1917);
  text-align: left;
  cursor: pointer;
}

.safety-box,
.safety-radio {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  box-sizing: border-box;
  border: 1.5px solid rgba(28, 25, 23, 0.35);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.safety-box {
  border-radius: 6px;
}

.safety-radio {
  border-radius: 50%;
}

.safety-box.on {
  background: var(--aisle-produce, #1F7A4D);
  border-color: var(--aisle-produce, #1F7A4D);
}

.safety-radio.on {
  background: #fff;
  border-color: var(--aisle-produce, #1F7A4D);
}

.safety-radio.on::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aisle-produce, #1F7A4D);
}

.safety-details {
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0 8px;
  min-height: 72px;
  border: 1.5px solid rgba(28, 25, 23, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  font-family: Outfit;
  font-size: 15px;
  font-weight: 400;
  color: var(--aisle-ink, #1C1917);
  resize: none;
}

.safety-details::placeholder {
  font-family: Outfit;
  font-weight: 400;
  color: #8A837A;
}

.safety-reasons {
  border-top: 1px solid rgba(28, 25, 23, 0.08);
  margin-top: 8px;
  flex-shrink: 1;
  min-height: 0;
  max-height: 34vh;
  overflow-y: auto;
}

.safety-reason {
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  padding: 12px 2px;
}

.safety-tomato,
.safety-outline {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: Outfit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.safety-tomato {
  margin-top: 14px;
  position: relative;
  isolation: isolate;
  color: #fff;
  border: none;
  background-color: #E23D2F;
  box-shadow: 0 0 0 1px #E23D2F, 0 1px 1px 0 rgba(255, 255, 255, 0.07) inset, 0 2px 3px 0 rgba(34, 42, 53, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.24);
}

.safety-tomato::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.11) 0%, rgba(0, 0, 0, 0) 100%);
}

.safety-tomato:disabled {
  opacity: 0.4;
  cursor: default;
  color: #fff;
}

.safety-outline {
  margin-top: 10px;
  background: transparent;
  color: var(--aisle-ink, #1C1917);
  border: 1.5px solid #1C1917;
}

.safety-error {
  margin: 8px 0 0;
  color: var(--aisle-tomato, #E23D2F);
  font-size: 13px;
  font-weight: 600;
}

.safety-sent-mark {
  width: 56px;
  height: 56px;
  margin: 8px auto 12px;
  border-radius: 50%;
  background: #D7E6D4;
  color: var(--aisle-produce, #1F7A4D);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.safety-sent .safety-title,
.safety-sent .safety-copy {
  text-align: center;
}

.safety-sent .safety-copy {
  margin: 0;
}

.safety-sent .safety-copy + .safety-copy {
  margin-top: 4px;
}

.profile-card > .aisle-header-menu {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #F7F1E6;
  color: #1C1917;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Outfit;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}
