/* Loaded last in the V2 shell: shared across classic forms and character dialogs. */
body[data-mu-preview] :is(.mu-captcha-control, #index_content .sc-page .mu-captcha-control, #modal-popup .mu-captcha-control) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 152px;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
}
body[data-mu-preview] :is(.mu-captcha-control, #index_content .sc-page .mu-captcha-control, #modal-popup .mu-captcha-control) > input.mu-captcha-input {
  position: static !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #806b49 !important;
  border-radius: 6px !important;
  background: #10171b !important;
  color: #f6f1e8 !important;
  font: 600 16px/1.4 Manrope, 'Be Vietnam Pro', sans-serif !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: none !important;
}
body[data-mu-preview] :is(.mu-captcha-control, #index_content .sc-page .mu-captcha-control, #modal-popup .mu-captcha-control) > input.mu-captcha-input::placeholder {
  color: #a9aaa6 !important;
  font-size: 14px !important;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}
body[data-mu-preview] :is(.mu-captcha-control, #index_content .sc-page .mu-captcha-control, #modal-popup .mu-captcha-control) > input.mu-captcha-input:focus {
  outline: none !important;
  border-color: #e7c78d !important;
  box-shadow: 0 0 0 2px rgb(231 199 141 / 14%) !important;
}
body[data-mu-preview] :is(.mu-captcha-control, #index_content .sc-page .mu-captcha-control, #modal-popup .mu-captcha-control) > input.mu-captcha-input:is(.is-invalid,[aria-invalid="true"]) {
  border-color: #e59489 !important;
}
body[data-mu-preview] :is(.mu-captcha-control, #index_content .sc-page .mu-captcha-control, #modal-popup .mu-captcha-control) > .mu-captcha-image-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  box-sizing: border-box !important;
  width: 152px !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 1px !important;
  margin: 0 !important;
  border: 1px solid #806b49 !important;
  border-radius: 6px !important;
  background: #1b2227 !important;
  color: #e7c78d !important;
  box-shadow: none !important;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
}
body[data-mu-preview] :is(.mu-captcha-control, #index_content .sc-page .mu-captcha-control, #modal-popup .mu-captcha-control) > .mu-captcha-image-button:is(:hover,:focus-visible) {
  border-color: #e7c78d !important;
  outline: 2px solid rgb(231 199 141 / 18%);
  outline-offset: 2px;
}
body[data-mu-preview] :is(.mu-captcha-control, #index_content .sc-page .mu-captcha-control, #modal-popup .mu-captcha-control) .mu-captcha-image-button > img.captcha_img {
  position: static !important;
  display: block !important;
  flex: 0 0 120px !important;
  width: 120px !important;
  min-width: 0 !important;
  max-width: 120px !important;
  height: 44px !important;
  min-height: 0 !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px 0 0 4px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: none !important;
}
body[data-mu-preview] .mu-captcha-reload {
  display: grid;
  place-items: center;
  flex: 1 0 26px;
  height: 26px;
  border-left: 1px solid rgb(231 199 141 / 20%);
}
body[data-mu-preview] .mu-captcha-reload svg { width: 16px; height: 16px; }
body[data-mu-preview] .mu-captcha-image-button[aria-busy="true"] { opacity: .6; cursor: wait; }
body[data-mu-preview] .mu-captcha-image-button.mu-captcha-error { border-color: #e59489 !important; }
body[data-mu-preview] .mu-captcha-column { flex: 1 1 auto !important; width: auto !important; max-width: 100% !important; min-width: 0; }
body[data-mu-preview] .mu-captcha-group { display: block !important; }
body[data-mu-preview] .mu-captcha-group > .input-group-prepend { margin-bottom: 6px; }
/* On narrow character forms give the input and image a full row, never overlay them. */
@media (max-width: 620px) and (orientation: portrait) {
  body[data-mu-preview] #index_content .sc-page .sc-row:has(.mu-captcha-control) { flex-direction: column !important; }
}
@container (max-width: 250px) {
  body[data-mu-preview] :is(.mu-captcha-control, #index_content .sc-page .mu-captcha-control, #modal-popup .mu-captcha-control) > input.mu-captcha-input { grid-column: 1 / -1; }
  body[data-mu-preview] :is(.mu-captcha-control, #index_content .sc-page .mu-captcha-control, #modal-popup .mu-captcha-control) > .mu-captcha-image-button { grid-column: 1 / -1; }
}
