/* ReInk: from designer-preview/css/feedback-tab.css @ 827d893 (oldDesigner-redesign). Everything below this line is that file,
   unchanged. When the prototype changes it, carry the change across: docs/syncing.md. */
/*
	designer-preview/css/feedback-tab.css

	The Feedback tab on the right edge of the window (js/feedback-tab.js), as on sterling.ca, and the
	form it opens. The tab sits under the preview's menu; the form above it, under the tips and the tour.
*/
.smFeedbackTab { position: fixed; z-index: 990; right: 0; top: 50%;   /* under the preview's own menu (1000): the tab is never in the way of it */ margin: 0; padding: 14px 7px 14px 9px; border: 0; border-radius: 0 7px 7px 0;
  background: var(--sm-red, rgb(234 0 41)); color: rgb(255 255 255); font: 700 13px/1 Arial, Helvetica, sans-serif; letter-spacing: 0.02em; cursor: pointer;
  transform: translateY(-50%) rotate(180deg); box-shadow: 0 2px 8px rgb(16 24 40 / 0.22); }   /* right: js/feedback-tab.js sets it to the workspace scrollbar's width when there is one */
.smFeedbackTab[hidden] { display: none; }
.smFeedbackTabLabel { display: block; writing-mode: vertical-rl; }
.smFeedbackTab:hover { background: rgb(205 0 36); }
.smFeedbackTab:focus-visible { outline: 2px solid rgb(255 255 255); outline-offset: -4px; }
html.sm-feedback-open .smFeedbackTab { display: none; }
.smFeedbackPanel { position: fixed; z-index: 1100; right: 16px; top: 50%; transform: translateY(-50%); box-sizing: border-box; width: 340px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px);
  overflow: auto; margin: 0; padding: 18px 20px 16px; border-radius: 12px; background: rgb(255 255 255); color: var(--sp-ink-2, rgb(31 28 28));
  font: 14px/20px Arial, Helvetica, sans-serif; box-shadow: 0 0 0 1px rgb(16 24 40 / 0.08), 0 16px 48px rgb(16 24 40 / 0.26); }
.smFeedbackPanel[hidden] { display: none; }
.smFeedbackHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.smFeedbackTitle { margin: 0 0 4px; font: 700 18px/24px Arial, Helvetica, sans-serif; color: var(--sp-ink, rgb(4 0 0)); }
.smFeedbackClose { flex: none; width: 32px; height: 32px; margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--sp-ink-3, rgb(84 87 92)); cursor: pointer; }
.smFeedbackClose svg { display: block; width: 20px; height: 20px; margin: 6px; }
.smFeedbackClose:hover { background: rgb(16 24 40 / 0.06); color: var(--sp-ink, rgb(4 0 0)); }
.smFeedbackClose:focus-visible, .smFeedbackStar input:focus-visible + .smFeedbackStarFace, .smFeedbackPanel textarea:focus-visible, .smFeedbackPanel input[type=email]:focus-visible { outline: 2px solid var(--sm-focus, rgb(4 0 0)); outline-offset: 2px; }
.smFeedbackLead { margin: 0 0 10px; }
.smFeedbackRating { display: flex; gap: 6px; }
.smFeedbackStar { position: relative; flex: 1 1 0; margin: 0; }
.smFeedbackStar input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.smFeedbackStarFace { display: block; height: 40px; border-radius: 8px; border: 1px solid var(--sp-line, rgb(218 220 224)); background: rgb(255 255 255); text-align: center; font: 700 15px/40px Arial, Helvetica, sans-serif; color: var(--sp-ink-2, rgb(31 28 28)); cursor: pointer; }
.smFeedbackStar:hover .smFeedbackStarFace { border-color: var(--sm-red, rgb(234 0 41)); color: var(--sm-red, rgb(234 0 41)); }
.smFeedbackStar input:checked + .smFeedbackStarFace { background: var(--sm-red, rgb(234 0 41)); border-color: var(--sm-red, rgb(234 0 41)); color: rgb(255 255 255); }
.smFeedbackEnds { display: flex; justify-content: space-between; margin: 4px 2px 12px; font-size: 12px; line-height: 16px; color: var(--sp-ink-3, rgb(84 87 92)); }
.smFeedbackLabel { display: block; margin: 10px 0 4px; font-weight: 700; font-size: 13px; }
.smFeedbackPanel textarea, .smFeedbackPanel input[type=email] { display: block; box-sizing: border-box; width: 100%; margin: 0; padding: 8px 10px; border: 1px solid var(--sp-line, rgb(218 220 224)); border-radius: 8px;
  background: rgb(255 255 255); color: var(--sp-ink, rgb(4 0 0)); font: 14px/20px Arial, Helvetica, sans-serif; resize: vertical; }
.smFeedbackActions { display: flex; gap: 8px; margin-top: 14px; }
.smFeedbackActions .mui-btn { flex: 1 1 0; margin: 0; }
.smFeedbackSend[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.smFeedbackStatus { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--sp-ink-3, rgb(84 87 92)); }
.smFeedbackStatus:empty { margin: 0; min-height: 0; }
@media (max-width: 700px) {
  .smFeedbackTab { top: auto; bottom: 46%; transform: rotate(180deg); }
  .smFeedbackPanel { top: auto; right: 8px; bottom: 8px; left: 8px; width: auto; max-width: none; max-height: calc(100vh - 16px); transform: none; }
}
@media (forced-colors: active) { .smFeedbackTab, .smFeedbackStar input:checked + .smFeedbackStarFace { forced-color-adjust: none; background: Highlight; color: HighlightText; } .smFeedbackPanel { border: 1px solid CanvasText; } }
