/* PID: product option dropdowns - rounded, cleaner boxes (zz_pid_product_options_ui.ocmod.xml).
   Same dropdowns, same layout; only the look of the box changes. */
html body .product-info .product-options .form-group.product-option-select select.form-control {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  height: auto !important;
  min-height: 46px !important;
  align-self: center !important;
  margin-left: 14px !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 11px 44px 11px 16px !important;
  border: 1.5px solid #d5d9de !important;
  border-radius: 6px !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' fill='none' stroke='%235b6573' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px 18px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06) !important;
  color: #1f2a37 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease !important;
}
html body .product-info .product-options .form-group.product-option-select select.form-control::-ms-expand {
  display: none !important;
}
html body .product-info .product-options .form-group.product-option-select select.form-control:hover {
  border-color: #aab2bc !important;
}
html body .product-info .product-options .form-group.product-option-select select.form-control:focus {
  outline: none !important;
  border-color: #f39200 !important;
  box-shadow: 0 0 0 4px rgba(243, 146, 0, .18) !important;
}
/* nothing chosen yet: softer text */
html body .product-info .product-options .form-group.product-option-select select.form-control:has(option[value=""]:checked) {
  color: #6b7480 !important;
  font-weight: 400 !important;
}
/* a choice made: orange edge so it reads as "picked" (no background tint - Windows paints the open list with it) */
html body .product-info .product-options .form-group.product-option-select select.form-control:not(:has(option[value=""]:checked)) {
  border-color: #f39200 !important;
}
html body .product-info .product-options .form-group.product-option-select select.form-control option {
  background-color: #fff !important;
  color: #1f2a37 !important;
  font-weight: 400 !important;
}
html body .product-info .product-options .form-group.has-error select.form-control {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 4px rgba(217, 48, 37, .12) !important;
}
html body .product-info .product-options .form-group.product-option-select .control-label {
  font-weight: 600 !important;
}
@media (max-width: 760px) {
  /* 16px stops iOS zooming into the page when the dropdown is tapped */
  html body .product-info .product-options .form-group.product-option-select select.form-control {
    font-size: 16px !important;
    min-height: 48px !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    margin-left: 0 !important;
  }
}

/* desktop: the list that drops down, drawn to match the box (pid_product_options.js) */
.pid-dd-panel {
  position: absolute;
  z-index: 10050;
  box-sizing: border-box;
  max-height: 340px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1.5px solid #d5d9de;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .06);
  font-size: 14px;
  line-height: 1.35;
  color: #1f2a37;
}
.pid-dd-panel li {
  padding: 9px 12px;
  border-radius: 4px;
  cursor: pointer;
  white-space: normal;
}
.pid-dd-panel li.is-placeholder {
  color: #6b7480;
}
.pid-dd-panel li.is-hover {
  background: #f3f5f7;
}
.pid-dd-panel li.is-selected:not(.is-placeholder) {
  color: #b86e00;
  font-weight: 600;
  background: #fff4e5;
}
.pid-dd-panel li.is-selected:not(.is-placeholder).is-hover {
  background: #ffecd1;
}
.pid-dd-panel li[aria-disabled="true"] {
  color: #aab2bc;
  cursor: default;
}

/* desktop: label and box always on one line, every box starting at the same point */
@media (min-width: 761px) {
  html body .product-info .product-options .form-group.product-option-select {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  html body .product-info .product-options .form-group.product-option-select > .control-label {
    flex: 0 0 38% !important;
    width: 38% !important;
    max-width: 38% !important;
    white-space: normal !important;
    align-self: center !important;   /* label sits level with the middle of the box */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  /* Journal's spacer pseudo-elements on optional rows take up room in the row; the box should fill it instead */
  html body .product-info .product-options .form-group.product-option-select::before,
  html body .product-info .product-options .form-group.product-option-select::after {
    display: none !important;
  }
}

/* printers: "Single-sided | Dual-sided" buttons (pid_sides.php); the options they replace or don't apply are hidden */
html body .product-info .product-options .form-group.pid-sides-hidden {
  display: none !important;
}
html body .product-info .product-options .form-group.pid-sides {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}
html body .product-info .product-options .form-group.pid-sides::before,
html body .product-info .product-options .form-group.pid-sides::after {
  display: none !important;
}
html body .product-info .product-options .form-group.pid-sides > .control-label {
  flex: 0 0 38% !important;
  width: 38% !important;
  max-width: 38% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
  align-self: center !important;
}
.pid-sides-toggle {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 14px;
  gap: 8px;
}
.pid-sides-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid #d5d9de;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
  color: #1f2a37;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.pid-sides-btn:hover {
  border-color: #aab2bc;
}
.pid-sides-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(243, 146, 0, .25);
}
.pid-sides-btn.is-active {
  border-color: #f39200;
  background: #f39200;
  color: #fff;
}
.pid-sides-price {
  font-weight: 400;
  font-size: 12.5px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  html body .product-info .product-options .form-group.pid-sides {
    display: block !important;
  }
  html body .product-info .product-options .form-group.pid-sides > .control-label {
    width: auto !important;
    max-width: none !important;
    margin-bottom: 8px !important;
  }
  .pid-sides-toggle {
    margin-left: 0;
  }
  .pid-sides-btn {
    min-height: 48px;
    font-size: 16px;
  }
}

