.component_selections {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  padding: 0 !important;
}

.component_section_title {
  display: none;
}

.composited_product_details_wrapper {
  display: none;
}

ul.component_option_radio_buttons_container
  li.component_option_radio_button_container {
  display: flex !important;
  width: 100% !important;
  font-size: 0.825rem;
}

ul.component_option_radio_buttons_container
  li.component_option_radio_button_container.selected {
  gap: 0.25rem;
}

.component .component_option_radio_button {
  display: flex !important;
}

.component_option_radio_button_container .radio_button_input {
  display: flex;
  padding: 0 0.125rem 0 0.125rem !important;
}

.component_option_radio_button_container .radio_button_description {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.custom_quantity_input_container, .price_bar_custom_quantity_input_container {
  gap: 0.25rem;
  align-items: center;
  margin-bottom: 0.25rem;
  display: flex;
}

.woocommerce
  ul.component_option_radio_buttons_container
  li.component_option_radio_button_container
  .radio_button_description
  .price {
  margin: 0 !important;
}

/* Keep price/included on the right and right-align label-only text (e.g. "included", "not available") */
.component_option_radio_button_container .radio_button_description .radio_button_price.price {
  margin-left: auto;
  text-align: right;
}

#component_option_radio_button_container_0 .custom_quantity_input_container {
  margin-right: 0;
}

#component_option_radio_button_container_0 .radio_button_price.price {
  display: none;
}

li.component_option_radio_button_container input.custom_quantity_input, .price_bar_custom_quantity_input_container input.custom_quantity_input {
  border: 1px solid #b6b5b5 !important;
  background: #fff !important;
  color: #656565;
  font-weight: 400;
  text-align: center;
  display: none;
}

li.component_option_radio_button_container
  input.custom_quantity_input.selected, .product-quantity input.custom_quantity_input, .price_bar_custom_quantity_input_container input.custom_quantity_input {
  border: 2px solid #1cc9a1 !important;
  font-weight: 700;
  width: calc(4ch * 1.25);
  height: 100%;
  display: flex;

}
.product-quantity input.custom_quantity_input {
  width: calc(6ch * 1.25);
  height: calc(6ch * 1.25);
	padding-left: .25rem;
	margin: 0 auto !important;
}

.product-quantity input[type=number]::-webkit-inner-spin-button {
    opacity: 1
}

body.et-db
  #page-container
  #et-boc
  .et-l
  .et_pb_section
  .custom_quantity_input_container
  .btn, .custom_quantity_input_container
  .btn, .price_bar_custom_quantity_input_container .btn {
  font-weight: 700;
  text-align: center;
  margin: 0 auto;
  padding: 0 0.75rem;
  color: #ffffff;
  border: 2px solid #1cc9a1;
  background-color: #1cc9a1;
  cursor: pointer;
  height: 100%;
  align-items: center;
}

.product-quantity .custom_quantity_input_container .btn {
    height: 1.5rem !important;
    padding-top: .125rem !important;
}

.component_container_table_item > td.product-quantity {
    padding: 0 2rem 0 0 !important;
}

thead th.product-quantity {
    padding: 0 !important;
}

li.component_option_radio_button_container
  .custom_quantity_input_container
  .btn.dec, .custom_quantity_input_container
  .btn.dec, .price_bar_custom_quantity_input_container .button.dec {
  border: 2px solid #fc7753 !important;
  background-color: #fc7753 !important;
}

li#component_option_radio_button_container_0
  div.custom_quantity_input_container,
div[data-nav_title="CPU"] .component_summary,
.component_option_radio_button .radio_button {
  display: none !important;
}

/* Disable Quantity Input Buttons */
li.component_option_radio_button_container
  .custom_quantity_input_container
  .btn,
div[data-nav_title="CPU"]
  li.component_option_radio_button_container
  .custom_quantity_input_container
  .btn,
