/**
Theme Name: White Abrasives
Author: Jean Cote
Author URI: https://www.jeancote.net/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites...
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: white-abrasives
Template: astra
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
  --wa-navy: #0b3a5b;
  --wa-blue: #1f6fb2;
  --wa-blue-soft: #eaf3fb;
  --wa-border: rgba(11, 58, 91, 0.12);
  --wa-shadow: 0 10px 30px rgba(11, 58, 91, 0.08);
  --wa-brand-h1: #003e6d;
}

/* =========================================================
   HEADER
   ========================================================= */

@media (min-width: 922px) and (max-width: 1077px) {
  .main-header-menu #menu-item-30 {
    display: none;
  }
}

@media (min-width: 922px) and (max-width: 995px) {
  .main-header-menu .menu-link {
    padding: 0 6px !important;
  }
}

/* =========================================================
   CONTENT / GLOBAL
   ========================================================= */

h1 {
  color: var(--wa-brand-h1);
}

/* Thrive floating header spacing */
.site-content .tve_flt {
  padding-top: 92px;
}

/* Generic element utility */
.text-bottom-border :is(p, h5) {
  margin-bottom: 0;
}

/* =========================================================
   HOMEPAGE
   ========================================================= */

.homepage-products h5 a {
  text-decoration: none !important;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer-widget-area .widget-title {
  margin-bottom: 0;
}

/* Large desktop: min widths */
@media (min-width: 1280px) {
  .site-footer-primary-section-1 { min-width: 350px; }
  .site-footer-primary-section-3 { min-width: 240px; }
  .site-footer-primary-section-4 { min-width: 175px; }
  .site-footer-primary-section-5 { min-width: 215px; }
}

/* Mid-range: reflow footer columns (logo full width first) */
@media (min-width: 545px) and (max-width: 1279px) {
  .site-primary-footer-inner-wrap.ast-builder-grid-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Column 1 – logo: full width, first row */
  .site-footer-primary-section-1 {
    flex: 0 0 100% !important;
    order: 1;
    text-align: center;
    margin-bottom: 1rem;
  }

  /* Column ordering */
  .site-footer-primary-section-2 { order: 2; }
  .site-footer-primary-section-3 { order: 3; }
  .site-footer-primary-section-4 { order: 4; }
  .site-footer-primary-section-5 { order: 5; }

  .site-footer-primary-section-1 p {
    text-align: center;
  }

  .site-footer-primary-section-1 img {
    display: inline-block;
    max-width: 100%;
    height: auto;
  }
}

/* Tablet menu alignment tweak */
@media (max-width: 921px) {
  .footer-widget-area[data-section="section-footer-menu"]
  .astra-footer-tablet-vertical-menu
  .menu-item {
    align-items: normal;
  }
}

/* 544–811px: enforce widths + reorder some columns */
@media (min-width: 544px) and (max-width: 811px) {
  .site-footer-primary-section-2,
  .site-footer-primary-section-3,
  .site-footer-primary-section-4,
  .site-footer-primary-section-5 {
    flex: 0 0 30% !important;
  }

  .site-footer-primary-section-2 { order: 2; min-width: 240px; }
  .site-footer-primary-section-3 { order: 4; min-width: 240px; }
  .site-footer-primary-section-4 { order: 3; min-width: 240px; }
  .site-footer-primary-section-5 { order: 5; min-width: 240px; }

  .footer-widget-area[data-section="section-footer-menu"]
  .astra-footer-tablet-vertical-menu {
    justify-content: left;
  }

  .footer-widget-area[data-section="section-footer-menu"]
  .astra-footer-tablet-vertical-menu li a {
    padding: 0 !important;
  }
}

.ast-footer-copyright a {
	color: #ffffff;
}

.ast-footer-copyright a:hover {
	text-decoration: underline;
	opacity: 0.85;
}

/* Mobile footer spacing */
@media (max-width: 544px) {
  .site-footer-primary-section-2 {
    margin-bottom: 0 !important;
  }

  .site-footer-primary-section-3,
  .site-footer-primary-section-4 {
    margin-bottom: 20px !important;
  }

  .site-footer-primary-section-4 .address-meta {
    width: 100%;
  }

  .site-footer-primary-section-5 .widget-address-field {
    display: flex;
    align-items: center;
    justify-content: center; /* centers icon + text horizontally */
    gap: 8px;
    text-align: center;
    margin: 0 auto;
  }
}

/* =========================================================
   PRODUCTS PAGE
   ========================================================= */

.products-aluminum-zirconium {
  border-radius: 6px !important;
}

@media (max-width: 766px) {
  /* Product rows only (excludes bottom CTA row) */
  .products-page-products
  .tcb-flex-row.tcb--cols--2[data-css="tve-u-19b6b87231f"] {
    display: flex !important;
    flex-direction: column !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  /* Flatten BOTH wrappers so order can work */
  .products-page-products
  .tcb-flex-row.tcb--cols--2[data-css="tve-u-19b6b87231f"]
  > .tcb-flex-col,
  .products-page-products
  .tcb-flex-row.tcb--cols--2[data-css="tve-u-19b6b87231f"]
  > .tcb-flex-col
  > .tcb-col {
    display: contents !important;
  }

  /* Order: image -> text -> button */
  .products-page-products
  .tcb-flex-row.tcb--cols--2[data-css="tve-u-19b6b87231f"]
  .tve_image_caption {
    order: 1 !important;
  }

  .products-page-products
  .tcb-flex-row.tcb--cols--2[data-css="tve-u-19b6b87231f"]
  .tcb-flex-col.c-66 .thrv_text_element {
    order: 2 !important;
  }

  .products-page-products
  .tcb-flex-row.tcb--cols--2[data-css="tve-u-19b6b87231f"]
  .tcb-flex-col.c-33 .thrv-button {
    order: 3 !important;
    margin-top: 16px !important;
    display: flex !important;
    justify-content: center !important;
  }
}

/* =========================================================
   APPLICATIONS GUIDE PAGE (Navigation)
   ========================================================= */

/* Thrive wrapper: remove double border */
.thrv_custom_html_shortcode.apps-nav {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Desktop sidebar */
nav.apps-nav {
  position: sticky !important;
  top: 50px !important;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden !important;
  padding: 14px;
  box-sizing: border-box;

  background: #fff;
  border: 1px solid var(--wa-border);
  border-radius: 12px;
  box-shadow: var(--wa-shadow);

  scrollbar-width: thin;
}

nav.apps-nav::-webkit-scrollbar { width: 6px; }

nav.apps-nav::-webkit-scrollbar-thumb {
  background: rgba(11, 58, 91, 0.28);
  border-radius: 3px;
}

nav.apps-nav * {
  box-sizing: border-box;
  max-width: 100%;
}

/* Intro */
.apps-nav__intro {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--wa-border);
}

.apps-nav__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wa-navy);
  opacity: 0.8;
}

