@import './variables.css';

.configurator-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1320px;
  padding-bottom: 100px;
}

.cf-options-wrapper {
  width: 70%;
}

.cf-results-wrapper {
  width: 30%;
  position: relative;
}

.cf-results-wrapper:before {
  content: '';
  position: absolute;
  left: 0;
  top: 5%;
  bottom: 5%;
  width: 1px;
  background-color: var(--dark-gray);
}
.cf-section-inner {
  padding: 20px;
}

.config-summary {
  position: sticky;
  top: 0;
  padding-top: 25px;
}

#configurator-options {
  position: relative;
}

.cf-option-fieldset {
  font-family: 'Public Sans';
  font-style: normal;
  line-height: 18px;
  font-size: 14px;
  border: none;
  padding: 0;
}

.option-wrapper:has(.cf-option-fieldset.cf-active) {
  border: 1px solid var(--dark-gray);
}

.cf-option-fieldset .radio-wrapper {
  display: flex;
  align-items: center;
  padding-left: 10px;
  background-color: var(--gray);
  border: 1px solid var(--gray);
  border-radius: 10px;
  margin-bottom: 5px;
  transition: all 300ms ease-out;
}
.cf-option-fieldset .radio-wrapper label {
  cursor: pointer;
  padding: 10px 15px 10px 0;
  width: 100%;
  color: var(--text-black);
}
.cf-option-fieldset .radio-wrapper:hover {
  border-color: var(--dark-gray);
}

.cf-option-fieldset .radio-wrapper input {
  margin-right: 10px;
}

body .cf-option-fieldset .radio-wrapper input[type='radio'] {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  position: relative;
  background-color: var(--light-gray);
  border: none;
  border: 1px solid var(--light-gray);
  border-radius: 50px;
}

body .cf-option-fieldset .radio-wrapper input[type='radio']:checked {
  background-color: var(--green);
  border: 2px solid var(--light-gray);
}

body .cf-option-fieldset .radio-wrapper input[type='checkbox']:checked {
  background-color: var(--green);
  border-color: var(--light-gray);
  padding: 2px;
  content: url('../assets/checked.svg');
}

body .cf-option-fieldset .radio-wrapper input[type='checkbox'] {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  position: relative;
  background-color: var(--light-gray);
  border: none;
  border-color: transparent;
  border-radius: 3px;
}
body .cf-availability .radio-wrapper input[type='radio']::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.cf-option-fieldset.cf-active .cf-options-items-container {
    max-height: 600px;
    overflow: auto;
}
.cf-option-fieldset .cf-options-items-container {
  max-height: 0;
  overflow: hidden;
}
.cf-option-fieldset legend {
  color: var(--title-black);
  font-weight: 700;
  line-height: normal;
  padding: 15px 0 10px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  transition: color .28s ease;
}

.cf-option-fieldset legend:hover {
  color: var(--green);
}

.cf-option-fieldset legend b {
  color: var(--green);
}

.cf-option-fieldset.cf-active .cf-selected-option {
  display: none;
}

.cf-selected-option {
  background-color: var(--gray);
  border-radius: 10px;
  width: 100%;
  display: flex;
  padding: 10px 15px 10px 10px;
}
.cf-option-fieldset.cf-active legend i {
  transform: rotateX(180deg);
}

.cf-option-fieldset legend i {
  transition: all 0.4s ease;
  margin-left: 10px;
  font-size: 12px;
}
.cf-availability {
  color: var(--green);
  font-weight: 700;
}
#configured-part-number {
  background: var(--ast-global-color-0);
  padding: 3px 10px;
  font-weight: bold;
  color: white;
  margin: 5px 0;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d-none {
  display: none;
}
.config-price {
  background-color: var(--gray);
  border: 1px solid var(--green);
  border-radius: 15px;
  margin: 10px;
  padding: 10px 15px;
  flex: 0 0 65%;
  max-width: 50%;
}
.config-help {
  margin-top: 10px;
  line-height: 25px;
  color: var(--text-black);
  font-size: 14px;
}

