.quick-reply-desk-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  margin: 4px 8px 0;
  padding: 9px 12px;
  background: #202637;
  color: var(--text);
  border: 1px solid #39465b;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.quick-reply-desk-entry[hidden] { display: none; }
.quick-reply-desk-entry:hover { border-color: #6983aa; }
.quick-reply-desk-entry:focus-visible { outline: 2px solid #8cb8ff; outline-offset: 2px; }
.quick-reply-desk-entry[data-pending] { background: #3d2c15; color: #ffdfab; border-color: #9c6824; }
.quick-reply-desk-entry[data-pending]:hover { border-color: #fcc871; }
.admin-nav .quick-reply-desk-entry { width: 100%; margin: 0; }

#quickReplyDeskAlertHost { flex: none; }
.quick-reply-desk-alert {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 10px auto;
  padding: 9px 12px;
  background: #3d2c15;
  color: #ffedce;
  border: 1px solid #c5893e;
  border-radius: 10px;
  font-size: 14px;
}

.quick-reply-desk-alert[hidden] { display: none; }
.quick-reply-desk-alert strong { overflow-wrap: anywhere; }
.quick-reply-desk-alert button {
  flex-shrink: 0;
  padding: 7px 11px;
  border: 1px solid #efbc67;
  border-radius: 6px;
  background: #efbc67;
  color: #2b1d0c;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.quick-reply-desk-alert button:hover { background: #ffcf81; }

#quickReplyDeskBadge {
  padding: 3px 8px;
  background: #263e34;
  color: #d2f9df;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.quick-reply-desk-entry[data-pending] #quickReplyDeskBadge { background: #efbc67; color: #2b1d0c; }

.quick-reply-desk-dialog {
  width: min(600px, calc(100vw - 24px));
  max-height: 85vh;
  padding: 20px;
  overflow: auto;
  color: var(--text, #e8eaed);
  background: var(--panel, #171a21);
  border: 1px solid var(--line, #2a2f3a);
  border-radius: 12px;
}

.quick-reply-desk-dialog::backdrop { background: #0009; }
.quick-reply-desk-dialog header, .quick-reply-desk-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.quick-reply-desk-dialog header { justify-content: space-between; }
.quick-reply-desk-dialog h2 { margin: 0; font-size: 20px; }
.quick-reply-desk-dialog h3 { margin: 0; font-size: 16px; }
.quick-reply-desk-dialog p { margin: 8px 0; font-size: 13px; line-height: 1.45; color: #bbc8d8; }
.quick-reply-desk-dialog button { padding: 7px 10px; border: 1px solid #425474; border-radius: 6px; background: #243147; color: #dbe8f8; font: inherit; cursor: pointer; }
.quick-reply-desk-dialog button:disabled { opacity: .55; cursor: default; }
.quick-reply-desk-dialog :focus-visible, .quick-reply-desk-alert button:focus-visible { outline: 2px solid #8cb8ff; outline-offset: 2px; }
.quick-reply-desk-dialog article { display: grid; gap: 7px; padding: 14px 0; border-top: 1px solid var(--line, #2a2f3a); overflow-wrap: anywhere; }
.quick-reply-desk-dialog #quickReplyDeskSummary { margin: 14px 0 6px; font-weight: 650; }
.quick-reply-desk-dialog #quickReplyDeskFeedback[data-error] { color: #ffb4a8; }

.quick-reply-desk-request-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 5px 12px;
}

.quick-reply-desk-state {
  padding: 3px 8px;
  border-radius: 7px;
  background: #403015;
  color: #ffd99b;
  white-space: nowrap;
  font-size: 12px;
}

.quick-reply-desk-state[data-approved] { background: #1f4234; color: #b9efcc; }
.quick-reply-desk-dialog .quick-reply-desk-request-detail { margin: 0; }
.quick-reply-desk-dialog [data-quick-reply-action="approve"] { background: #13634a; color: #fff; border-color: #2c866b; }
.quick-reply-desk-payment { display: flex; align-items: center; gap: 8px; min-height: 32px; width: fit-content; font-size: 14px; cursor: pointer; }
.quick-reply-desk-payment input { width: 17px; height: 17px; margin: 0; accent-color: #52b788; }

.quick-reply-desk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