.apps-nav__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(11, 58, 91, 0.72);
}

/* Text wrap */
.apps-acc__head,
.apps-link {
  white-space: normal;
  word-break: break-word;
}

/* Accordion heading */
.apps-acc__head {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;

  text-align: left;
  cursor: pointer;

  background: #f4f8fb;
  color: var(--wa-navy) !important;
  border: 1px solid var(--wa-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0 6px;

  font-size: 14px;
  font-weight: 700;
}

.apps-acc__head:hover {
  background: var(--wa-blue-soft);
}

/* Clean focus styles */
.apps-acc__head:focus,
.apps-acc__head:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: #f4f8fb !important;
  color: var(--wa-navy) !important;
  border-color: var(--wa-border) !important;
}

/* Brand focus ring (only on keyboard focus) */
.apps-acc__head:focus-visible {
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.35) !important;
}

/* Keep active header styling even when focused */
.apps-acc__head.is-active:focus,
.apps-acc__head.is-active:focus-visible {
  background: var(--wa-blue-soft) !important;
  border-color: rgba(31, 111, 178, 0.65) !important;
}

.apps-acc__chev {
  flex: 0 0 auto;
  margin-left: 10px;
  font-size: 14px;
  line-height: 1;
  color: var(--wa-navy);
  opacity: 0.55;
}