/* tick-box + radio options: same column, height, border and corners as the dropdowns; a small tick-box instead of
   Journal's big "push" boxes; the price sits on the right in grey */
html body .product-info .product-options .form-group.product-option-checkbox,
html body .product-info .product-options .form-group.product-option-radio {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}
html body .product-info .product-options .form-group.product-option-checkbox::before,
html body .product-info .product-options .form-group.product-option-checkbox::after,
html body .product-info .product-options .form-group.product-option-radio::before,
html body .product-info .product-options .form-group.product-option-radio::after {
  display: none !important;
}
html body .product-info .product-options .form-group.product-option-checkbox > .control-label,
html body .product-info .product-options .form-group.product-option-radio > .control-label {
  flex: 0 0 38% !important;
  width: 38% !important;
  max-width: 38% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
  align-self: center !important;
  white-space: normal !important;
}
html body .product-info .product-options .form-group.product-option-checkbox > [id^="input-option"],
html body .product-info .product-options .form-group.product-option-radio > [id^="input-option"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 0 0 14px !important;
  padding: 0 !important;
}
html body .product-info .product-options .product-option-checkbox .checkbox,
html body .product-info .product-options .product-option-radio .radio {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
html body .product-info .product-options .product-option-checkbox .checkbox > label,
html body .product-info .product-options .product-option-radio .radio > label {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  height: auto !important;
  text-align: left !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 9px 14px !important;
  border: 1.5px solid #d5d9de !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06) !important;
  color: #1f2a37 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  transition: border-color .15s ease !important;
}
html body .product-info .product-options .product-option-checkbox .checkbox > label:hover,
html body .product-info .product-options .product-option-radio .radio > label:hover {
  border-color: #aab2bc !important;
}
html body .product-info .product-options .product-option-checkbox .checkbox > label:has(input:checked),
html body .product-info .product-options .product-option-radio .radio > label:has(input:checked) {
  border-color: #f39200 !important;
}
/* the small tick-box / round radio */
html body .product-info .product-options .product-option-checkbox .checkbox > label > input,
html body .product-info .product-options .product-option-radio .radio > label > input {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: static !important;
  display: inline-block !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  opacity: 1 !important;
  border: 1.5px solid #aab2bc !important;
  border-radius: 4px !important;
  background: #fff center / 12px no-repeat !important;
  cursor: pointer !important;
}
html body .product-info .product-options .product-option-radio .radio > label > input {
  border-radius: 50% !important;
}
html body .product-info .product-options .product-option-checkbox .checkbox > label > input:checked {
  border-color: #f39200 !important;
  background-color: #f39200 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
html body .product-info .product-options .product-option-radio .radio > label > input:checked {
  border-color: #f39200 !important;
  background: radial-gradient(circle, #f39200 0 4.5px, #fff 5px) !important;
}
html body .product-info .product-options .product-option-checkbox .checkbox > label > input:focus-visible,
html body .product-info .product-options .product-option-radio .radio > label > input:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(243, 146, 0, .25) !important;
}
/* Journal's push box around the text: removed, the text and price share one line */
html body .product-info .product-options .product-option-checkbox .option-wrapper,
html body .product-info .product-options .product-option-radio .option-wrapper {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
html body .product-info .product-options .product-option-checkbox .option-wrapper::before,
html body .product-info .product-options .product-option-checkbox .option-wrapper::after,
html body .product-info .product-options .product-option-radio .option-wrapper::before,
html body .product-info .product-options .product-option-radio .option-wrapper::after {
  display: none !important;
}
html body .product-info .product-options .product-option-checkbox .option-value,
html body .product-info .product-options .product-option-radio .option-value {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
html body .product-info .product-options .product-option-checkbox .option-price,
html body .product-info .product-options .product-option-radio .option-price {
  flex: 0 0 auto !important;
  margin: 0 !important;
  color: #5b6573 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}
@media (max-width: 760px) {
  html body .product-info .product-options .form-group.product-option-checkbox,
  html body .product-info .product-options .form-group.product-option-radio {
    display: block !important;
  }
  html body .product-info .product-options .form-group.product-option-checkbox > .control-label,
  html body .product-info .product-options .form-group.product-option-radio > .control-label {
    width: auto !important;
    max-width: none !important;
    margin-bottom: 8px !important;
  }
  html body .product-info .product-options .form-group.product-option-checkbox > [id^="input-option"],
  html body .product-info .product-options .form-group.product-option-radio > [id^="input-option"] {
    margin-left: 0 !important;
  }
  html body .product-info .product-options .product-option-checkbox .checkbox > label,
  html body .product-info .product-options .product-option-radio .radio > label {
    font-size: 15px !important;
    min-height: 48px !important;
  }
}

/* required "*" sits right after the label text, not at the far edge of the label column */
html body .product-info .product-options .form-group.required > .control-label::after {
  position: static !important;
  float: none !important;
  display: inline !important;
  margin: 0 0 0 3px !important;
  inset: auto !important;
  transform: none !important;
}
html body .product-info .product-options .form-group > .control-label {
  display: block !important;
}

/* Options Combinations products (e.g. Magicard 300): the plugin draws its own form - give it the same look */
html body .product-info .product-options #options-combinations-container .form-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  margin-bottom: 10px !important;
}
html body .product-info .product-options #options-combinations-container .form-group::before,
html body .product-info .product-options #options-combinations-container .form-group::after {
  display: none !important;
}
html body .product-info .product-options #options-combinations-container .form-group > .control-label {
  display: block !important;
  flex: 0 0 38% !important;
  width: 38% !important;
  max-width: 38% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
  align-self: center !important;
  white-space: normal !important;
  text-align: left !important;
}
/* every combination choice is required: the "*" goes after the text like the other options */
html body .product-info .product-options #options-combinations-container .form-group > .control-label::before {
  display: none !important;
}
html body .product-info .product-options #options-combinations-container .form-group > .control-label::after {
  content: "*" !important;
  display: inline !important;
  position: static !important;
  margin-left: 3px !important;
  color: #d93025 !important;
}
html body .product-info .product-options #options-combinations-container select.form-control {
  -webkit-appearance: none !important;
  appearance: none !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 46px !important;
  margin-left: 14px !important;
  padding: 11px 44px 11px 16px !important;
  border: 1.5px solid #d5d9de !important;
  border-radius: 6px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' fill='none' stroke='%235b6573' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06) !important;
  color: #1f2a37 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
