/* Optional items: native selection behavior with circular add/remove icons. */
#extras-fieldset .addon-choice {
  min-height: 48px;
  column-gap: 12px;
  cursor: pointer;
}

#extras-fieldset .addon-choice > input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: inline-block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(35, 54, 48, .22);
  border-radius: 50%;
  background-color: #f7f3eb;
  background-image: linear-gradient(#233630, #233630), linear-gradient(#233630, #233630);
  background-position: center, center;
  background-size: 14px 2px, 2px 14px;
  background-repeat: no-repeat;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .09);
  vertical-align: middle;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

/* A minus indicates that tapping again removes the selected item. */
#extras-fieldset .addon-choice > input[type="checkbox"]:checked {
  background-color: #d9b68e;
  border-color: #d9b68e;
  background-image: linear-gradient(#233630, #233630);
  background-position: center;
  background-size: 14px 2px;
  box-shadow: 0 0 0 3px rgba(217, 182, 142, .19);
}

#extras-fieldset .addon-choice > input[type="checkbox"]:focus-visible {
  outline: 3px solid #d9b68e;
  outline-offset: 4px;
}

#extras-fieldset .addon-choice > input[type="checkbox"]:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  #extras-fieldset .addon-choice:hover > input[type="checkbox"]:not(:disabled) {
    border-color: #d9b68e;
    box-shadow: 0 0 0 4px rgba(217, 182, 142, .2);
  }
}

#extras-fieldset .addon-choice > input[type="checkbox"]:active:not(:disabled) {
  transform: scale(.94);
}

@media (prefers-reduced-motion: reduce) {
  #extras-fieldset .addon-choice > input[type="checkbox"] {
    transition: none;
  }
}

/* Preserve clearly recognizable native controls in high-contrast modes. */
@media (forced-colors: active) {
  #extras-fieldset .addon-choice > input[type="checkbox"],
  #extras-fieldset .addon-choice > input[type="checkbox"]:checked {
    -webkit-appearance: auto;
    appearance: auto;
    background: none;
    border: revert;
    box-shadow: none;
  }
}
