.orderable-product-fields-group {
  margin: 0 0 24px;
}

.orderable-product-fields {
  margin: 0 0 24px;
}

.orderable-product-fields:last-child {
  margin-bottom: 0;
}

.orderable-product-fields__title {
  margin: 0 0 12px;
  display: block;
  line-height: 22px;
}

.orderable-product-fields--required .orderable-product-fields__title::after {
  content: "*";
  display: inline-block;
  margin: 0 0 0 4px;
  color: #b33b3f;
}

.orderable-product-fields__max-selection-error {
  display: none;
  color: #b33b3f;
  margin: 12px 0 0;
}

.orderable-product-fields--visual .orderable-product-fields__field {
  border: 2px solid #e6ecef;
  border-radius: 8px;
  overflow: hidden;
}

/* Visual */
.orderable-product-option {
  background: #fff;
  padding: 10px;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 2px solid #e6ecef;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 0;
      -ms-flex: 0 auto;
          flex: 0 auto;
}

.orderable-product-option:last-child {
  border-bottom: none;
}

.orderable-product-option__swatch {
  width: 40px;
  min-width: 40px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 10px 0 0;
}

.orderable-product-option__swatch-graphic {
  max-width: 100%;
  width: 100%;
  height: auto;
}

.orderable-product-option__swatch-graphic--color {
  padding: 0 0 100%;
}

.orderable-product-option__hidden-field {
  display: none;
}

.orderable-product-option__label {
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.orderable-product-option__label-data {
  margin: 0 0 0 auto;
  white-space: nowrap;
}

.orderable-product-option__label-fee {
  background: #e6ecef;
  padding: 4px 10px;
  display: inline-block;
  border-radius: 8px;
  margin: 0 0 0 10px;
}

.orderable-product-option--checked .orderable-product-option__label-fee {
  background: #000;
  color: #fff;
}

.orderable-product-option__label-state {
  display: inline-block;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  height: 16px;
  width: 10px;
  border-bottom: 4px solid #c1cfd7;
  border-right: 4px solid #c1cfd7;
  margin: 0 5px 0 12px;
  opacity: 0;
}

.orderable-product-option:hover .orderable-product-option__label-state {
  opacity: 1;
}

.orderable-product-option--checked .orderable-product-option__label-state {
  opacity: 1;
  border-color: #000;
}

.orderable-product-option__label-fee--positive::before {
  content: "+";
}

.orderable-product-option__label-fee--negative::before {
  content: "-";
}
/* Quantity selector for Orderable Addons max-selection checkbox fields */
.orderable-product-fields__field--quantity-selection .orderable-product-option {
  gap: 10px;
}

.orderable-product-fields__field--quantity-selection .orderable-product-option__label {
  min-width: 0;
}

.orderable-product-fields__field--quantity-selection .orderable-product-option__label-text {
  overflow-wrap: anywhere;
}

.orderable-option-qty {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
}

.orderable-option-qty__button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #e6ecef !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1f2937 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none !important;
}

.orderable-option-qty__button:hover,
.orderable-option-qty__button:focus {
  background: #f29a4d !important;
  border-color: #f29a4d !important;
  color: #fff !important;
  outline: none !important;
}

.orderable-option-qty__input {
  width: 42px !important;
  min-width: 42px !important;
  height: 30px !important;
  padding: 0 4px !important;
  margin: 0 !important;
  border: 1px solid #e6ecef !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #1f2937 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: none !important;
}

.orderable-option-qty__input::-webkit-outer-spin-button,
.orderable-option-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.orderable-option-qty__input[type=number] {
  -moz-appearance: textfield;
}

.orderable-product-fields__field--quantity-selection .orderable-product-option--checked {
  background: #fff7ef;
}

@media (max-width: 480px) {
  .orderable-product-fields__field--quantity-selection .orderable-product-option {
    padding: 11px 10px;
  }

  .orderable-option-qty__button {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .orderable-option-qty__input {
    width: 38px !important;
    min-width: 38px !important;
    height: 28px !important;
  }
}
