/*
Theme Name: Lanex Block Theme
Author: Lanex, LLC
Author URI: https://www.lanex.com
Theme URI: https://www.lanex.com
Tags: full-site-editing, editor-style, block-styles, block-patterns
Text Domain: lanex-starter-theme
Requires at least: 6.3
Requires PHP: 7.4
Tested up to: 6.3
Version: 1.0.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

footer {
	margin: 0 !important;
}

.wp-block-navigation-item__content[href="#"] {
  pointer-events: none;
  cursor: default;
  color: inherit;
}



/*
**
Buttons
**
*/


#searchClose {
    position: absolute;
    right: 1em;
    top: 0.5em;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5em;
}

.wp-block-button a{
	transition: all 0.3s ease;
}

.wp-block-button.is-style-solid-accent-blue a{
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-solid-accent-blue:hover a{
  background: #04317b;
  color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-outline-accent-blue a{
  background: transparent;
  border: 2px solid var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
  padding: 	calc(0.65rem - 2px) 
  calc(2.3125rem - 2px)
  calc(0.9375rem - 2px)
  calc(2.3125rem - 2px);
}

.wp-block-button.is-style-outline-accent-blue:hover a{
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-solid-accent-green a{
  background: var(--wp--preset--color--accent-2);
  color: var(--wp--preset--color--black);
}

.wp-block-button.is-style-solid-accent-green:hover a{
  background: #80ff59;
  color: var(--wp--preset--color--black);
}

.wp-block-button.is-style-outline-accent-green a{
  background: transparent;
  border: 2px solid var(--wp--preset--color--accent-2);
  color: var(--wp--preset--color--accent-2);
  padding: 	calc(0.65rem - 2px) 
  calc(2.3125rem - 2px)
  calc(0.9375rem - 2px)
  calc(2.3125rem - 2px);
}

.wp-block-button.is-style-outline-accent-green:hover a{
  background: var(--wp--preset--color--accent-2);
  color: var(--wp--preset--color--black);
}

.frm_style_arcon.with_frm_style .frm_submit button,
.frm_style_arcon-ring-design.with_frm_style .frm_submit button{
	background-color: var(--wp--preset--color--accent);
    border-radius: 100px;
    border-color: var(--wp--preset--color--accent);
    border-width: 0;
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--body);
    font-size: clamp(1.125rem, 0.9825rem + 0.2972vw, 1.25rem);
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    padding-top: 0.65rem;
    padding-right: 2.3125rem;
    padding-bottom: 0.9375rem;
    padding-left: 2.3125rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.frm_style_arcon.with_frm_style .frm_submit button:hover,
.frm_style_arcon-ring-design.with_frm_style .frm_submit button:hover{
	background: #04317b;
    color: var(--wp--preset--color--white);
}



/*
**
Formidable
**
*/

.with_frm_style input[type=radio]:focus, 
.with_frm_style input[type=checkbox]:focus {
    box-shadow: none !important;
}

.with_frm_style .frm_scale input[type=radio]::before, 
.with_frm_style .frm_radio input[type=radio]::before {
    width: 10px;
    height: 10px;
    margin: 2px;
}
.frm_forms.with_frm_style .frm_checkbox input[type=checkbox]::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%230944a2' d='M448.1 118.2L437 129.7 173.6 404l-11.5 12-11.5-12L11.1 258.8 0 247.2l23.1-22.2 11.1 11.5L162.1 369.8 414 107.5 425 96l23.1 22.2z'/%3E%3C/svg%3E") !important;
    background-size: 13px !important;
}
.with_frm_style .frm_top_container .frm_primary_label, 
.with_frm_style .frm_hidden_container .frm_primary_label {
    line-height: 1.4;
}
.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
    background-color: transparent !important;
}
.frm_current_page .frm_rootline_title {
    font-weight: bold;
}
.form-specs-container {
    background-color: var(--wp--preset--color--base-2);
    border-radius: 18px;
    padding: 2rem 1.5rem;
}
.form-specs-container h6 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--medium);
    margin: 0;
}
.form-specs-container hr {
	border: 1px solid var(--wp--preset--color--contrast);
}
.form-specs-container strong {
    font-weight: 600;
}
.form-specs-container p {
    padding: 1rem 0 .5rem 0;
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--small);
    color: #000000 !important;
    margin: 0;
}
.form-specs-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.form-specs-container li {
    padding-bottom: .75rem;
    line-height: 1.5;
    color: #000000 !important;
}
.mock-field-desc {
    margin-top: -1rem;
}

