/* Gold / Silver switch on sell-gold.html. Gold shows by default, including with JavaScript off. */
html:not([data-sell-metal="silver"]) [data-metal="silver"],
html[data-sell-metal="silver"] [data-metal="gold"] {
  display: none !important;
}

.hog-metal-switch {
  display: inline-flex;
  gap: 4px;
  margin: 16px 0 14px;
  padding: 4px;
  border: 1px solid rgba(226, 191, 127, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
}

.hog-metal-switch button {
  min-width: 118px;
  min-height: 46px;
  padding: .55rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hog-metal-switch button:hover {
  background: rgba(255, 255, 255, .12);
}

.hog-metal-switch button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.hog-metal-switch button[data-metal-choice="gold"][aria-pressed="true"] {
  background: var(--hog-gold-lt, #e2bf7f);
  color: #17130f;
}

.hog-metal-switch button[data-metal-choice="silver"][aria-pressed="true"] {
  background: linear-gradient(135deg, #f1f3f5, #bcc2ca);
  color: #17130f;
}

@media (max-width: 480px) {
  .hog-metal-switch {
    display: flex;
  }

  .hog-metal-switch button {
    flex: 1;
    min-width: 0;
  }
}