div[data-nav_title="Operating System"]
  li.component_option_radio_button_container
  .custom_quantity_input_container
  .btn {
  display: none !important;
}
div[data-nav_title="Trusted Platform Module (TPM)"]
  li.component_option_radio_button_container
  .custom_quantity_input_container
  .btn {
  display: none !important;
}
div[data-nav_title="Cables"]
  li.component_option_radio_button_container
  .custom_quantity_input_container {
  display: none !important;
}
div[data-nav_title="Cables"] li#component_option_radio_button_container_0 {
	display: none !important;
}
div[data-nav_title="Mounting Rails"]
  li.component_option_radio_button_container
  .custom_quantity_input_container {
  display: none !important;
}
div[data-nav_title="Mounting Rails"] li#component_option_radio_button_container_0 {
	display: none !important;
}
/* Legacy: hide price and show "Included" via ::before for specific IDs (only when NOT using PHP-generated "included") */
#component_option_radio_button_3522 span.radio_button_price.price:not(:has(.component_option_included)) {
	visibility: hidden;
}

#component_option_radio_button_3519 span.radio_button_price.price:not(:has(.component_option_included)),
#component_option_radio_button_3468 span.radio_button_price.price:not(:has(.component_option_included)),
#component_option_radio_button_3520 span.radio_button_price.price:not(:has(.component_option_included)),
#component_option_radio_button_3521 span.radio_button_price.price:not(:has(.component_option_included)) {
	visibility: hidden;
}

#component_option_radio_button_3522 span.radio_button_price.price:not(:has(.component_option_included))::before,
#component_option_radio_button_3519 span.radio_button_price.price:not(:has(.component_option_included))::before,
#component_option_radio_button_3468 span.radio_button_price.price:not(:has(.component_option_included))::before,
#component_option_radio_button_3520 span.radio_button_price.price:not(:has(.component_option_included))::before,
#component_option_radio_button_3521 span.radio_button_price.price:not(:has(.component_option_included))::before {
  content: "Included";
  font-weight: bold;
  visibility: visible;
}

/* When PHP outputs "included" (3522, Mounting Rails), show that content and disable ::before so right-align works */
span.radio_button_price.price:has(.component_option_included) {
  visibility: visible !important;
}
span.radio_button_price.price:has(.component_option_included)::before {
  content: none !important;
  display: none !important;
}

#component_option_radio_button_3521 .woocommerce-Price-amount,
#component_option_radio_button_3468 .woocommerce-Price-amount,
#component_option_radio_button_3468 .component_option_each,
#component_option_radio_button_3522 .woocommerce-Price-amount,
#component_option_radio_button_3519 .woocommerce-Price-amount,
#component_option_radio_button_3468 .woocommerce-Price-amount,
#component_option_radio_button_3522 .relative-price-prefix,
#component_option_radio_button_3519 .relative-price-prefix,
#component_option_radio_button_3468 .relative-price-prefix,
#component_option_radio_button_3520 .woocommerce-Price-amount {
	display: none;
}

div[data-nav_title="Network Card"]
  li.component_option_radio_button_container
  .custom_quantity_input_container
  .btn {
  display: none !important;
}
div[data-nav_title="Warranty"]
  li.component_option_radio_button_container
  .custom_quantity_input_container
  .btn {
  display: none !important;
}
div[data-nav_title="Warranty"]
  li.component_option_radio_button_container
  .custom_quantity_input_container {
  display: none !important;
}

li.component_option_radio_button_container.selected
  .custom_quantity_input_container
  .btn {
  display: flex !important;
}

.component_option_radio_button {
  width: 100%;
  margin-bottom: 0.25rem;
  background-color: #ffffff;
}

.composite_component
  .component_options
  div.radio_button_input
  label.component_option_radio_button_select {
  border: 1px solid #b6b5b5 !important;
}

.composite_component
  .component_options
  .component_option_radio_button_container.selected
  div.radio_button_input
  label.component_option_radio_button_select {
  border: 2px solid #1cc9a1 !important;
}

#component_option_radio_button_container_0 {
  max-width: 100% !important;
}

.composite_form .step_title_wrapper,
.component .component_description {
  margin-bottom: 0 !important;
}