.mock-form-label,
.mock-form-label-alt {
	max-width: 100%;
    font-family: var(--font);
    font-size: var(--font-size);
    color: var(--label-color);
    font-weight: var(--weight);
    text-align: var(--align);
    padding: 0;
    margin: 0;
    width: auto;
    display: block;
    float: none;
}
.mock-form-label-alt {
    margin-bottom: -1.75rem;
}
#frm_field_91_container,
#frm_field_92_container{
	margin-top: 0;
}
.frm_style_arcon-ring-design input,
.frm_style_arcon-ring-design select,
.frm_style_arcon-ring-design textarea{
	border-width: 1px !important;
}




/*
**
Nav
**
*/

header ul.wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--contrast) !important;
	min-width: 260px !important;
}
header ul.wp-block-navigation__submenu-container li{
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	line-height: 1.2;
    padding: .5rem 0 .75rem .1rem;
}
header ul.wp-block-navigation__submenu-container li:last-child{
	border-bottom: none;
}
header ul.wp-block-navigation__submenu-container li:hover{
	background-color: var(--wp--preset--color--base-2);
}

/*   Mobile Menu   */
.mobile-header {
   display: none; 
}

@media ( max-width: 992px ) {
	/* change mobile menu break point */
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
      display: flex !important;
  }
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
      display: none !important;
  }
  .desktop-header {
    display: none;
}
.mobile-header {
    display: block;
}
.mobile-header .wp-block-navigation__responsive-container-content {
  max-width: 100vw;
  padding-bottom: 3.5rem;
}
.mobile-header .wp-block-navigation__submenu-icon {
    display: inline-block !important;
}
.mobile-header li.wp-block-navigation-submenu {
    position: relative;
}
.mobile-header li.wp-block-navigation-submenu,
.mobile-header ul.wp-block-navigation__container > .wp-block-navigation-link {
    width: calc(100% - 3rem);
    padding: 1rem 1rem 0 2rem;
    display: grid !important;
}
.mobile-header .wp-block-navigation__submenu-container > li,
.mobile-header .wp-block-navigation__container > li {
   grid-template-columns: auto 1fr;
   grid-auto-flow: row;
   align-items: center;
}
.mobile-header .wp-block-navigation__submenu-container > li > a,
.mobile-header .wp-block-navigation__submenu-container > li > button,
.mobile-header .wp-block-navigation__container > li > a,
.mobile-header .wp-block-navigation__container > li > button {
   grid-row: 1;
}
.mobile-header .wp-block-navigation__submenu-container > li > ul,
.mobile-header .wp-block-navigation__container > li > ul {
   grid-column: 1 / -1;
   grid-row: 2;
}
.mobile-header li.wp-block-navigation-submenu > button.wp-block-navigation-submenu__toggle {
    position: relative; 
    z-index: 1; 
}
.mobile-header li.wp-block-navigation-submenu > span {
    position: absolute;
    right: -13px;
    top: 4px;
    z-index: 0; 
}
header ul.wp-block-navigation__submenu-container {
  border: none !important;
  min-width: unset !important;
  padding: 0 !important;
}
.mobile-header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 0;
}
.mobile-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    width: 100%;
    margin: 0; 
}
.mobile-header ul.wp-block-navigation__container {
    gap: 0 !important;
} 
.mobile-header .wp-block-navigation-submenu li {
    padding: 2rem 1rem 0 2rem;
    border: none;
} 
.mobile-header ul.wp-block-navigation__submenu-container li:last-child {
  border-bottom: none;
/* 		padding: 2rem 1rem 0 2rem; */
}
.mobile-header button.wp-block-navigation__responsive-container-close{
    padding-top: 1rem;
    padding-right: 1rem;
}
header ul.wp-block-navigation__submenu-container {
/* 		border-bottom: 1px solid var(--wp--preset--color--contrast); */
border: none;
}
.mobile-header .wp-block-button{
  margin-left: 2rem;
}
header ul.wp-block-navigation__submenu-container li {
  line-height: 1.5;
}
.mobile-header ul.wp-block-navigation__container ul > li:last-child {
   padding-bottom: 1rem !important; 
}
.mobile-header ul.wp-block-navigation__container ul ul > li:last-child {
   padding-bottom: 0 !important; 
}

}






/*
**
Misc
**
*/

