body.eat-support-open { overflow: hidden; }

.eat-support-backdrop {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(8, 33, 29, .48);
  backdrop-filter: blur(5px);
}

.eat-support-backdrop.hidden { display: none; }

.eat-support-sheet {
  width: min(680px, 100%);
  max-height: min(860px, calc(100dvh - 36px));
  margin: 0 auto;
  overflow: auto;
  border: 1px solid rgba(0, 166, 147, .2);
  border-radius: 28px;
  color: var(--rider-ink);
  background: #fff;
  box-shadow: 0 30px 80px rgba(7, 45, 39, .24);
}

.eat-support-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--rider-line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.eat-support-header h2,
.eat-support-intro h3,
.eat-support-status h3,
.eat-support-chat h3 { margin: 0; }

.eat-support-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--rider-ink);
  background: var(--rider-mint);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.eat-support-close:focus-visible,
.eat-support-item select:focus-visible,
.eat-support-reply textarea:focus-visible {
  outline: 3px solid rgba(0, 166, 147, .28);
  outline-offset: 3px;
}

.eat-support-content { display: grid; gap: 18px; padding: 22px; }
.eat-support-intro,
.eat-support-status { display: grid; gap: 10px; }
.eat-support-intro p,
.eat-support-status p { margin: 0; color: var(--rider-muted); line-height: 1.55; }

.eat-support-deadline {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #087366 !important;
  background: var(--rider-mint);
  font-size: 13px;
  font-weight: 750;
}

.eat-support-items { display: grid; gap: 10px; }

.eat-support-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid var(--rider-line);
  border-radius: 18px;
  background: #fbfefd;
}

.eat-support-item strong,
.eat-support-item small { display: block; }
.eat-support-item small { margin-top: 4px; color: var(--rider-muted); }

.eat-support-item select {
  min-width: 72px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rider-line);
  border-radius: 12px;
  color: var(--rider-ink);
  background: #fff;
  font: inherit;
  font-weight: 750;
}

.eat-support-review {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rider-line);
  border-radius: 18px;
  list-style: none;
  overflow: hidden;
}

.eat-support-review li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  background: #fbfefd;
}

.eat-support-review li + li { border-top: 1px solid var(--rider-line); }
.eat-support-actions { display: flex; justify-content: flex-end; gap: 10px; }
.eat-support-amount { color: var(--rider-green); font-size: 24px; }

.eat-support-chat {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--rider-line);
}

.eat-support-chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eat-support-chat-heading span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--rider-green);
  background: var(--rider-mint);
  font-size: 12px;
  font-weight: 750;
}

.eat-support-thread { display: grid; gap: 10px; max-height: 300px; overflow: auto; }

.eat-support-message {
  width: min(86%, 440px);
  padding: 11px 13px;
  border-radius: 16px;
  background: #f3f6f5;
}

.eat-support-message.from-user { margin-left: auto; color: #fff; background: var(--rider-green); }
.eat-support-message strong,
.eat-support-message time { display: block; font-size: 11px; }
.eat-support-message p { margin: 4px 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.eat-support-message time { opacity: .72; }

.eat-support-reply { display: grid; gap: 8px; }
.eat-support-reply label { font-size: 13px; font-weight: 750; }
.eat-support-reply-error {
  margin: 0;
  color: #a12b21;
  font-size: 13px;
  font-weight: 700;
}
.eat-support-reply textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--rider-line);
  border-radius: 14px;
  color: var(--rider-ink);
  background: #fff;
  font: inherit;
}

@media (min-width: 720px) {
  .eat-support-backdrop { align-items: center; }
}

@media (max-width: 560px) {
  .eat-support-backdrop { padding: 0; }
  .eat-support-sheet { max-height: 100dvh; border-radius: 24px 24px 0 0; }
  .eat-support-header,
  .eat-support-content { padding-right: 18px; padding-left: 18px; }
  .eat-support-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .eat-support-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .eat-support-backdrop { backdrop-filter: none; }
}