.config-help a strong {
  font-weight: 700;
  color: var(--text-black);
  font-size: 14px;
  text-decoration: underline;
  display: inline-flex;
}

.config-help strong {
  font-weight: 700;
}
.disabled-button {
  position: relative;
}
.disabled-button:active {
  pointer-events: none;
}
.disabled-button a {
  opacity: 0.4;
}
.disabled-button:after {
  content: '*Please select the required options on the left.';
  position: absolute;
  bottom: -3px;
  color: darkred;
  left: 0;
  font-size: 12px;
  opacity: 0;
  transition: 0.2s ease all;
}
.disabled-button:hover::after {
  opacity: 1;
}

/* CSS */
.cs-pos-rel {
  position: relative;
  margin: 10px;
}
.cf-loading {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  backdrop-filter: blur(3px);
  z-index: 2;
}
.wp-block-button .wp-block-button__link,
.elementor-button-wrapper .elementor-button,
.elementor-button-wrapper .elementor-button:visited {
  color: var(--white);
}
.cf-loader-size-xl {
  min-height: 50vh;
}
.cf-spinner {
  display: block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--ast-global-color-0);
  /* Change the color to your preference */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}
body div .cf-item-neutral {
  color: var(--e57-info);
  font-weight: bold;
}
strong.lead-time-factory a {
    font-size: 14px;
}
.call-the-factory-button a {
    color: white !important;
    background-color: var(--e57-info) !important;
}

.call-the-factory-button a:hover {
    background-color: var(--blue) !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body a.back-link {
  color: var(--text-black);
  font-size: 17px;
  font-style: italic;
  line-height: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d3d0e5;
}

a.back-link::before {
  content: '<';
  width: 10px;
  height: 10px;
  margin-right: 15px;
}

body .cf-section-inner h2 {
  color: var(--title-black);
  font-size: 30px;
  font-style: normal;
  font-weight: 800;
  line-height: 40px;
  padding: 50px 0 25px;
}

.option-wrapper {
  border: 1px solid #c9c9e0;
  border-radius: 15px;
  padding: 0 10px 15px;
  margin: 10px 0;
}

.cf-item-price {
  color: var(--blue);
  font-weight: 700;
  display: none !important;
}

.cf-item-pipe {
  color: var(--dark-gray);
  margin: 0 2px 0 4px;
}

.config-thumb {
  width: 80%;
  max-width: 400px;
  height: 400px;
  border: 1px solid var(--dark-gray);
  border-radius: 10px;
  padding-bottom: 10px;
}

.config-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.config-summary .config-name {
  display: flex;
}

body .config-name a {
  color: var(--green);
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 20px;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #d8d8d8;
  margin: 10px 0;
}

.config-summary .row {
  padding: 20px 0 40px;
  border-top: 1px solid var(--dark-gray);
  border-bottom: 1px solid var(--dark-gray);
}

.config-number .cs-pos-rel .cf-loading {
  color: var(--title-black);
  font-weight: 400;
  line-height: 25px;
  margin: 7px 0 5px;
  z-index: 2;
}

.copy-button {
  display: flex;
  align-items: center;
  height: 40x;
}

#configured-part-number {
  color: var(--title-black);
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  text-transform: capitalize;
  padding: 7px 5px;
  border-radius: 10px;
  border: 1px solid var(--green);
  background-color: var(--white);
  position: relative;
  transition: all 0.3s ease-in-out;
  z-index: 1;
}

#copy-to-clipboard {
  content: url('../assets/files.svg');
  position: relative;
  left: -10px;
  height: 41px;
  cursor: pointer;
  background-color: var(--green);
  height: 100%;
  padding: 8px 10px 8px 20px;
  border-radius: 0 10px 10px 0;
  transition: all 0.3s ease-in-out;
}

#copy-to-clipboard:hover {
  background-color: var(--blue);
}

#copy-to-clipboard:hover ~ #configured-part-number {
  border-color: var(--blue);
}

.copied-code {
  font-size: 12px;
  color: var(--dark-gray);
  display: none;
}

