.shop-form .shop-purchase-mode[hidden] { display: none; }

.shop-form .shop-purchase-mode {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.shop-purchase-mode legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--site-muted);
  font-size: 13px;
  font-weight: 800;
}

.shop-purchase-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: var(--site-green-soft);
}

.shop-form .shop-purchase-mode-option { position: relative; }

.shop-form .shop-purchase-mode-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shop-form .shop-purchase-mode-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 49px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--site-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

.shop-purchase-mode-option:hover input:not(:checked) + span { background: var(--site-paper); }

.shop-form .shop-purchase-mode-option input:checked + span {
  border-color: #b78916;
  color: #1f211b;
  background: var(--site-gold);
}

.shop-purchase-mode-option i {
  flex: 0 0 15px;
  height: 15px;
  border: 1.5px solid var(--site-green-dark);
  border-radius: 50%;
}

.shop-purchase-mode-option input:checked + span i {
  border-color: currentColor;
  background: currentColor;
  box-shadow: inset 0 0 0 3px var(--site-gold);
}

.shop-purchase-mode-option input:focus-visible + span {
  outline: 2px solid var(--site-ink);
  outline-offset: -2px;
}

#shop-gift-description {
  margin: 8px 0 0;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.4;
}
