/**
 * Request a Quote — full-width section below </main> on single product pages.
 * Styles match: orange overlay, warehouse-style background, two-column heading + form grid.
 */

.single-product .content-area {
  max-width: 1440px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 21px 0 30px !important;
}
.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images {
  float: none;
  width: 100%;
}
.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
  float: none;
  width: 100%;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  .woocommerce-breadcrumb {
  color: #3a566e;
  font-family: "Roboto", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: normal !important;
  margin-bottom: 20px !important;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  .woocommerce-breadcrumb
  a {
  color: #bdc5cd;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  .woocommerce-breadcrumb
  .ts-breadcrumb-sep {
  color: #bdc5cd;
}
.single-product.woocommerce div.product {
  display: grid;
  grid-template-columns: 450px 1fr;
  column-gap: 51px;
}
.woocommerce-product-gallery__image {
  border: 1px solid #e3e3e3;
  border-radius: 5px;
  grid-column: span 3;
}
.woocommerce-product-gallery__image img.wp-post-image {
  border-radius: 5px;
}
.single-product.woocommerce div.product div.summary {
  padding-top: 30px;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 10px;
}
.woocommerce
  div.product
  div.images
  .woocommerce-product-gallery__image:nth-child(n + 2) {
  width: 100%;
  display: inline-flex;
  margin: 10px 10px 0px 0;
  justify-content: center;
  align-items: center;
  grid-column: auto;
}
.single-product.woocommerce div.product div.summary .ts-part-number {
  color: #f56c0b;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.woocommerce div.product .product_title {
  font-size: 30px;
  color: #3a566e;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 30px !important;
}
.woocommerce-product-details__short-description {
  margin-bottom: 30px;
}
.woocommerce-product-details__short-description p,
.ts-product-detail__manufacturer-value {
  font-size: 16px;
  font-weight: 400;
  color: #768c9f;
  line-height: 1.4;
  letter-spacing: 0;
}
.ts-product-detail__manufacturer {
  margin-bottom: 30px;
  display: grid;
  row-gap: 10px;
}
.ts-product-detail__manufacturer-label {
  font-size: 20px;
  font-weight: 700;
  color: #3a566e;
  line-height: 100%;
  letter-spacing: 0;
}
.single-product.woocommerce div.product div.summary .ts-price-unit {
  margin-top: 5px;
  color: #768c9f;
  font-size: 16px;
  font-weight: 400;
  line-height: 100%;
  margin-bottom: 30px;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  color: #3a566e;
  text-decoration: none;
  font-size: 30px;
  line-height: 100%;
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  opacity: 1;
  display: inline-block;
  font-size: 24px;
  color: #768c9f;
  line-height: 100%;
  font-weight: 400;
  margin-left: 20px;
}
.woocommerce div.product form.cart {
  display: flex;
}
.woocommerce div.product form.cart .button {
  vertical-align: middle;
  float: left;
  background: #f56c0b;
  padding: 17px 30px;
  border-radius: 5px;
  font-size: 16px;
  text-transform: uppercase;
  line-height: 100%;
  width: 100%;
  text-align: center;
  transition: background 0.25s ease-in-out;
  margin-left: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 25px;
  flex: 1 0 33.33%;
}
.woocommerce div.product form.cart .ts-login-to-order {
  flex: 1 0 33.33%;
}
.woocommerce div.product form.cart div.quantity {
  margin: 0 10px 0 0 !important;
}
.woocommerce div.product form.cart .quantity .qty {
  border: 1px solid #ccc;
  height: 50px;
  border-radius: 7px;
}
.woocommerce div.product form.cart .button::after {
  top: -1px;
  position: relative;
}

.woocommerce div.product form.cart .button:hover,
.button.wc-backward:hover {
  background: #df6006;
}
.woocommerce-message {
  outline: none;
}
.woocommerce div.product form.cart button.single_add_to_cart_button {
  width: 100%;
}
.woocommerce div.product form.cart {
  margin-bottom: 0;
}
.ts-product-detail__note {
  color: #768c9f;
  font-size: 12px;
  text-align: center;
  line-height: 100%;
  font-weight: 400;
  margin-bottom: 30px;
}
hr.ts-product-detail__hr {
  border: none;
  border-bottom: 1px solid #e3e3e3;
  margin-top: 0;
  margin-bottom: 20px;
}
summary.ts-product-detail__details-summary {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
summary.ts-product-detail__details-summary > span {
  font-weight: 700;
  color: #3a566e;
  line-height: 100%;
  font-size: 16px;
  letter-spacing: 0;
}
.ts-product-detail__details-summary::marker {
  display: none;
}
details.ts-product-detail__details span.ts-product-detail__details-icon {
  position: relative;
}
details.ts-product-detail__details[open]
  span.ts-product-detail__details-icon::before {
  content: "-";
  font-size: 48px;
  font-weight: 300;
  line-height: 2px;
  height: 4px;
  position: absolute;
  right: 0;
  top: -2px;
}
details.ts-product-detail__details
  span.ts-product-detail__details-icon::before {
  content: "+";
  font-size: 30px;
  font-weight: 300;
  line-height: 2px;
  height: 4px;
  position: absolute;
  right: 0;
  top: 0px;
}
.ts-product-detail__details-body {
  color: #768c9f;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
}

.ts-quote-section {
  padding: 30px 0;
}
.ts-quote-section .ts-quote-section__inner {
  max-width: 1440px;
  grid-template-columns: 420px 1fr;
  gap: 32px 82px;
}
.ts-quote-section .ts-quote-section__title {
  font-size: 30px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0;
  max-width: 100%;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.ts-quote-section {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  font-family:
    "Roboto",
    system-ui,
    -apple-system,
    Segoe UI,
    Arial,
    sans-serif;
  color: #fff;
  /* Fallback if no background image */
  background-color: #c45a18;
}

.ts-quote-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #5c4a3a;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) contrast(0.95);
}

.ts-quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Orange overlay — matches ~#f27420 / #f37021 at ~86% opacity */
  background: linear-gradient(
    0deg,
    rgba(243, 112, 33, 0.88),
    rgba(242, 116, 32, 0.88)
  );
  pointer-events: none;
}

.ts-quote-section__inner {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 48px 56px;
  align-items: start;
}

.ts-quote-section__title {
  margin: 0;
  padding: 0;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  max-width: 18ch;
}

.ts-quote-form {
  width: 100%;
}

.ts-quote-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

/* Required asterisk — HTML cannot be used inside placeholder; use this span to color the * */
.ts-quote-field {
  position: relative;
}

.ts-quote-field__required {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #f37021; /* change asterisk color here */
  white-space: nowrap;
}

.ts-quote-field--has-required-mark input,
.ts-quote-field--has-required-mark select {
  position: relative;
  z-index: 1;
}

.ts-quote-field input,
.ts-quote-field select,
.ts-quote-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 5px;
  padding: 19px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #4b5563;
  background: #fff;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e3e3e3;
}

button.ts-quote-form__submit {
  font-size: 16px;
  font-weight: 700;
  padding: 17px 50px;
  line-height: 100%;
}
button.ts-quote-form__submit:hover {
  background-color: #264056 !important;
}
h2#ts-featured-products-heading {
  font-weight: 500 !important;
  line-height: 100% !important;
}
section.ts-products.ts-products--after-quote {
  padding: 50px 0 !important;
}

