/* Applied only to controls injected into QSM results; no global theme overrides. */
.bobnoblog-qsm-actions {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 28px auto 16px;
  padding: 0 12px;
  box-sizing: border-box;
  text-align: center;
  clear: both;
}
.bobnoblog-qsm-actions > .bobnoblog-qsm-retry,
.bobnoblog-qsm-actions > form.bobnoblog-qsm-retry-form > .bobnoblog-qsm-retry,
.bobnoblog-qsm-actions > .bobnoblog-qsm-share {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-sizing: border-box;
  float: none !important;
  position: static !important;
  margin: 0 !important;
  min-height: 46px;
  width: auto !important;
  max-width: 100%;
  padding: 11px 18px !important;
  border-radius: 12px !important;
  border: 1px solid #494949 !important;
  background: #303030 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: inherit;
  line-height: 1.4 !important;
  text-decoration: none !important;
  cursor: pointer;
  white-space: normal;
  box-shadow: none;
  transform: none;
}
.bobnoblog-qsm-actions > .bobnoblog-qsm-share {
  border-color: #6653cf !important;
  background: #6653cf !important;
}
.bobnoblog-qsm-actions > .bobnoblog-qsm-retry:hover,
.bobnoblog-qsm-actions > form.bobnoblog-qsm-retry-form > .bobnoblog-qsm-retry:hover,
.bobnoblog-qsm-actions > form.bobnoblog-qsm-retry-form > .bobnoblog-qsm-retry:focus-visible,
.bobnoblog-qsm-actions > .bobnoblog-qsm-retry:focus-visible {
  background: #444 !important;
}
.bobnoblog-qsm-actions > .bobnoblog-qsm-share:hover,
.bobnoblog-qsm-actions > .bobnoblog-qsm-share:focus-visible {
  background: #5846be !important;
}
.bobnoblog-qsm-actions > :focus-visible {
  outline: 3px solid #b5abff !important;
  outline-offset: 3px;
}
.bobnoblog-qsm-actions > .bobnoblog-qsm-share[disabled] {
  opacity: .65;
  cursor: progress;
}
.bobnoblog-qsm-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.bobnoblog-qsm-share-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: inherit;
  opacity: .82;
  text-align: center;
}
.bobnoblog-qsm-share-status:empty { display: none; }
@media (max-width: 420px) {
  .bobnoblog-qsm-actions { gap: 8px; padding: 0 6px; }
  .bobnoblog-qsm-actions > .bobnoblog-qsm-retry,
  .bobnoblog-qsm-actions > form.bobnoblog-qsm-retry-form > .bobnoblog-qsm-retry,
  .bobnoblog-qsm-actions > .bobnoblog-qsm-share {
    font-size: 13px !important;
    padding: 10px 12px !important;
  }
}

/* Override older snippets that centered the QSM retake link as a block. */
body .qmn_results_page .bobnoblog-qsm-actions > .bobnoblog-qsm-retry,
body .qsm-results-page .bobnoblog-qsm-actions > .bobnoblog-qsm-retry {
  display: inline-flex !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

/* v1.0.1: keep the relocated retry control beside the share button. */
.bobnoblog-qsm-actions > a.bobnoblog-qsm-retry,
.bobnoblog-qsm-actions > button.bobnoblog-qsm-retry,
.bobnoblog-qsm-actions > input.bobnoblog-qsm-retry {
  flex: 0 0 auto !important;
  text-align: center !important;
  vertical-align: middle !important;
}
.bobnoblog-qsm-actions > .bobnoblog-qsm-share { flex: 0 0 auto !important; }

/* v1.0.2: QSM submits the retake button as a complete POST form. */
.bobnoblog-qsm-actions > form.bobnoblog-qsm-retry-form {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  float: none !important;
  position: static !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.bobnoblog-qsm-actions > form.bobnoblog-qsm-retry-form > .bobnoblog-qsm-retry {
  flex: 0 0 auto !important;
}
/* Only for the safe fallback. The original button stays submit-capable. */
.bobnoblog-qsm-retry-source-hidden,
form.bobnoblog-qsm-retry-source-form-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