html body .product-info .product-options #options-combinations-container select.form-control:hover {
  border-color: #aab2bc !important;
}
html body .product-info .product-options #options-combinations-container select.form-control:focus {
  outline: none !important;
  border-color: #f39200 !important;
  box-shadow: 0 0 0 4px rgba(243, 146, 0, .18) !important;
}
html body .product-info .product-options #options-combinations-container select.form-control:has(option[value=""]:checked) {
  color: #6b7480 !important;
  font-weight: 400 !important;
}
html body .product-info .product-options #options-combinations-container select.form-control:not(:has(option[value=""]:checked)) {
  border-color: #f39200 !important;
}
html body .product-info .product-options #options-combinations-container select.form-control option {
  background-color: #fff !important;
  color: #1f2a37 !important;
}
html body .product-info .product-options #reset_options {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 13px;
}
@media (max-width: 760px) {
  html body .product-info .product-options #options-combinations-container .form-group {
    display: block !important;
  }
  html body .product-info .product-options #options-combinations-container .form-group > .control-label {
    width: auto !important;
    max-width: none !important;
    margin-bottom: 8px !important;
  }
  html body .product-info .product-options #options-combinations-container select.form-control {
    width: 100% !important;
    margin-left: 0 !important;
    font-size: 16px !important;
    min-height: 48px !important;
  }
}

/* ---- every option type, one layout ------------------------------------------------------------------------------
   text, textarea, date/time and file options get the same label column and box as dropdowns; every option row can wrap
   so a "required" error message drops onto its own line under the control instead of being squeezed into the row */
