/* Browser-local draft feedback; this component does not imply cloud sync.
   UX reference: https://www.limesurvey.org/manual/Partial_(saved)_responses */
.recovery-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 16px 19px;
  border: 1px solid #d8dfeb;
  border-left: 4px solid #7545ff;
  border-radius: 9px;
  background: #f7f4fd;
  color: #4d386c;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.recovery-status[hidden] { display: none !important; }
.recovery-status.saved {
  border-color: #cee3d6;
  border-left-color: #29815c;
  background: #eff8f2;
  color: #286344;
}
.recovery-status.pending {
  border-color: #ead2af;
  border-left-color: #df791e;
  background: #fff6e8;
  color: #80501c;
}
.recovery-status-copy { flex: 1 1 280px; min-width: 0; }
.recovery-status-copy > div { min-width: 0; }
.recovery-status strong { color: inherit; font-size: 15px; font-weight: 600; line-height: 1.6; }
.recovery-status :is(p, small, time) { color: inherit; font-size: 15px; line-height: 1.65; }
.recovery-status p { margin: 4px 0 0; }
.recovery-status .icon { width: 19px; height: 19px; color: inherit; flex-shrink: 0; vertical-align: middle; }
.recovery-status > .icon { align-self: flex-start; margin-top: 3px; }
.recovery-status-copy > .icon { margin-right: 7px; }
.recovery-status-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.recovery-status-actions:empty { display: none; }
#draft-save-status [data-action="retry-draft"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #c6b1e8;
  border-radius: 7px;
  background: #fff;
  color: #6332bd;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
#draft-save-status [data-action="retry-draft"]:hover { border-color: #aa89df; background: #f5f0ff; color: #5427a5; }
#draft-save-status [data-action="retry-draft"]:focus-visible { outline: 3px solid #7545ff; outline-offset: 3px; }
#draft-save-status [data-action="retry-draft"]:disabled { background: #f1f3f7; border-color: #d8dfeb; color: #778399; opacity: 1; cursor: not-allowed; }

@media (max-width: 680px) {
  .recovery-status { gap: 12px; padding: 15px 16px; margin-bottom: 20px; align-items: flex-start; }
  .recovery-status-copy { flex-basis: 100%; }
  .recovery-status :is(strong, p, small, time) { font-size: 15px; }
}
@media (max-width: 480px) {
  .recovery-status { padding: 14px; }
  .recovery-status-actions { width: 100%; }
  #draft-save-status [data-action="retry-draft"] { flex: 1 1 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .recovery-status,
  .recovery-status * { transition: none; animation: none; }
}
