/* --- WP Block Header
-------------------------------------------------------- */
.header {
  padding-top: 5px;
  padding-bottom: 5px;
}

.wp-site-blocks {
  position: relative;
}

header .wp-block-buttons .wp-block-button__link {
  margin-top: 0;
}

.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
  display: none;
}

.header button.wp-block-navigation__responsive-container-open {
  &:is(:focus, :hover) {
    color: var(--wp--preset--color--hover-color);

    svg {
      fill: var(--wp--preset--color--hover-color);

    }
  }
}

html.has-modal-open {
  overflow: auto;
}

.nav-row>.wp-block-group {
  gap: 0;
}

.wp-block-group.nav-row {
  gap: 0;
}


.wp-block-group.site-title-section {
  gap: 0;
}

.nav-row .wp-block-social-links:not(.is-style-logos-only):not(.is-style-pill-shape):not(.is-style-circle-only) .wp-block-social-link .wp-block-social-link-anchor {

  &:hover,
  &:focus {
    svg {
      fill: var(--wp--preset--color--foreground);
    }
  }
}

.wp-block-social-links.is-style-circle-shape,
.wp-block-social-links.is-style-pill-shape {
  svg {
    fill: var(--wp--preset--color--foreground);
  }
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container li .wp-block-navigation-item__content {
  padding: 7px 13px;
  font-size: var(--wp--preset--font-size--medium);

  a {
    font-size: var(--wp--preset--font-size--medium);
  }
}

.wp-block-fse-pro-header-search .search-controller {
  height: 42px;
  width: 42px;
}

.wp-block-navigation__responsive-container-open:not(.always-shown) {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.wp-block-navigation__responsive-container-open:not(.always-shown) {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  box-sizing: border-box;
  padding: 9px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
  padding-bottom: 10px;
}

[class*="wp-container-"].site-section {
  gap: 10px;
  @include flex;
  flex: 1;
}

.header .wp-block-social-links .wp-social-link a,
.header .wp-block-social-links .wp-social-link .wp-block-social-link-anchor {
  padding: 9px;
}

.wp-block-navigation .wp-block-navigation__submenu-icon svg {
  margin: 0;
}

.is-menu-open.has-modal-open::-webkit-scrollbar {
  display: none;
}

.open-search {
  .header button .cross.svg {
    fill: var(--wp--preset--color--background);
    z-index: 1;
  }

  .search-container {
    animation: scroll 1s forwards;

    form {
      animation: hide 1s forwards;
      opacity: 0;
    }
  }
}

.admin-bar .search-container {
  margin-top: 46px;
}

@keyframes scroll {
  0% {
    @include border(50%);
    transition-duration: 6s;
    width: 100px;
    height: 100px;
    @include transform(translate(-50%, -100%));
  }

  70% {
    transition-duration: 6s;
    width: 100px;
    height: 100px;
    @include border(50%);
    @include transform(translate(-50%, 20px));
  }

  100% {
    width: 100%;
    height: auto;
    transition-duration: 6s;
    @include border(0%);
    @include transform(translate(-50%, 0));
  }
}

@keyframes hide {
  70% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.wp-block-search.search-product .wp-block-search__inside-wrapper .wp-block-search__button {
  background-color: transparent;
  @include transform(rotate(280deg));
  border: 0;
  color: var(--wp--preset--color--dark-color);

  &:is(:hover, :focus) {
    @include transform(scale(3) rotate(280deg));
  }
}

.header-media .header.alignfull>div.wp-block-group.alignfull {
  padding-left: 0;
  padding-right: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
  padding-right: 0;
  padding-left: 10px;
  padding-top: 0;
}


.header .wp-block-navigation .wp-block-navigation__container>.wp-block-navigation-item>.wp-block-navigation-item__content,
.header .wp-block-navigation .wp-block-page-list>.wp-block-navigation-item>.wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
  padding: 10px 5px;
}

.modern-header .header .wp-block-navigation .wp-block-navigation__container>.wp-block-navigation-item>.wp-block-navigation-item__content,
.modern-header .header .wp-block-navigation .wp-block-page-list>.wp-block-navigation-item>.wp-block-navigation-item__content {
  padding: 10px;
}

.modern-header .wp-block-navigation.items-justified-right .wp-block-navigation__container .wp-block-navigation-item .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation-item__content,
.modern-header .wp-block-navigation.items-justified-right .wp-block-page-list .wp-block-navigation-item .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation-item__content {
  justify-content: flex-end;

  &:before {
    left: auto;
    right: 0;
  }
}

.modern-header .wp-block-navigation .wp-block-navigation__responsive-container-content ul li.wp-block-navigation-item.has-child ul.wp-block-navigation__submenu-container {
  max-width: 250px;
  opacity: 1;
  margin-left: 0;
  position: relative;
  @include transform(none);

  li {
    opacity: 1;
    @include transform(none);
  }
}

.wp-block-navigation .wp-block-navigation__responsive-container ul:not(.wp-block-navigation__submenu-container)>.current-menu-item>.wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation__responsive-container ul:not(.wp-block-navigation__submenu-container)>.current-nav-item>.wp-block-navigation-item__content {
  color: var(--wp--preset--color--hover-color);
}

.wp-block-navigation__responsive-container-content>ul,
ul.wp-block-page-list {

  &:hover,
  &:focus {
    >li {
      opacity: 0.5;

      &:hover,
      &:focus {
        opacity: 1;
      }
    }
  }
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
  gap: 0.5rem
}

.header>.wp-block-group {
  @include flex;
  gap: 0;

  .nav-row {
    justify-content: center;
  }
}

.wp-block-group:not(.transparent-header) .header {
  .wp-block-navigation__responsive-container-open {

    &:hover,
    &:focus {
      svg {
        fill: var(--wp--preset--color--hover-color);
      }
    }

    svg {
      fill: var(--wp--preset--color--dark-color);
    }
  }
}

.without-transparent {
  .default-header.wp-block-group {
    @include flex;

    .site-section,
    .nav-row {
      width: auto;
    }
  }
}

.header {
  .site-title-section .wp-block-site-tagline {
    margin-block-start: 0;
    color: var(--wp--preset--color--color-light);
  }

  .search-product {

    .wp-block-search__label {
      display: none;
    }
  }
}

.header {
  .site-title-section .wp-block-site-tagline {
    color: var(--wp--preset--color--dark-color);
  }
}



.header .search-product {
  .wp-block-search__label {
    color: var(--wp--preset--color--color-light)
  }
}


.wp-block-group .cart-row {

  .cart-text {
    color: var(--wp--preset--color--color-light)
  }
}

.cart-row {

  &:hover,
  &:focus {

    .cart-text,
    .wc-block-mini-cart__icon {
      color: var(--wp--preset--color--hover-color);
    }
  }
}

.wp-block-group .cart-row {
  gap: 0;

  .cart-text {
    @include transition(0.5s ease-in-out);
    display: none;
    pointer-events: none;
  }
}

.wp-block-group .cart-row,
.wp-block-search__label,
.cart-text {
  @include transition(0.5s ease-in-out);
}


.without-transparent {
  .wp-block-button .wp-block-button__link {
    color: var(--wp--preset--color--dark-color);
  }
}

.wp-block-woocommerce-customer-account a .icon+.label:empty {
  margin: 0;
}

.woocommerce-account {
  .wp-block-woocommerce-customer-account {

    span,
    svg {
      border-radius: 6px;
      border-color: transparent;
    }
  }
}

.wp-block-woocommerce-customer-account {
  font-family: var(--wp--preset--font-family--notosansjp);
  font-size: var(--wp--preset--font-size--upper-heading);
  background-color: var(--wp--preset--color--button-bg-color);
  text-shadow: 2px 3px 7px rgba(0, 0, 0, 0.26);
  @include border(45px);
  border: 3px solid transparent;
  padding: 0.45rem 2rem;
  transition: 0.3s;

  &:is(:focus, :hover) {
    a {
      text-decoration: none !important;
    }
  }

  .wc-block-customer-account__link {
    transition: 0.3s;
    color: var(--wp--preset--color--color-light) !important;
    text-decoration: none;
  }
}

.wp-block-woocommerce-customer-account .icon {
  display: block;

  &:is(:hover, :focus) {
    color: var(--wp--preset--color--hover-color);
  }
}

.woocommerce-cart {

  .wp-block-group .cart-row .cart-text {
    display: none;
  }
}

.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container {
  max-width: 250px;
}

.header>.wp-block-group .nav-row {
  justify-content: flex-end;
}

.header>.wp-block-group .right-section,
.modern-header .header>.wp-block-group .right-section {
  gap: 0;
}

.header {
  button.wp-block-navigation__responsive-container-open {
    color: var(--wp--preset--color--dark-color);
    padding: 9px;
  }

  .dummy-icon.wp-block-search .wp-block-search__inside-wrapper {
    .wp-block-search__button {

      &:is(:hover, :focus) {
        color: var(--wp--preset--color--hover-color) !important;
      }
    }
  }
}

.wp-block-woocommerce-customer-account a .icon {
  padding: 12px;
}

.header .dummy-icon.wp-block-search .wp-block-search__inside-wrapper {
  padding: 0;

  .wp-block-search__button {
    background-color: transparent;
    border: 2px solid transparent;
    padding: 1.5px;
    color: var(--wp--preset--color--color-light);

    svg {
      @include transform(rotate(270deg));
      min-height: 35px;
      min-width: 35px;
      transition: none;
    }

    &:is(:hover, :focus) {
      background: transparent !important;
      border-color: var(--wp--preset--color--hover-color);
    }
  }
}

.header .dummy-icon.wp-block-search .wp-block-search__inside-wrapper {

  .wp-block-search__button {
    color: var(--wp--preset--color--dark-color);
  }
}

.wp-block-woocommerce-customer-account a .icon {
  height: 18px;
  width: 18px;
}

.close-menu {
  svg {
    display: none;
  }

  &:after {
    content: 'x';
    height: 1rem;
    line-height: 1rem;
    min-width: 1rem;
    width: 1rem;

  }
}

.header {
  .right-section {

    .dummy-icon,
    .cart-row,
    .wp-block-woocommerce-customer-account {
      display: none;
    }
  }
}

.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open:hover svg {
  color: var(--wp--preset--color--dark-color);
}

.header-default {
  position: relative;
  width: auto;

  .header {
    background-color: var(--wp--preset--color--secondary-bg-color);
  }
}

.transparent-header .header {
  background-color: transparent;
}

.dummy-icon .wp-block-search__inside-wrapper {
  min-width: 0 !important;
}

.block-editor-block-list__block .wp-block-navigation {
  font-size: 18px;
}

.modern-header .header>div.wp-block-group.alignfull {
  gap: 0;
}

.modern-header {
  .header>.wp-block-group {
    @include flex;

    .nav-row {
      justify-content: flex-end;
      flex: 1;
    }

    .right-section {
      width: auto;
    }
  }
}

.footer .wp-block-navigation>.wp-block-navigation__container>.wp-block-navigation-item {
  color: var(--wp--preset--color--color-light);

  .wp-block-navigation-item__content {
    &:is(:hover, :focus) {

      color: var(--wp--preset--color--dark-color);
      opacity: 1;

      +button svg {
        stroke: var(--wp--preset--color--dark-color);
      }
    }
  }

}

.footer .wp-block-navigation>ul>li.current-menu-item>.wp-block-navigation-item__content,
.footer .wp-block-navigation>ul>li.current-nav-item>.wp-block-navigation-item__content,
.footer .wp-block-navigation__container>ul>li.current-menu-item>.wp-block-navigation-item__content,
.footer .wp-block-navigation__container>ul>li.current-nav-item>.wp-block-navigation-item__content,
.footer .wp-block-navigation__responsive-container:where(:not([class*=is-menu-open]):not([class*=has-modal-open])) .wp-block-navigation__responsive-container-content>ul>.wp-block-navigation-item.current-menu-item>.wp-block-navigation-item__content,
.footer .wp-block-navigation__responsive-container:where(:not([class*=is-menu-open]):not([class*=has-modal-open])) .wp-block-navigation__responsive-container-content>ul>.wp-block-navigation-item.current-nav-item>.wp-block-navigation-item__content {
  color: var(--wp--preset--color--dark-color);
  opacity: 1;

  +button svg {
    stroke: var(--wp--preset--color--color-light);
  }
}


.wp-block-site-generator p a,
.footer-title+p a {
  &:is(:hover, :focus) {
    color: var(--wp--preset--color--dark-color);
  }
}

.loader {
  @include transition(0.5s ease-in-out);
  align-items: center;
  background-color: var(--wp--preset--color--button-bg-color);
  display: none;
  height: 100vh;
  left: 0;
  top: 0;
  overflow: hidden;
  position: fixed;
  @include flex;
  opacity: 1;
  visibility: visible;
  justify-content: center;
  width: 100%;
  z-index: 99;

  img {
    mix-blend-mode: darken;
    @include transform(scale(1.2));
  }
}

.block-editor-block-list__block.loader,
.inner-main .loader {
  position: relative;
  height: auto;
  visibility: visible !important;
  opacity: 1 !important;
}


.wp-block-navigation .wp-block-navigation__submenu-icon {
  height: auto;
}

.modern-header .header {
  padding-bottom: 10px;
  padding-top: 10px;
}

.header .has-modal-open {
  padding-bottom: 55px;
}

.wp-block-social-links:not(.is-style-logos-only):not(.is-style-pill-shape):not(.is-style-circle-shape) .wp-social-link .wp-block-social-link-anchor,
.wp-block-social-links .wp-social-link .wp-block-social-link-anchor,
.wp-block-social-links .wp-social-link .wp-block-social-link-anchor:hover,
.wp-block-social-links .wp-social-link .wp-block-social-link-anchor:focus {
  background: inherit !important;
  color: inherit !important;
  transition: none !important;
}


.header-default:not(.modern-header) .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
.header-default:not(.modern-header) .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
.header-default:not(.modern-header) .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
  align-items: flex-start;
}

.header-default:not(.modern-header) .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.header-default:not(.modern-header) .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
.header-default:not(.modern-header) .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
  align-items: flex-start;
}


.footer .wp-block-navigation .wp-block-navigation__container .wp-block-navigation-item .wp-block-navigation__submenu-container,
.footer .wp-block-navigation .wp-block-page-list.wp-block-navigation-item .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
  padding: 0;

  .wp-block-navigation-item__content {
    padding: 15px;
  }
}