.component_title_text {
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 600;
}

.component_description p {
  color: #656565 !important;
}

.composite_form:not(.paged) .composite_wrap,
.component .composited_product_title_wrapper {
  padding-top: 0 !important;
}

.composite_wrap {
  display: none;
}

h5.radio_button_title.title {
  font-size: 0.875rem;
  font-weight: 400;
  margin-left: 0.25rem;
}

h5.radio_button_title.title,
.quantity_button {
  color: #656565 !important;
}

.component_option_radio_button_container .radio_button_description {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 0.375rem;
}

.component_option_radio_button_container.selected h5.radio_button_title.title,
.component_option_radio_button_container.selected .radio_button_description {
  font-weight: 700;
}

.composite_form:not(.paged) .component .component_inner {
  padding-bottom: 1.5rem !important;
}

.loading:before {
  content: "" !important;
  background: url(https://www.octoserver.com/wp-content/uploads/2024/06/spinner-thin.gif);
  background-size: contain;
  line-height: inherit;
  opacity: 1;
  width: 68px;
  height: 68px;
  top: -0.9rem;
  left: 5rem;
  position: absolute;
  z-index: 12;
  display: inline;
}

.et_pb_wc_cart_products_0_tb_body .component_table_item .quantity input.qty,
.et_pb_wc_cart_products_0_tb_body .component_table_item .product-quantity {
  background: none;
  color: #0f2038;
  text-align: left;
  padding: 0 !important;
  pointer-events: none;
  width: 4.3rem;
}

.product-quantity .quantity input {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
}

.et_pb_wc_cart_products_0_tb_body .component_container_table_item .quantity {
  margin-left: -1.5rem;
}

.composite-bulk-discount {
  gap: 1.25rem;
  align-items: center;
  background: #ffffff;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: none;
}

.discount-heading,
.button,
.woocommerce-info {
  font-family: "hyperspace-race-variable", sans-serif !important;
  font-variation-settings: "wght" 700 !important;
}

.composite-bulk-discount .col {
  width: 50%;
}

.original-price {
  text-decoration: line-through;
  color: rgba(0, 0, 0, 0.6) !important;
}

/* Initialize the counter for cart items */
.cart {
  counter-reset: composite-counter;
}

/* Initialize the counter for individual discounts in cart totals */
.composite-bulk-discount .discount-details {
  counter-reset: composite-discount-counter;
}

/* Increment the counter for each composite item in the cart */
.cart_item.component_container_table_item .product-name a:first-child::before {
  counter-increment: composite-counter;
  content: counter(composite-counter) ". ";
  margin-right: 5px; /* Adjust the spacing as needed */
}

/* Increment the counter for each individual discount item in the cart totals */
.individual-discount::before {
  counter-increment: composite-discount-counter;
  content: counter(composite-discount-counter) ". ";
  margin-right: 5px; /* Adjust the spacing as needed */
}

.component_table_item .component_table_item_price:after, .component_table_item .component_table_item_subtotal:after {
	display: none !important;
}

.quote-email-field {
  display: flex;
  flex-direction: column;
}

.quote-email-field label,
.quote-email-field input {
  margin-bottom: 0.5rem;
  font-family: "hyperspace-race-variable", sans-serif !important;
  font-variation-settings: "wght" 700 !important;
  text-transform: uppercase;
}

input#quote_email {
  padding: 0.75rem;
  border: 0;
  margin-bottom: 1rem;
}

.quote-form button {
  font-family: "hyperspace-race-variable", sans-serif;
  font-variation-settings: "wght" 700;
  width: 100%;
  margin-top: 1rem;
}

button#submit_quote {
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

h5.radio_button_title.title {
  word-wrap: break-word;
  overflow: visible;
  line-height: 1 !important;
}

.component_option_radio_button_container .radio_button_description .title {
  margin: 0.5rem 0.125rem !important;
}

.generate-pdf-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
}

.generate-pdf-btn:hover {
    background-color: #135e96;
}
