/* Match the Divi content rows on every Client View route. */
.vue-plugin-shell {
  padding: 58px 0 60px;
  background: #fff;
}
.vue-plugin-shell #vue-plugin-app {
  width: 80%;
  max-width: 1600px !important;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
}
.entry-content #vue-plugin-app { width: 100%; max-width: 1600px !important; margin: 0 auto; padding: 0; }
#vue-plugin-app *, .vuer-products-shortcode *, .vuer-categories-shortcode * { box-sizing: border-box; }
#vue-plugin-app .product-options h1 { font-size: 36px; margin-bottom: 32px; font-weight: 400; }
#vue-plugin-app .product-breadcrumbs { display: none; }
#vue-plugin-app .product-information { margin-top: 0; }
#vue-plugin-app .product-dropdown__toggle {
  width: 100%;
  border: 0;
  border-top: 2px solid #707070;
  border-radius: 0;
  padding: 14px 16px;
  background: #fff;
  color: #707070;
  font: 400 20px/1.4 Helvetica, Verdana, Arial, sans-serif;
  text-transform: uppercase;
  text-align: left;
  box-shadow: none;
}
#vue-plugin-app .product-dropdown__toggle svg,
#vue-plugin-app .product-dropdown__arrow { display: none; }
#vue-plugin-app .product-dropdown__toggle::after { content: '+'; font-size: 26px; line-height: 1; margin-left: auto; }
#vue-plugin-app .product-dropdown__toggle[aria-expanded="true"]::after { content: '−'; }
/* Expanded content belongs to the accordion, without a separate framed panel. */
#vue-plugin-app .description-dropdown__content,
#vue-plugin-app .product-variation-options__panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
/* Reserve the option border for selection; keyboard focus remains visible. */
#vue-plugin-app .product-variation-options__option:not(.is-selected) {
  border-color: transparent;
  box-shadow: none;
}
#vue-plugin-app .description-dropdown,
#vue-plugin-app .product-variation-options,
#vue-plugin-app .vue-plugin-product-notes { max-width: none; width: 100%; }
#vue-plugin-app .description-dropdown { margin-bottom: 0; }
/* Close the complete dropdown stack with one matching bottom divider. */
#vue-plugin-app .product-options:not(:has(.product-variation-options__field)) .description-dropdown,
#vue-plugin-app .product-variation-options:has(.product-variation-options__field) {
  border-bottom: 2px solid #707070;
}
#vue-plugin-app .product-variation-options { gap: 0; margin-top: 0; }
#vue-plugin-app .vue-plugin-product-notes { margin-top: 12px; }
.safaz-client-view-quote #vue-plugin-app h1 { display: none; }
.safaz-client-view-quote #vue-plugin-app {
  --vuer-checkout-primary: #841524;
  --vuer-checkout-primary-contrast: #fff;
  --vuer-checkout-radius: 0px;
}
#vue-plugin-app .product-cta .product-add-to-cart,
#vue-plugin-app .product-cta a.product-add-to-cart {
  width: 100%;
  max-width: none;
  background: #841524;
  border: 2px solid #841524;
  color: #fff;
  border-radius: 0;
  padding: 10px 16px;
  font: 700 20px/1.4 'Open Sans', Arial, sans-serif;
  text-transform: uppercase;
  text-align: center;
}
#vue-plugin-app .product-cta a.product-add-to-cart { background: #fff; color: #841524; }
#vue-plugin-app .product-cta .product-add-to-cart:hover { background: #6b101d; border-color: #6b101d; color: #fff; }
/* Give quote confirmations their own readable panel beneath the complete CTA group. */
#vue-plugin-app .add-to-quote-toast {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  gap: 24px;
  margin-top: 20px;
  padding: 24px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 10px #00000008;
  color: #666;
  font: inherit;
}
#vue-plugin-app .add-to-quote-toast__message {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
#vue-plugin-app .add-to-quote-toast__button,
#vue-plugin-app .add-to-quote-toast__button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #841524;
  border-radius: 4px;
  color: #841524;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