/* Panel + links */
.apps-acc__panel {
  padding: 6px 6px 2px;
}

.apps-link {
  display: block;
  padding: 8px 10px;
  margin: 4px 0;
  border-radius: 9px;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;

  text-decoration: none !important;
  color: var(--wa-navy);
  opacity: 0.95;
}

.apps-link:hover {
  background: rgba(31, 111, 178, 0.10);
}

.apps-link.is-active {
  font-weight: 800;
  opacity: 1;
  background: rgba(31, 111, 178, 0.15);
  border-left: 4px solid var(--wa-blue);
  padding-left: 8px;
}

.apps-acc__head.is-active {
  background: var(--wa-blue-soft);
  border-color: rgba(31, 111, 178, 0.65);
}

.apps-acc__head.is-active .apps-acc__chev {
  opacity: 0.85;
}

/* Basic focus for links (kept as you had it) */
.apps-acc__head:focus,
.apps-link:focus {
  outline: 2px solid rgba(31, 111, 178, 0.45);
  outline-offset: 2px;
}

/* Mobile jump bar */
.apps-nav-mobile {
  display: none;
}

@media (max-width: 900px) {
  /* Show jump bar only when JS adds .is-visible */
  .apps-nav-mobile {
    display: block !important;
    position: fixed !important;
    left: 0;
    right: 0;
    top: var(--apps-mobile-top, 20px) !important;
    z-index: 999999 !important;
    padding: 0 12px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .apps-nav-mobile.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .apps-nav-mobile__toggle {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--wa-border);
    background: #fff;
    box-shadow: var(--wa-shadow);
    color: var(--wa-navy);
    font-weight: 700;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Nav becomes dropdown panel */
  nav.apps-nav {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    display: none !important;
    margin-top: 12px;
  }

  nav.apps-nav.is-open {
    display: block !important;
  }

  body.apps-jump-visible {
    scroll-padding-top: calc(var(--apps-mobile-top, 56px) + 64px);
  }
}

@media (min-width: 901px) {
  .apps-nav-mobile {
    display: none !important;
  }
}

@media (max-width: 900px) {
  nav.apps-nav.is-open {
    position: fixed !important;
    left: 12px;
    right: 12px;
    top: calc(var(--apps-mobile-top, 56px) + 54px);
    z-index: 999998 !important;
    max-height: 60vh;
    overflow: auto !important;
  }

  /* Prevent 100% + padding/border overflow */
  .apps-nav-mobile,
  .apps-nav-mobile__toggle {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  /* Select Right Column, fix full width */
  [data-css="tve-u-19b90e2da66"] {
    width: 100%;
    max-width: 100% !important;
  }
}

/* Desktop: make the Thrive wrapper sticky (more reliable than sticky on <nav>) */
@media (min-width: 901px) {
  .thrv_custom_html_shortcode.apps-nav {
    position: sticky !important;
    top: 50px !important;
    align-self: flex-start;
    height: fit-content;
  }

  /* Inner nav should NOT also be sticky */
  nav.apps-nav {
    position: static !important;
    top: auto !important;
  }
}

/* =========================================================
   TECHNICAL RESOURCES PAGE
   ========================================================= */

.specific-technical-data-div ul {
  margin-left: 0 !important;
  padding-left: 0;
}

/* =========================================================
   GET QUOTE PAGE — Repeater Buttons + External Add Button
   ========================================================= */

:where(.ff-el-repeat-buttons-list, .wa-single-add-btn) {
  --btn-h: 42px;
  --radius: 10px;
  --focus-ring: 0 0 0 3px rgba(31, 111, 178, 0.18);
  --gap: 10px;
}

/* Fluent Forms repeater (+/-) */
.ff-el-repeat-buttons-list.js-container-repeat-buttons {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
}

.ff-el-repeat-buttons-list :is(.repeat-plus, .repeat-minus) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  border-radius: var(--radius);
  border: 1px solid var(--wa-border);
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.ff-el-repeat-buttons-list :is(.repeat-plus, .repeat-minus) svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Plus (secondary) */
.ff-el-repeat-buttons-list .repeat-plus {
  padding: 0 16px;
  gap: 8px;
  border-color: var(--wa-blue);
  color: var(--wa-blue);
  font-weight: 600;
  white-space: nowrap;
}

/* Remove if your JS supplies label text */
.ff-el-repeat-buttons-list .repeat-plus::after {
  content: "Add Another Product Line";
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
}

.ff-el-repeat-buttons-list .repeat-plus:hover {
  background: var(--wa-blue-soft);
}

/* Minus (icon) */
.ff-el-repeat-buttons-list .repeat-minus {
  width: var(--btn-h);
  min-width: var(--btn-h);
  padding: 0;
  color: var(--wa-navy);
}

.ff-el-repeat-buttons-list .repeat-minus:hover {
  background: #f8f9fa;
}

.ff-el-repeat-buttons-list :is(.repeat-plus, .repeat-minus):is(:focus, :focus-visible) {
  outline: none;
  border-color: var(--wa-blue);
  box-shadow: var(--focus-ring);
}

.ff-el-repeat-buttons-list :is(.repeat-plus, .repeat-minus):active {
  transform: translateY(1px);
}

/* External "Add Another Product" button */
.wa-single-add-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.wa-single-add-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  height: var(--btn-h);
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--wa-border);
  background: #ffffff;
  color: #003e6d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  box-shadow: none;
}

