/* Custom CSS per Maschere sub Graduate*/

.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{
    min-width: 225px !important;
}

.wc-block-components-product-summary {
  font-size: 1rem;
}

h3.wp-block-woocommerce-accordion-header {
  background-color: var(--wp--preset--color--primary);
  border-radius: .33rem;
  border-color: var(--wp--preset--color--contrast);
  border-width: 0;
  color: var(--wp--preset--color--background) !important;
  font-family: var(--wp--preset--font-family--inter);
  cursor: pointer;
  outline: none;

  & span {
    display: inline-block;
    padding: 0 1rem;
  }

  & span.accordion-item__toggle-icon {
    display: none;
  }
}

.accordion-content__wrapper {
  margin-top: 1.5rem;
}

/* == select ordine prodotti pagina shop == */

.woocommerce-ordering .orderby {
	align-items: center;
    border-style: none;
    display: inline-flex;
    justify-content: center;
    line-height: inherit;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
	background-color: var(--wp--preset--color--secondary);
	border-radius: .33rem;
    border-color: var(--wp--preset--color--contrast);
    border-width: 0;
    color: var(--wp--preset--color--background);
    font-family: var(--wp--preset--font-family--inter);
	padding-top: 0.6rem;
    padding-right: 1rem;
    padding-bottom: 0.6rem;
    padding-left: 1rem;
}


/* == custom fields pagina prodotto == */

#bifocali_nota {
  border: solid 1px var(--wp--preset--color--primary);
  border-radius: 0.33rem;
  padding: 0.5rem;

  & button, button:hover, button:focus, button:active, button:visited {
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      font-size: inherit;
      color: var(--wp--preset--color--foreground);
      text-transform: uppercase;
  }
  & button:hover, button:focus, button:active, button:visited {
      outline: 2px solid var(--wp--preset--color--accent);
      outline-offset: 3px;
  }
}

dialog#popup_contatti {
  background: none;
  border: none;
  outline: none;
}

dialog#popup_contatti #popup_container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;
  font-size:clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.625), 1.25rem);
  padding:2.2rem;
  padding-top: 2.5rem;
  background: #fff;
  border: 3px solid var(--wp--preset--color--foreground);
  border-radius: 1.25rem;
  box-shadow:0px 0px 10px 10px rgba(21, 19, 97, 0.3);

  & h4 {
    margin-top: 0;
  }
  & a {
    outline: none;
  }
  & #popup_close {
    position: absolute;
    top: 0;
    right: 5px;
    background: none;
    border: none;
    outline: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--wp--preset--color--foreground);
  }
}

details.configurazione_lenti {
    margin-bottom: 2rem;
}

details.configurazione_lenti summary {
    width: clamp(65%, 400px, 80%);
    box-sizing: border-box;
    background-color: var(--wp--preset--color--primary);
    border-radius: .33rem;
    border-color: var(--wp--preset--color--contrast);
    border-width: 0;
    color: var(--wp--preset--color--background);
    font-family: var(--wp--preset--font-family--inter);
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    padding: 0.7rem 1rem;
    text-decoration: none;
    cursor: pointer;
}

.woocommerce form .configurazione_lenti .form-row{
    padding: 0;
    margin: 0;
}

.product-details-module__title{
    font-size: 1.25rem;
    font-weight: bold;
    margin: 1.1rem 0 0.5rem !important;
    padding: 0 !important;
}

.form-control__select,
textarea#lenti_note,
input#lenti_file,
input#viso_file,
.has_textarea textarea,
table.variations select#pa_colore {
    box-sizing: border-box;
    padding: 0.7rem 1rem;
    font-size: 1.1rem !important;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fcfbfe;
    height: 3rem;
    appearance: none;
}

.form-control__select,
textarea#lenti_note,
input#lenti_file,
input#viso_file,
.has_textarea textarea {
    width: clamp(65%, 400px, 80%);
}

.woocommerce div.product form.cart .variations select#pa_colore {
  background-image: none !important;
  background-color: #fcfbfe !important;
  padding: 0.7rem 2rem0.7rem 1rem;
  height: 3rem;
}

/* == custom switch toggle == */

.switch-container {
  display: flex;
  align-items: center;
  font-family: sans-serif;
  margin-top: 1rem;
}

.switch-label {
  margin-right: 10px !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px; bottom: 4px;
  background-color: white;
  color: black;
  text-align: center;
  line-height: 26px;
  font-size: 12px;
  transition: .4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: var(--wp--preset--color--primary);
}

.switch input:checked + .slider:before {
  transform: translateX(26px);
  content: "";
}

#bifocali_content {
  height: 0;
  overflow: hidden;
}

#bifocali_content.attivo {
  height: auto;
}

/* #selezione_tipo_bifocali {
    display: flex;
    gap: 1.5rem;
} */

/* CARRELLO */

.wp-block-woocommerce-checkout-order-summary-block {
  background-color: #b3d4e1;
}