html body .product-info .product-options .form-group[class*="product-option-"],
html body .product-info .product-options #options-combinations-container .form-group {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}
html body .product-info .product-options .form-group[class*="product-option-"] > .control-label {
  display: block !important;
  flex: 0 0 38% !important;
  width: 38% !important;
  max-width: 38% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
  align-self: center !important;
  white-space: normal !important;
  text-align: left !important;
}
html body .product-info .product-options .form-group[class*="product-option-"]::before,
html body .product-info .product-options .form-group[class*="product-option-"]::after {
  display: none !important;
}
html body .product-info .product-options .form-group[class*="product-option-"] > select.form-control,
html body .product-info .product-options .form-group[class*="product-option-"] > [id^="input-option"]:not(input[type="hidden"]),
html body .product-info .product-options .form-group[class*="product-option-"] > .input-group,
html body .product-info .product-options .form-group[class*="product-option-"] > .upload-btn,
html body .product-info .product-options .form-group.pid-sides > .pid-sides-toggle,
html body .product-info .product-options #options-combinations-container .form-group > select.form-control {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}
/* error text under the control, lined up with it */
html body .product-info .product-options .form-group[class*="product-option-"] > .text-danger,
html body .product-info .product-options .form-group[class*="product-option-"] > .invalid-feedback,
html body .product-info .product-options #options-combinations-container .form-group > .text-danger {
  flex: 0 0 100% !important;
  margin: 6px 0 0 calc(38% + 14px) !important;
  font-size: 13px !important;
}
/* text / textarea / date / time boxes */
html body .product-info .product-options .form-group[class*="product-option-"] input.form-control:not([type="hidden"]),
html body .product-info .product-options .form-group[class*="product-option-"] textarea.form-control {
  min-height: 46px !important;
  height: auto !important;
  padding: 11px 16px !important;
  border: 1.5px solid #d5d9de !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06) !important;
  color: #1f2a37 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  transition: border-color .15s ease, box-shadow .15s ease !important;
}
html body .product-info .product-options .form-group[class*="product-option-"] > input.form-control:not([type="hidden"]),
html body .product-info .product-options .form-group[class*="product-option-"] > textarea.form-control,
html body .product-info .product-options .form-group[class*="product-option-"] > .input-group,
html body .product-info .product-options .form-group[class*="product-option-"] > .upload-btn {
  margin: 0 0 0 14px !important;
  width: auto !important;
}
html body .product-info .product-options .form-group[class*="product-option-"] textarea.form-control {
  min-height: 92px !important;
}
html body .product-info .product-options .form-group[class*="product-option-"] input.form-control:not([type="hidden"]):hover,
html body .product-info .product-options .form-group[class*="product-option-"] textarea.form-control:hover {
  border-color: #aab2bc !important;
}
html body .product-info .product-options .form-group[class*="product-option-"] input.form-control:not([type="hidden"]):focus,
html body .product-info .product-options .form-group[class*="product-option-"] textarea.form-control:focus {
  outline: none !important;
  border-color: #f39200 !important;
  box-shadow: 0 0 0 4px rgba(243, 146, 0, .18) !important;
}
html body .product-info .product-options .form-group[class*="product-option-"] input.form-control::placeholder,
html body .product-info .product-options .form-group[class*="product-option-"] textarea.form-control::placeholder {
  color: #6b7480 !important;
}
/* date / time: input and calendar button joined into one box */
html body .product-info .product-options .form-group[class*="product-option-"] > .input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
}
html body .product-info .product-options .form-group[class*="product-option-"] > .input-group > input.form-control {
  flex: 1 1 auto !important;
  border-radius: 6px 0 0 6px !important;
}
html body .product-info .product-options .form-group[class*="product-option-"] > .input-group .btn {
  height: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1.5px solid #d5d9de !important;
  border-left: 0 !important;
  border-radius: 0 6px 6px 0 !important;
  background: #f6f7f9 !important;
  color: #1f2a37 !important;
  box-shadow: none !important;
}
/* file upload: a box like the others with the upload icon */
html body .product-info .product-options .form-group[class*="product-option-"] > .upload-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 46px !important;
  padding: 11px 16px !important;
  border: 1.5px dashed #aab2bc !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #1f2a37 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
html body .product-info .product-options .form-group[class*="product-option-"] > .upload-btn:hover {
  border-color: #f39200 !important;
  color: #b86e00 !important;
}
@media (max-width: 760px) {
  html body .product-info .product-options .form-group[class*="product-option-"],
  html body .product-info .product-options #options-combinations-container .form-group {
    display: block !important;
  }
  html body .product-info .product-options .form-group[class*="product-option-"] > .control-label {
    width: auto !important;
    max-width: none !important;
    margin-bottom: 8px !important;
  }
  html body .product-info .product-options .form-group[class*="product-option-"] > input.form-control:not([type="hidden"]),
  html body .product-info .product-options .form-group[class*="product-option-"] > textarea.form-control,
  html body .product-info .product-options .form-group[class*="product-option-"] > .input-group,
  html body .product-info .product-options .form-group[class*="product-option-"] > .upload-btn {
    width: 100% !important;
    margin-left: 0 !important;
  }
  html body .product-info .product-options .form-group[class*="product-option-"] input.form-control:not([type="hidden"]),
  html body .product-info .product-options .form-group[class*="product-option-"] textarea.form-control {
    font-size: 16px !important;
  }
  html body .product-info .product-options .form-group[class*="product-option-"] > .text-danger,
  html body .product-info .product-options .form-group[class*="product-option-"] > .invalid-feedback,
  html body .product-info .product-options #options-combinations-container .form-group > .text-danger {
    margin-left: 0 !important;
  }
}