.wp-block-embed-youtube iframe{
	border-radius: 18px;
}
.process-step-nums{
	position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
:root :where(.wp-block-search .wp-block-search__input) {
    background-color: transparent;
}
.wp-block-search__button.has-icon {
    padding: .5rem .75rem;
}
.footer-search .wp-block-search__input{
	color: #FFF;
}
@media ( max-width: 768px ) {
	.single-product .wp-block-group.has-background,
	footer .wp-block-group.has-background,
	.wp-block-cover.has-parallax {
		background-attachment: unset !important;
	}
}
.blend-color-bg{
    position: relative;
}
.blend-color-bg::after{
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--wp--preset--color--base);
    mix-blend-mode: darken;
    pointer-events: none;
}







/*
**
Custom Product Search
**
*/

.custom-search-form {
  font-family: var(--wp--preset--font-family--body);
  font-size: 18px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.custom-search-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}

.custom-search-form .form-column {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Floating labels */
.custom-search-form .form-field {
   position: relative;
   display: flex;
   flex-direction: column;
   padding-top: 18px;
   padding-top: calc(0.5 * 48px);
   margin-bottom: 24px;
}

.custom-search-form .form-field input,
.custom-search-form .form-field select {
	font-size: 18px;
	border: none;
	border-bottom: 1px solid #000000;
	background: transparent;
	padding: 12px 0 4px 0;
	margin: 0;
	border-radius: 0;
	min-height: 48px;
    line-height: 1.3;
    color: #000;
    width: 100%;
    max-width: 100%;
    padding: 0px 5px 10px 5px;
    box-sizing: border-box;
    outline: none;
}

.custom-search-form .form-field input::placeholder {
  color: transparent;
}

.custom-search-form .form-field label {
   font-weight: 400;
   font-size: 18px;
   color: #000000;
   transition: all 0.3s ease-in;
   position: absolute;
   top: 19px;
   top: calc(1px + .5 * 48px);
   left: 3px;
   width: 100%;
   line-height: 1.3;
   text-overflow: ellipsis;
   overflow: hidden;
   white-space: nowrap;
   padding: 0px 5px 10px 5px;
   pointer-events: none;	
   max-width: 100%;
   margin: 0;
   display: block;
}

.custom-search-form .form-field input:focus + label,
.custom-search-form .form-field input:not(:placeholder-shown) + label,
.custom-search-form .form-field select:focus + label,
.custom-search-form .form-field select[data-has-value="true"] + label {
   top: 0;
   left: 0;
   padding: 0;
   font-size: 12px;
   font-size: calc(0.85 * 18px);
}


/* Maintain radio/inline label appearance */
.custom-search-form .unit-field label {
  margin: 0;
  gap: 4px;
  font-weight: 400;
}

/* Accessibility helper */
.custom-search-form .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.custom-search-form .size-unit-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
}

.custom-search-form .size-field {
  flex: 1 1 100px;
  display: flex;
  flex-direction: column;
}

.custom-search-form .unit-field {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   margin-top: 1rem;
   padding-top: 18px;
   padding-top: calc(0.5 * 48px);
   margin-bottom: 24px;
}

.custom-search-form button.hero-search-btn {
	background-color: var(--wp--preset--color--accent);
    border-radius: 100px;
    border-color: var(--wp--preset--color--accent);
    border-width: 0;
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--body);
    font-size: clamp(1.125rem, 0.9825rem + 0.2972vw, 1.25rem);
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    padding-top: 0.65rem;
    padding-right: 2.3125rem;
    padding-bottom: 0.9375rem;
    padding-left: 2.3125rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-search-form button.hero-search-btn:hover {
	background: #04317b;
    color: var(--wp--preset--color--white);
}

@media (max-width: 768px) {
   .custom-search-form .form-row {
     flex-direction: column;
     gap: 0;
 }
 .custom-search-form .size-unit-row {
     flex-direction: column;
     align-items: stretch;
     gap: 0;
 }
 .custom-search-form .form-column {
     flex: auto;
 }
 .custom-search-form .size-field {
     flex: auto;
 }
 .custom-search-form .unit-field {
     margin-top: 0;
 }
}