.show-copied {
  display: flex;
}

.config-availability-wrapper {
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid var(--light-gray);
}

.config-availability {
  color: var(--text-black);
  line-height: 25px;
  padding: 5px 15px 5px 10px;
  margin-bottom: 15px;
  border: 1px solid var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  width: fit-content;
}

.config-availability::before {
  content: url('../assets/truck_icon.svg');
  margin-right: 10px;
  max-height: 20px;
}

.in-stock {
  font-size: 14px;
}

.cs-pos-rel .row {
  padding: 10px 10px 5px 10px;
  width: 50%;
  display: flex;
  justify-content: space-between;
}

.config-price.cs-pos-rel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.row-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--dark-gray);
  border-radius: 15px;
  width: 100%;
}

.row-wrapper .cs-pos-rel {
  width: 50%;
  max-width: 50%;
}

.price-wrapper {
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.price-wrapper-no-border {
  margin: 20px 5px 5px 20px;
  flex: 0 0 35%;

  max-width: 35%;
}

.price-label {
  font-size: 14px;
}

.price-wrapper-no-border .price {
  color: var(--title-black);
  font-size: 14x;
  font-weight: 800;
}

.gray-border {
  border-bottom: 1px solid var(--dark-gray);
}

body .green-text {
  color: var(--green);
}

body .elementor-button-wrapper {
  text-align: center;
  padding: 20px 0;
}

body .elementor-button.elementor-button-link {
  padding: 15px;
  color: var(--white);
  background-color: var(--green);
  border-radius: 5px;
  font-size: 17px;
  align-items: center;
  width: 100%;
  transition: all 300ms ease-in-out;
}

body .elementor-button.elementor-button-link:hover {
  background-color: var(--blue);
  color: var(--white);
}

body .cf-options-wrapper .additional-info {
  font-size: 12px;
  line-height: 18px;
  color: var(--title-black);
  margin-bottom: 5px;
}

.additional-info span {
  color: var(--green);
}

/* Form */

.modal-content .modal-header {
  border: none;
  justify-content: flex-end;
  padding: 12px !important;
}

.modal-content .modal-header .modal-title {
  display: none;
}

.modal-content .modal-body {
  padding: 0 12px 20px;
}

.modal-content .modal-body .frm_fields_container .frm_rootline_group {
  padding: 0 0 25px;
  margin: 0 !important;
}

.modal-content .modal-body .frm_fields_container .frm_rootline_group input {
  border-radius: 2px !important;
}

.modal-content
  .modal-body
  .frm_fields_container
  .frm_rootline_group
  input:hover {
  border-radius: 2px !important;
}

.frm_form_field.frm_html_container.form-field h2 {
  color: var(--title-black) !important;
  font-size: 30px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: normal !important;
  margin-bottom: 10px !important;
}

.frm_form_field.form-field.frm_top_container .frm_primary_label {
  padding: 0 0 5px !important;
}

.frm_form_field.form-field.frm_top_container .frm_description {
  margin: 12px 0 0;
}

.frm_form_field.form-field.frm_top_container .frm_description ul {
  margin: 0 0 20px 10px;
}

.frm_form_field.form-field.frm_top_container .frm_description ul li {
  color: var(--text-black);
  font-size: 12px;
  font-style: normal;
  line-height: 20px;
}

.frm_form_field.form-field.frm_top_container .frm_description ul li::marker {
  color: var(--green);
  width: 7px;
  height: 7px;
  border-radius: 1px;
}
.frm_form_fields .fluid-wrapper {
  padding: 15px;
  background-color: var(--gray);
  border-radius: 10px;
  color: var(--text-black);
}

.fluid-wrapper .frm_form_field select {
  background-color: var(--dark-gray) !important;
  color: var(--text-black);
}

body .with_frm_style .frm_required {
  color: var(--green) !important;
}

.frm_description {
  font-size: 12px;
  color: var(--text-black);
}

.fluid-wrapper .frm_form_field.frm_section_heading.form-field.frm_first {
  margin-bottom: 0 !important;
}

#frm_field_40_container input {
  padding-left: 40px !important;
}