.ts-quote-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233a566e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.ts-quote-field input::placeholder,
.ts-quote-field textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* Orange asterisk hint for required placeholders (text includes *) */
.ts-quote-field input:required:invalid,
.ts-quote-field select:required:invalid,
.ts-quote-field textarea:optional {
  box-shadow: none;
}

.ts-quote-field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.5;
}

.ts-quote-field--full {
  grid-column: 1 / -1;
}

.ts-quote-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.ts-quote-form__submit {
  border: 0;
  border-radius: 4px;
  padding: 14px 36px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: #3a566e !important;
  color: #fff;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.ts-quote-form__submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ts-quote-form__notice {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  text-align: right;
}

@media (max-width: 980px) {
  .ts-quote-section {
    padding: 48px 18px 56px;
  }

  .ts-quote-section__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ts-quote-section__title {
    max-width: none;
  }

  .ts-quote-form__grid {
    grid-template-columns: 1fr;
  }

  .ts-quote-form__actions {
    justify-content: stretch;
  }

  .ts-quote-form__submit {
    width: 100%;
  }

  .ts-quote-form__notice {
    text-align: center;
  }
}

/**
 * Featured Products carousel — single product page, directly below Request a Quote.
 * Slider/card visuals use theme .ts-fp-* and .ts-section-heading from style.css.
 */

.ts-products.ts-products--after-quote {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 48px 24px 64px;
  background: #ffffff;
  box-sizing: border-box;
}

.ts-products.ts-products--after-quote .ts-section-heading {
  margin-bottom: 8px;
}

.ts-products.ts-products--after-quote .ts-fp-slider {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 1540px) {
  section.ts-products.ts-products--after-quote,
  .single-product .content-area,
  .ts-quote-section .ts-quote-section__inner {
    padding-left: 50px !important;
    padding-right: 50px !important;
    max-width: 100% !important;
  }
}
@media (max-width: 1024px) {
  .ts-quote-section .ts-quote-section__inner {
    grid-template-columns: 320px 1fr;
    gap: 32px 22px;
  }
  .single-product.woocommerce div.product {
    grid-template-columns: 350px 1fr;
    column-gap: 24px;
  }
  section.ts-products.ts-products--after-quote,
  .single-product .content-area,
  .ts-quote-section .ts-quote-section__inner {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
}
@media (max-width: 992px) {
  .single-product.woocommerce div.product,
  .ts-quote-section .ts-quote-section__inner {
    grid-template-columns: 1fr;
  }
  .ts-quote-section .ts-quote-section__title {
    text-align: center;
  }
  .woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    grid-template-columns: repeat(5, 1fr);
  }
  .woocommerce-product-gallery__image {
    grid-column: span 5;
  }
}
@media (max-width: 768px) {
  .ts-products.ts-products--after-quote {
    padding: 32px 16px 48px;
  }
  .ts-quote-section .ts-quote-section__inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
@media (max-width: 579px) {
  .woocommerce div.product .product_title {
    font-size: 24px;
  }
  .woocommerce div.product p.price ins,
  .woocommerce div.product span.price ins {
    font-size: 24px;
  }
  .woocommerce div.product p.price del,
  .woocommerce div.product span.price del {
    font-size: 18px;
    margin-left: 10px;
  }
  .woocommerce div.product form.cart .button {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px;
  }
  .woocommerce div.product form.cart {
    flex-direction: column;
  }
  .woocommerce div.product form.cart div.quantity {
    margin: 0 0px 10px 0 !important;
  }
  .woocommerce div.product form.cart .quantity .qty {
    width: 100%;
  }
}