/* Print sides: the other side's list stays hidden (must beat the "every option type" layout rule above) */
html body .product-info .product-options .form-group.pid-sides-hidden[class] {
  display: none !important;
}

/* "Reset selection" above the options */
html body .product-info .product-options .pid-options-head {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}
html body .product-info .product-options .pid-reset-options {
  font-size: 13px;
  color: #5b6573;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html body .product-info .product-options .pid-reset-options:hover {
  color: #b86e00;
}

/* add-on choices that are real products: picture tiles side by side, like the Print sides buttons */
html body .product-info .product-options .form-group.pid-tiles[class] > [id^="input-option"] {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}
html body .product-info .product-options .form-group.pid-tiles .checkbox,
html body .product-info .product-options .form-group.pid-tiles .radio {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
}
html body .product-info .product-options .form-group.pid-tiles .checkbox > label,
html body .product-info .product-options .form-group.pid-tiles .radio > label {
  position: relative !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  height: 100% !important;
  padding: 10px 8px 10px !important;
  text-align: center !important;
}
html body .product-info .product-options .form-group.pid-tiles .checkbox > label > input,
html body .product-info .product-options .form-group.pid-tiles .radio > label > input {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
}
html body .product-info .product-options .form-group.pid-tiles .pid-tile-img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 2px auto 0;
}
html body .product-info .product-options .form-group.pid-tiles .option-wrapper {
  width: 100% !important;
}
html body .product-info .product-options .form-group.pid-tiles .option-value {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}
html body .product-info .product-options .form-group.pid-tiles .option-price {
  font-size: 12.5px !important;
}
@media (max-width: 760px) {
  html body .product-info .product-options .form-group.pid-tiles .pid-tile-img {
    width: 56px;
    height: 56px;
  }
}

/* an option with nothing left to choose (e.g. every choice out of stock) shows no empty heading */
html body .product-info .product-options .form-group[class*="product-option-"]:not(:has(input, select, textarea, button)) {
  display: none !important;
}

/* quantity: [ − ] [ 1 ] [ + ] instead of Journal's two tiny arrows side by side */
html body .product-info .stepper {
  display: flex !important;
  align-items: stretch !important;
  flex: 0 0 144px !important;
  width: 144px !important;
  min-width: 144px !important;
  max-width: none !important;
  height: 46px !important;
  padding: 0 !important;
  border: 1.5px solid #d5d9de !important;
  border-radius: 6px !important;
  background: #fff !important;
  overflow: hidden !important;
}
html body .product-info .stepper > .control-label {
  display: none !important;
}
html body .product-info .stepper > span {
  display: contents !important;   /* the two buttons become siblings of the number */
}
html body .product-info .stepper input[name="quantity"] {
  order: 2 !important;
  flex: 0 0 52px !important;
  width: 52px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1.5px solid #e3e6ea !important;
  border-right: 1.5px solid #e3e6ea !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  color: #1f2a37 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center !important;
}
html body .product-info .stepper .fa-angle-down,
html body .product-info .stepper .fa-angle-up {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  background: #f6f7f9 !important;
  color: #1f2a37 !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: background-color .15s ease, color .15s ease !important;
}
html body .product-info .stepper .fa-angle-down { order: 1 !important; }
html body .product-info .stepper .fa-angle-up { order: 3 !important; }
html body .product-info .stepper .fa-angle-down::before,
html body .product-info .stepper .fa-angle-up::before {
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}
html body .product-info .stepper .fa-angle-down::before { content: "\2212" !important; }   /* − */
html body .product-info .stepper .fa-angle-up::before { content: "+" !important; }
html body .product-info .stepper .fa-angle-down:hover,
html body .product-info .stepper .fa-angle-up:hover {
  background: #fff4e5 !important;
  color: #b86e00 !important;
}
html body .product-info .stepper .fa-angle-down:focus-visible,
html body .product-info .stepper .fa-angle-up:focus-visible {
  outline: none !important;
  box-shadow: inset 0 0 0 3px rgba(243, 146, 0, .45) !important;
}
