/* Gopher batch buy widget — load from quote.superdroidrobots.com/script/batch-buy.js */

.gopher-batch-widget {
  max-width: 520px;
  margin: 0 auto 24px;
  padding: 18px 20px;
  border: 1px solid var(--highlight-color, #06f);
  border-radius: 10px;
  background: var(--card-bg, #111);
  text-align: left;
}

.gopher-batch-widget h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--highlight-color, #06f);
}

.gopher-batch-track {
  margin-bottom: 16px;
}

.gopher-batch-track-label {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.gopher-batch-track-label--pct {
  justify-content: flex-end;
}

.gopher-batch-pct-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-color, #fff);
}

.gopher-batch-test-tag {
  font-size: 0.65em;
  font-weight: 400;
  opacity: 0.7;
}

.gopher-batch-widget-note {
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0;
  line-height: 1.45;
}

.gopher-batch-bar-wrap {
  position: relative;
  padding-top: 18px;
  margin-bottom: 2px;
}

.gopher-batch-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.gopher-batch-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--highlight-color, #06f);
  transition: width 0.35s ease;
}

.gopher-batch-marker {
  position: absolute;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: #fff;
  opacity: 0.9;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.gopher-batch-marker::after {
  content: attr(data-label);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  white-space: nowrap;
  opacity: 0.9;
  color: var(--text-color, #fff);
}

.gopher-batch-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.gopher-batch-price .msrp {
  text-decoration: line-through;
  opacity: 0.55;
  font-size: 1.1rem;
}

.gopher-batch-price .sale {
  font-size: 2rem;
  font-weight: 700;
}

.gopher-batch-buy,
.gopher-batch-waitlist-btn {
  width: 100%;
}

.gopher-batch-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
}

.gopher-batch-overlay.is-open {
  display: flex;
}

.gopher-batch-dialog {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.gopher-batch-dialog h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.gopher-batch-dialog > p {
  margin: 0 0 16px;
  opacity: 0.9;
  line-height: 1.45;
}

.gopher-batch-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.gopher-batch-form .form-field {
  margin-bottom: 12px;
}

.gopher-batch-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.gopher-batch-form input,
.gopher-batch-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  font-size: 16px; /* >=16px prevents iOS Safari auto-zoom on focus */
  color: #fff;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}

.gopher-batch-form input:focus,
.gopher-batch-form select:focus {
  outline: none;
  border-color: var(--highlight-color, #06f);
}

.gopher-batch-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* keep the open <select> list readable on systems with a light popup */
.gopher-batch-form select option {
  color: #111;
  background: #fff;
}

/* normalize browser autofill so fields don't flash light blue/white */
.gopher-batch-form input:-webkit-autofill,
.gopher-batch-form input:-webkit-autofill:hover,
.gopher-batch-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #161616 inset;
  box-shadow: 0 0 0 1000px #161616 inset;
  caret-color: #fff;
  transition: background-color 9999s ease-out 0s;
}

.gopher-batch-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gopher-batch-card-label {
  display: block;
  font-size: 0.85rem;
  margin: 16px 0 4px;
}

.gopher-batch-card-wrap {
  margin: 0 0 4px;
  padding: 12px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.gopher-batch-card-hint {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.gopher-batch-card-hint.is-error {
  opacity: 1;
  color: #ff8a8a;
}

.gopher-batch-status {
  margin-top: 10px;
  font-size: 0.9rem;
}

.gopher-batch-status.is-error {
  color: #ff8a8a;
}

.gopher-batch-legal {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 12px;
  line-height: 1.4;
}

.gopher-batch-waitlist-form .form-field {
  margin-bottom: 10px;
}

.gopher-batch-waitlist-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

@media (max-width: 480px) {
  .gopher-batch-overlay {
    padding: 10px;
  }

  .gopher-batch-dialog {
    padding: 16px;
    max-height: 94vh;
  }
}