.fluid-wrapper
  .frm_form_field.frm_section_heading.form-field.frm_first
  h3.frm_section_spacing {
  border-top: none !important;
  margin-bottom: 10px !important;
  color: var(--title-black) !important;
  font-size: 20px !important;
  font-style: normal;
  font-weight: 600 !important;
  line-height: normal;
  padding: 0 !important;
}

.frm_submit.frm_flex {
  justify-content: flex-end;
  margin: 0 15px;
}

.frm_submit.frm_flex .frm_button_submit,
.frm_submit.frm_flex .frm_prev_page.form-prev-btn {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  color: var(--white);
  text-align: center !important;
  font-size: 17px !important;
  font-style: normal !important;
  line-height: normal !important;
  text-transform: capitalize;
}

body .frm_submit.frm_flex .frm_prev_page.form-prev-btn {
  background-color: var(--white) !important;
  color: var(--title-black) !important;
  border: 1px solid var(--dark-gray) !important;
  transition: all 0.3s ease-in-out !important;
}

.frm_submit.frm_flex .frm_button_submit::after {
  content: url('../assets/arrow-right.svg');
  width: 100%;
  padding-left: 10px;
}

.info-wrapper {
  padding: 0 10px;
}

.user-info-wrapper {
  display: flex;
  margin: 0 -5px;
}

.user-info-wrapper .frm_form_field {
  width: 100%;
  margin: 0 5px;
}

.fluid-wrapper textarea {
  resize: none;
}

.frm_pos_.frm_primary_label {
  display: none;
}

body ul.frm_page_bar li.frm_rootline_single input.frm_page_back {
  background-color: var(--green) !important;
  color: var(--green) !important;
}

body ul.frm_page_bar.frm_rootline.frm_show_lines > .frm_rootline_single:after {
  background-color: var(--green) !important;
}

body
  ul.frm_page_bar.frm_rootline.frm_show_lines
  > .frm_rootline_single
  .frm_rootline_title {
  color: var(--green);
}

.frm_rootline_group {
  padding-bottom: 20px !important;
}

.frm_rootline_title {
  color: var(--green);
  font-weight: 700;
  line-height: 25px;
}

body .frm-summary-page-wrapper {
  margin: 12px 15px 0 !important;
  padding: 0 15px !important;
  background-color: var(--gray);
  border-radius: 10px;
}

.frm-summary-page-wrapper .frm-edit-page-btn {
  display: none;
}

body .frm-summary-page-wrapper .frm-line-table {
  border: none;
  margin: 0;
}

.frm-summary-page-wrapper .frm-line-table tr {
  border-bottom: 1.5px solid var(--dark-gray);
  color: var(--text-black);
}

.frm-summary-page-wrapper .frm-line-table tr th {
  padding: 15px 0 !important;
}

.frm-summary-page-wrapper .frm-line-table tr td {
  font-weight: 700;
  padding: 15px 0 !important;
}

.frm-summary-page-wrapper .frm-line-table tr:last-child {
  border-bottom: none;
}

.frm_submit {
  align-items: center;
}

.frm_button_submit.frm_final_submit {
  padding: 0 !important;
  margin: 0 !important;
}

.frm_submit.frm_flex .frm_prev_page.form-prev-btn:hover {
  background-color: var(--green) !important;
  border-color: var(--green) !important;
  color: var(--white) !important;
}

.cf-option-fieldset .cf-selected-option:has(.choosen-option) {
  flex-direction: column;
  background-color: transparent;
  padding: 10px 0;
}

.choosen-option {
  padding: 10px;
  background-color: var(--gray);
  border-radius: 10px;
  margin-bottom: 5px;
}

/* Responsive */

@media screen and (max-width: 991px) {
  .cf-options-wrapper {
    width: 100%;
  }

  .cf-results-wrapper {
    width: 100%;
  }

  #config-summary-header {
    padding-top: 15px;
  }

  .cf-loader-size-xl {
    min-height: 5vh;
  }
}
