/* RadianONE Support ticket form: notes box with pasted screenshots and files.
   The site theme styles form fields for dark sections; this form sits on a light
   one, so it gets light fields here (ids out-rank the theme's section selector). */
#wrap #sd_form label, #wrap #sd_form .form-label { color: #0a1624 !important; }
#wrap #sd_form .form-control, #wrap #sd_form .form-select {
  background-color: #fff; border: 1px solid #c9d1da; border-radius: 8px; color: #0a1624;
}
#wrap #sd_form .form-control::placeholder { color: #8a96a3; }
#wrap #sd_form .form-control:focus, #wrap #sd_form .form-select:focus {
  background-color: #fff; border-color: #0d71ba; box-shadow: 0 0 0 3px rgba(13, 113, 186, .16); color: #0a1624;
}
#wrap #sd_form .form-select:invalid { color: #8a96a3; }
#wrap #sd_form .form-select option { color: #0a1624; }
#wrap #sd_form .form-text { color: #5b6573; }
#wrap #sd_form .r1-notes .r1-notes-text,
#wrap #sd_form .r1-notes .r1-notes-text:focus {
  display: block; width: 100%; min-height: 170px; padding: 14px 16px; line-height: 1.55; resize: vertical;
  border: 0; border-radius: 10px 10px 0 0; box-shadow: none; background: transparent; color: #0a1624;
}

.o_r1_support_ticket .r1-notes {
  border: 1px solid #ced4da; border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.o_r1_support_ticket .r1-notes:focus-within { border-color: #0d71ba; box-shadow: 0 0 0 3px rgba(13, 113, 186, .16); }
.o_r1_support_ticket .r1-notes.is-drag { border: 1px dashed #0d71ba; background: #f2f7fb; }
.o_r1_support_ticket .r1-tray { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 16px 14px; }
.o_r1_support_ticket .r1-thumb,
.o_r1_support_ticket .r1-file {
  position: relative; height: 88px; border: 1px solid #dde2e8; border-radius: 8px; background: #f5f7f9; overflow: hidden;
}
.o_r1_support_ticket .r1-thumb { width: 124px; }
.o_r1_support_ticket .r1-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.o_r1_support_ticket .r1-cap {
  position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px);
  font-size: 11px; font-weight: 600; line-height: 1.5; color: #fff; background: rgba(10, 22, 36, .82);
  padding: 0 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.o_r1_support_ticket .r1-file {
  display: flex; align-items: center; gap: 10px; padding: 0 34px 0 12px; max-width: 260px; color: #0a1624;
}
.o_r1_support_ticket .r1-file svg { flex: none; color: #0d71ba; }
.o_r1_support_ticket .r1-file-meta { display: flex; flex-direction: column; min-width: 0; }
.o_r1_support_ticket .r1-file-meta b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o_r1_support_ticket .r1-file-meta small { font-size: 12px; color: #5b6573; }
.o_r1_support_ticket .r1-rm {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(10, 22, 36, .82); color: #fff;
  font-size: 15px; line-height: 22px; text-align: center; cursor: pointer;
}
.o_r1_support_ticket .r1-rm:hover, .o_r1_support_ticket .r1-rm:focus-visible { background: #eb6225; outline: none; }

.o_r1_support_ticket .r1-notes-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 9px 12px;
  border-top: 1px solid #eceff3; background: #f8f9fb; border-radius: 0 0 10px 10px;
  font-size: 13.5px; color: #5b6573;
}
.o_r1_support_ticket .r1-attach {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border: 1px solid #cfd6de; border-radius: 7px; background: #fff; color: #0a1624; font-weight: 600; cursor: pointer;
}
.o_r1_support_ticket .r1-attach:hover { border-color: #0d71ba; color: #0d71ba; }
.o_r1_support_ticket .r1-attach:focus-visible { outline: 2px solid #0d71ba; outline-offset: 2px; }
.o_r1_support_ticket .r1-hint kbd {
  font: 600 11.5px/1 system-ui, sans-serif; color: #0a1624; background: #fff;
  border: 1px solid #cfd6de; border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px;
}
.o_r1_support_ticket .r1-count { margin-left: auto; font-weight: 600; color: #0a1624; }
.o_r1_support_ticket .r1-msg { margin-top: 8px; font-size: 14px; color: #b42318; }

/* With the script running, the attach button replaces the plain file field. */
.o_r1_support_ticket .r1-enhanced .r1-files-fallback { display: none; }

.r1-lightbox {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(6, 12, 20, .88); cursor: zoom-out;
}
.r1-lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }

@media (max-width: 575px) {
  .o_r1_support_ticket .r1-thumb { width: calc(50% - 5px); }
  .o_r1_support_ticket .r1-file { max-width: 100%; width: 100%; }
  .o_r1_support_ticket .r1-hint { display: none; }
}

/* Empty state: a clear paste target under the text. */
.o_r1_support_ticket .r1-pastezone {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 0 16px 14px;
  padding: 12px 14px; border: 1.5px dashed #b9c4d0; border-radius: 9px; background: #f6f9fc;
  color: #33424e; font-size: 14px; text-align: left; cursor: text;
}
.o_r1_support_ticket .r1-pastezone[hidden] { display: none; }
.o_r1_support_ticket .r1-pastezone svg { flex: none; color: #0d71ba; }
.o_r1_support_ticket .r1-pastezone b { color: #0a1624; font-weight: 600; }
.o_r1_support_ticket .r1-notes:focus-within .r1-pastezone { border-color: #0d71ba; background: #eef5fb; }
.o_r1_support_ticket .r1-notes.is-drag .r1-pastezone { border-color: #0d71ba; background: #e4f0fa; }
.o_r1_support_ticket kbd {
  font: 600 11.5px/1 system-ui, sans-serif; color: #0a1624; background: #fff;
  border: 1px solid #cfd6de; border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px;
}
.o_r1_support_ticket .r1-msg.good { color: #1a7f4b; }
.o_r1_support_ticket .r1-newtopic[hidden] { display: none; }
@media (max-width: 575px) {
  .o_r1_support_ticket .r1-pastezone { font-size: 13px; }
}

/* Ticket URL: shown but not typed into; filled after submit. */
#wrap #sd_form .r1-readonly,
#wrap #sd_form .r1-readonly:focus { background-color: #f1f3f6; border-style: dashed; color: #5b6573; box-shadow: none; cursor: default; }
#wrap #sd_ticket_box .form-control { background-color: #fff; border: 1px solid #c9d1da; color: #0a1624; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
#wrap #sd_ticket_box label { color: #0a1624 !important; }
#wrap #sd_ticket_box .form-text { color: #5b6573; }
#wrap #sd_ticket_box #sd_copy_url { color: #0d71ba; border-color: #0d71ba; background: #fff; font-weight: 600; }
#wrap #sd_ticket_box #sd_copy_url:hover, #wrap #sd_ticket_box #sd_copy_url:focus-visible { color: #fff; background: #0d71ba; }