/* Tables */
.productSpecs {
    font-size: 16px;
    line-height: 1.2;
    font-family: var(--wp--preset--font-family--body);
    border: 1px solid var(--wp--preset--color--contrast);
    border-spacing: 0;
}
.productSpecs thead{
    position: sticky;
    top: 0;
    z-index: 999;
}
.productSpecs thead th,
.productSpecs thead td  {
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--white);
    font-weight: 400;
    text-align: center;
    padding: .75rem .4rem;
    border: 1px solid var(--wp--preset--color--white);
    border-bottom: none;
    border-right: none;
}
.productSpecs thead tr:first-child th  {
    border-top: none;
    font-weight: 600;
}
.productSpecs thead tr:first-child th:first-child  {
    border-left: none;
}
.productSpecs thead tr:nth-child(2) th,
.productSpecs thead tr:nth-child(2) td {
    background-color: #36363B;
}
.productSpecs thead tr:last-child th,
.productSpecs thead tr:last-child td {
    background-color: #53535B;
}
.productSpecs tbody tr {
    background-color: var(--wp--preset--color--base);
}
.productSpecs tbody tr.alt {
    background-color: var(--wp--preset--color--white);
}
.productSpecs tbody tr td {
    padding: .75rem .4rem;
    border-left: 1px solid var(--wp--preset--color--contrast);
}
.productSpecs tbody tr td:first-child {
    border-left: none;
}
.productSpecs tbody .groupEnd {
    border-bottom: 1px solid var(--wp--preset--color--contrast);
}
div:has(.productSpecs) {
    overflow-x: auto;
}





/* Product Search Results */
.ring-search-result {
    padding-bottom: 2.5rem;
}

.ring-search-result h4{
    margin: 0;
}

.ring-search-result .wp-block-button {
    margin: 1rem auto;
}

.gap_width_frm { margin-top:2.5em; }

/* Product Search Results Modal */
.modal-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;

}

.modal {
    background: var(--wp--preset--color--base);
    aspect-ratio: 11 / 8.5;
    width: min(96vw, calc(100vh * (11 / 8.5)));
    max-height: 100vh;
    overflow: auto;
    margin: auto;
    padding: 1.5rem;
    box-sizing: border-box; 
    max-width: 1200px;
}

.modal table{
    aspect-ratio: 11 / 8.5;
/*    max-width: 100%;
    width: 90vw;*/
}

.modal table .specImageWrapper {
    position: relative;
}
.modal table .specImageWrapper::after{
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--wp--preset--color--base);
    mix-blend-mode: darken;
    pointer-events: none;
}

.modal-buttons {
    width: 100%;
    text-align: center;
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.modal.capture-fullsize {
  transform: none !important;  /* temporarily remove zoom */
}

.modal h2 {
  margin-top: 0;
}


@media (max-width: 600px) {
  .modal {
    aspect-ratio: auto;
    width: 95vw;
    height: 90vh;
    overflow-y: auto;
    padding: 16px;
    font-size: 14px;
  }

  .modal-buttons {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1em 0;
  }

  .specImageWrapper img {
    max-width: 100%;
    height: auto;
  }
}




/*.spec-btn {
    background-color: var(--wp--preset--color--accent);
    border-radius: 100px;
    border-color: var(--wp--preset--color--contrast);
    border-width: 0;
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--body);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    padding-top: 0.65rem;
    padding-right: 2.3125rem;
    padding-bottom: 0.9375rem;
    padding-left: 2.3125rem;
    text-decoration: none;
    margin: 1em 0 3em 0;
}

.spec-btn:hover{
    cursor: pointer;
    background: #04317b;
}*/

/*.modal-buttons {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    margin-top: 2em;
}*/


#frm_field_200_container .frm_image_options img {
  width: auto!important;
  height: auto;
  max-width: 100%;
  max-height: 200px; /* Adjust this as needed */
}

#frm_field_200_container .frm_image_options label {
  display: block;
  max-width: 100%;
}

#frm_field_200_container .frm_image_options input[type="radio"] + img {
  object-fit: cover;
  border-radius: 4px;
}

#frm_field_200_container .frm_image_option {
    width: 100%!important;
}

.frm_form_field .frm_radio.frm_image_option {
    max-width: 130px;
}

.modal-buttons {
    position: fixed;
    left: 0;
    margin-top: 2em;
}

.dimInner {
    position: absolute;
    top: calc(50% - 26px);
    left: 35%;
    font-size: 1.25em;
}

.dimGap {
    position: absolute;
    top: calc(50% - 26px);
    left: 56%;
    font-size: 1.25em;
}

.dimOuter {
    position: absolute;
    top: calc(50% - 26px);
    right: 5%;
    font-size: 1.25em;
}

.dimWidth {
    position: absolute;
    right: 23.5%;
    bottom: 1em;
    font-size: 1.25em;
}


#specsTable ul {
    padding-left: 2em;
}

#specsTable ul, #specsTable p {
    line-height: 1.4em;
    margin: 0;
}

.specSheet {
    background: #fff;
}