.wa-single-add-btn:hover {
  background: #f8f9fa;
  color: #003e6d;
  border-color: var(--wa-border);
}

.wa-single-add-btn:is(:focus, :focus-visible) {
  outline: none;
  box-shadow: var(--focus-ring);
}

.wa-single-add-btn:active {
  /* transform: translateY(1px); */
}

.wa-single-add-btn .wa-plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: #ffffff;
  background: #003e6d;
  font-weight: bold;
}

/* Remove number input spinners (lbs quantity field) */

/* Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* Tooltil */
/* Hide the broken SVG inside Fluent Forms tooltip */
.ff-el-tooltip svg {
  display: none !important;
}

/* Make the tooltip icon visible using a pseudo-element */
.ff-el-tooltip {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  cursor: help !important;
  margin-left: 5px !important;
}

/* Icon (simple "i" in a circle) */
.ff-el-tooltip::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;
  border-radius: 999px;

  border: 1px solid #e9ecef;
  background: #ffffff;
  color: var(--wa-navy);

  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.8;
}

.ff-el-tooltip:hover::before {
  opacity: 1;
  border-color: var(--wa-blue);
  color: var(--wa-blue);
  background: var(--wa-blue-soft);
}

/* Style Form */
.quote-form-css hr {
  border: 0;
  height: 2px !important;
  /*background: linear-gradient(
    90deg,
    rgb(227,232,238) 0%,
    rgba(227,232,238,0) 100%
  );*/
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgb(227,232,238) 50%,
    rgba(0,0,0,0) 100%
  );
  margin-bottom: 20px !important;
  margin-top: 10px !important;
}
.quote-form-background, .quote-form-background-top, .quote-form-background-bottom {
	background: #f3f4f8;
	padding-left: 20px;
	padding-right: 20px;
}
.quote-form-background-top {
	margin-bottom: 0 !important;
	border-radius: 6px 6px 0 0;
	padding-top: 20px;
}
.quote-form-background-bottom {
	border-radius: 0 0 6px 6px;
	padding-bottom: 20px;
}
.quote-form-no-background, .quote-form-no-background-top, .quote-form-no-background-bottom {
	padding-left: 20px;
	padding-right: 20px;
}
.quote-form-no-background-top {
	padding-top: 20px;
}
.quote-form-no-background-bottom {
	padding-bottom: 20px;
}
.quote-form-css .ff_submit_btn_wrapper {
	padding-left: 20px;
	padding-right: 20px;
}
.quote-form-css input[type="number"] {
	height: auto;
}
.quote-form-css input:hover, .ff-default .ff-el-form-control:hover {
  border-style: solid;
  border-color: #C9A86A !important; /* gold */
}
.quote-form-css input:focus, .ff-default .ff-el-form-control:focus {
  border-style: solid;
  border-color: #0A3A5A !important; /* gold */
}
.quote-form-css .ff-btn-submit {
	background-color: #003e6d !important;
	letter-spacing: 0px;
    font-size: 18px;
	width: 100%;
	padding: 15px 25px 15px 25px;
	transition: all .2s linear;
	box-shadow: rgba(0,0,0,0.1) 0px 8px 12px 0px;
}
.quote-form-css .ff-btn-submit:hover {
	background-color: rgb(0,39,70) !important;
	opacity: 1;
}
/* First repeater row: no margin */
.quote-form-css 
.ff-repeater-container 
.ff_repeater_cont_row:first-child 
.ff-el-repeat-buttons-list {
  margin-top: 11px !important;
}

