/* General */

.custom-cable {
  display: flex;
  justify-content: space-between;
  flex-flow: row nowrap;
  gap: 20px;
  position: relative;
  padding: 40px;
}

@media screen and (max-width: 600px) {
  .custom-cable {
    padding: 30px;
  }
}

.custom-cable__images {
  display: none;
  position: absolute;
  width: 250px;
  height: 500px;
  z-index: 20;
}

#red-main-wire,
#black-main-wire {
  z-index: 10;
}

#red-aux-wire,
#black-aux-wire {
  left: 40px;
  z-index: 5;
}

.end-covers-col {
  min-width: 152.5px;
}

.add-to-cart-col {
  flex: 0 0 152.5px;
}

#custom_add_to_cart {
  width: 100%;
  height: 50px;
  font-family: Rubik;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  background-color: #a2a2a2;
  color: #ffffff;
}

#custom_add_to_cart.add-to-cart-active {
  background-color: #db2a2a;
}

/* .top-connection-images {
  top: 5px;
  left: 80px;
} */

.custom-cable__img {
  width: 250px;
  flex: 0 0 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  border: 1px solid #cccccc;
}

.custom-cable__placeholder {
  width: 188px;
  height: 214px;
  font-family: Rubik;
  font-style: normal;
  font-weight: 900;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  color: #cccccc;
}

.custom-cable__form {
  background-color: #f4f4f4;
  padding: 40px;
  flex: 0 0 880px;
}

.custom-cable__form form {
  display: flex;
  flex-flow: column nowrap;
  gap: 20px;
}

.custom-cable__form h6 {
  margin-bottom: 2px;
}

.custom-cable__form select {
  background-color: white;
}

.custom-cable__form-row:not(:last-child) {
  border-bottom: 1px #cccccc solid;
  padding-bottom: 20px;
}

.custom-cable__form-row #toc_container {
  display: none !important;
}

.custom-cable__form-columns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

#reset-form-link {
  font-size: 13px;
  line-height: 15px;
  color: #db2a2a;
  padding-top: 20px;
  cursor: pointer;
}

/* Plus-minus counter */
.custom-cable input,
.custom-cable textarea {
  border: 1px solid #eeeeee;
  box-sizing: border-box;
  margin: 0;
  outline: none;
  padding: 10px;
}

.custom-cable input[type="button"] {
  -webkit-appearance: button;
  cursor: pointer;
  border-radius: 0px;
}

.custom-cable input::-webkit-outer-spin-button,
.custom-cable input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.custom-cable .input-group {
  clear: both;
  margin: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  min-height: 50px;
}

.custom-cable .input-group input[type="button"] {
  background-color: #eeeeee;
  min-width: 38px;
  width: auto;
  transition: all 300ms ease;
  flex: 1;
  font-family: Rubik;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: #000000;
  min-height: 50px;
}

.custom-cable .input-group .button-minus,
.custom-cable .input-group .button-plus {
  font-weight: bold;
  height: 38px;
  padding: 0;
  width: 38px;
  position: relative;
}

.custom-cable .input-group .quantity-field {
  position: relative;
  height: 38px;
  /* left: -6px; */
  text-align: center;
  width: 62px;
  display: inline-block;
  font-size: 13px;
  margin: 0 0 5px;
  resize: vertical;
  min-height: 50px;
}

.custom-cable .button-plus {
  /* left: -10px; */
}

.custom-cable input[type="number"] {
  -moz-appearance: textfield;
  -webkit-appearance: none;
}

.custom-cable .estimated_cost_label {
  margin-bottom: 0px;
}

.custom-cable #estimated_cost_div {
  font-family: Rubik;
  font-style: normal;
  font-weight: bold;
  font-size: 20px;
  line-height: 130.35%;
  align-items: center;
  letter-spacing: 0.25px;
  color: #000000;
}

#custom-woocommerce-notices-wrapper {
  display: none;
}

.woocommerce-checkout ul.wc-item-meta {
  margin-left: 0;
}

/* Color swatches */

#wire_color {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

#color_swatch_1 {
  background-color: #000000;
}

#color_swatch_2 {
  background-color: #db2a2a;
}

.wire_color label {
  cursor: pointer;
}

.wire_color input {
  display: none;
}

.wire_color input[type="radio"]:checked+.swatch {
  box-shadow: inset 0 0 0 2px white;
}

.wire_color .swatch {
  display: inline-block;
  vertical-align: middle;
  height: 30px;
  width: 30px;
  margin: 0 5px 0 0;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
}

/* Custom checkbox */

/* Customize the label (the container) */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkbox-container .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 26px;
  width: 26px;
  background-color: #eee;
  border: 1px solid #cccccc;
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input~.checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked~.checkmark {
  background-color: transparent;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkbox-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked~.checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
  left: 7px;
  top: 2px;
  width: 10px;
  height: 15px;
  border: solid black;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Textarea */
#custom-cable__details {
  min-width: 600px;
  min-height: 80px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  box-sizing: border-box;
  border-radius: 4px;
  resize: none;
}

/* Select styling */

.select-style {
  padding: 0;
  margin: 0;
  border: 1px solid #ccc;
  width: 247px;

  border-radius: 3px;
  overflow: hidden;
  background-color: #fff;
  background: #fff url("../img/select-arrow.svg") no-repeat 95% 50%;
}

.select-style select {
  padding: 5px 15px;
  width: 130%;
  height: 50px;
  border: none;
  box-shadow: none;
  background-color: transparent;
  background-image: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.select-style select:focus {
  outline: none;
}

/* Responsive styling */

@media only screen and (max-width: 1200px) {
  .custom-cable {
    flex-flow: row wrap;
  }

  .custom-cable__img-container {
    order: 1;
  }

  .custom-cable__form {
    order: 2;
  }
}

@media only screen and (max-width: 992px) {
  .custom-cable__form-columns {
    flex-flow: row wrap;
  }

  .custom-cable__form {
    flex: 0 1 auto;
  }
}

@media only screen and (max-width: 600px) {
  .custom-cable__form-columns {
    flex-flow: column nowrap;
  }

  .custom-cable__form {
    padding: 20px;
    width: 100%;
  }

  .custom-cable .input-group .quantity-field {
    flex: 1;
  }

  #wire_color {
    justify-content: flex-start;
  }

  .select-style select {
    width: 100%;
  }

  #custom-cable__details {
    min-width: auto;
    width: 100%;
  }

  .add-to-cart-col {
    flex: 1;
  }
}