#vue-plugin-app .add-to-quote-toast__button:hover { background: #841524; color: #fff; }
@media (max-width: 600px) {
  #vue-plugin-app .add-to-quote-toast { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  #vue-plugin-app .add-to-quote-toast__button { width: 100%; }
}
#vue-plugin-app .product-cta .product-add-to-cart:focus-visible,
.safaz-quote-list:focus-visible, #ws_top_search:focus-visible { outline: 2px solid #841524; outline-offset: 4px; }
#vue-plugin-app .product-collection-includes > h2,
#vue-plugin-app .related-products > h2 { font-size: 28px; text-transform: uppercase; font-weight: 400; }
.vue-plugin-product-card { border: 0 !important; border-radius: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }
.vue-plugin-product-card__image-wrap { border-radius: 0 !important; background: #fff !important; }
.vue-plugin-product-card__heading { text-align: center; }
.vue-plugin-product-card__heading h2,
.vue-plugin-product-card__heading h3 { font-size: 18px; text-transform: uppercase; font-weight: 400; }
.vue-plugin-category-card { border-radius: 0 !important; }

/* Keep the existing button styling, with Quote List immediately before search. */
#main-header .safaz-quote-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 14px;
  margin-right: 20px;
  background: #841524;
  border: 2px solid #841524;
  color: #fff;
  font: 700 14px/1.4 'Open Sans', Arial, sans-serif;
  white-space: nowrap;
  text-decoration: none;
}
#main-header .safaz-quote-list:hover { background: #6b101d; border-color: #6b101d; }
#main-header .safaz-quote-list__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 .25em;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: .8em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* Native Client View suggestions share the site's existing search layout. */
.safaz-header-live-search { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.safaz-header-live-search > .safaz-live-search { flex: 1 1 auto; min-width: 0; }
#main-header #ws_search_close { flex: 0 0 24px; height: 44px; padding: 0; border: 0; background: transparent; color: #707070; font: inherit; cursor: pointer; }
.safaz-live-search .vuer-search__input { border-color: #707070; border-radius: 0; background: #fff; color: #666; font: inherit; }
.safaz-live-search .vuer-search__input:focus { outline-color: #841524; }
.safaz-live-search .vuer-search__submit { border: 0; border-radius: 0; background: transparent; color: #373756; }
.safaz-live-search .vuer-search__suggestions { z-index: 1000; max-height: min(60vh, 460px); overflow-y: auto; border-radius: 0; }
.safaz-live-search .vuer-search__suggestion { font-size: 16px; line-height: 1.4; }
.safaz-mobile-search { display: none; }
@media (min-width: 982px) {
  #main-header .logo_container { flex: 0 0 auto; max-width: clamp(180px, 18vw, 250px); }
  #main-header #et-top-navigation { width: auto; min-width: 0; flex: 1 1 auto; }
  #main-header #ws_top_search { width: 44px; flex: 0 0 44px; margin-right: 12px; padding: 12px 0; }
  #mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item > a.mega-menu-link {
    padding-left: clamp(5px, .7vw, 14px);
    padding-right: clamp(5px, .7vw, 14px);
    font-size: clamp(11px, 1vw, 16px);
  }
  /* Replace the menu's flexible space while preserving both header action slots. */
  #main-header .search_open .ws_search_wrap { order: 1; flex: 1 1 auto; min-width: 0; width: auto; margin: 0 20px; }
  #main-header .search_open .safaz-quote-list { order: 2; }
  #main-header .search_open #ws_top_search { order: 3; display: block; visibility: hidden; }
}
@media (max-width: 981px) {
  .safaz-mobile-search { display: block; position: relative; z-index: 1000; }
  .safaz-mobile-search .vuer-search__input { height: 44px; border: 0; padding: 10px 44px 10px 10px; font-size: 18px; }
  #main-header .container.et_menu_container { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  #main-header .logo_container { position: static; width: auto; flex: 1 1 auto; min-width: 0; }
  #main-header .logo_container #logo { width: auto; max-width: 100%; max-height: 75px; }
  #main-header #et-top-navigation { order: 4; flex: 0 0 40px; width: 40px; padding: 0 !important; float: none; margin: 0; }
  /* Mobile uses the dedicated search form below the header. */
  #main-header #ws_top_search,
  #main-header #et_top_search,
  #main-header .ws_search_wrap,
  #main-header .search_open .ws_search_wrap { display: none; }
  #main-header .safaz-quote-list { order: 2; margin: 0; padding: 8px 9px; font-size: 12px; }
  #main-header #top-menu-nav { float: none; }
  /* Max Mega Menu computes its full-width offset from this positioned wrapper. */
  #main-header #mega-menu-wrap-primary-menu { position: relative; }
  #main-header #et-top-navigation #top-menu-nav #mega-menu-wrap-primary-menu ul#mega-menu-primary-menu { top: calc(100% + 27.5px); }
  #main-header #mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item > a.mega-menu-link { font-size: 14px; }
  .vue-plugin-shell { padding: 32px 0 40px; }
  #vue-plugin-app .product-options h1 { font-size: 32px; margin-bottom: 24px; }
}
@media (max-width: 380px) {
  #main-header .container.et_menu_container { width: 94%; gap: 4px; }
  #main-header .safaz-quote-list { padding: 8px 6px; font-size: 11px; }
  #main-header #et-top-navigation { flex-basis: 34px; width: 34px; }
}