/* All other repeater rows: pull buttons up */
.quote-form-css 
.ff-repeater-container 
.ff_repeater_cont_row:not(:first-child) 
.ff-el-repeat-buttons-list {
  margin-top: -19.5px !important;
}
.quote-form-css .product-request {
	margin-top: 20px;
	margin-bottom: -20px;
}
.quote-form-css .product-request-products {
	margin-bottom: 40px;
}
.quote-form-css .ff-el-section-break .ff-el-section-title {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.2px;
}
.quote-form-css .additional-information {
	margin-top: 20px;
}
/* Hide repeated column labels on repeater rows after the first */
.ff_repeater_body .ff_repeater_cont_row:not(:first-child) .ff-el-input--label {
  display: none !important;
}

/* Hide the tooltip icon too on repeated rows (optional) */
.ff_repeater_body .ff_repeater_cont_row:not(:first-child) .ff-el-tooltip {
  display: none !important;
}

/* Remove the top spacing that label containers can leave behind */
.ff_repeater_body .ff_repeater_cont_row:not(:first-child) .ff-el-group {
  margin-top: 0 !important;
}

.quote-form-css .quote-disclaimer {
	margin-bottom: 0;
	margin-top: 10px;
}
.quote-form-css .quote-disclaimer p {
	font-size: 15px;
}
@media (max-width: 767px) {
	.quote-form-css .mobile-bottom-padding {
		padding-bottom: 20px;
	}
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-form-css label {
	color: #2f3a45 !important;
}
.contact-form-css textarea {
	line-height: 1.65 !important;
}
.contact-form-css .how-can-we-help-you {
	margin-bottom: 30px;
}
.contact-form-css input:hover {
  border-style: solid;
  border-color: #C9A86A !important; /* gold */
}
.contact-form-css input:focus {
  border-style: solid;
  border-color: #0A3A5A !important; /* gold */
}
.contact-form-css .ff-btn-submit {
  background-color: #003e6d !important;
  letter-spacing: 0px;
  font-size: 18px;
  width: 100%;
  padding: 15px 25px 15px 25px;
  transition: all .2s linear;
  box-shadow: rgba(0,0,0,0.1) 0px 8px 12px 0px;
}
.contact-form-css .ff-btn-submit:hover {
	background-color: rgb(0,39,70) !important;
	opacity: 1;
}
.contact-page-phone p a, .contact-page-email p a {
	text-decoration: none !important;
	color: #2f3a45;
}