
:root {
  --ewut-gutter: 24px;
}

@media (max-width: 1024px) {
  :root {
    --ewut-gutter: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --ewut-gutter: 24px;
  }
}

@media (max-width: 380px) {
  :root {
    --ewut-gutter: 24px;
  }
}

.ewut-container {
  --ewut-container-max: 1200px;
  width: 100%;
  max-width: var(--ewut-container-max);
  margin-inline: auto;
  padding-inline: var(--ewut-gutter);
}

@media (max-width: 1200px) {
  .ewut-container {
    --ewut-container-max: 100%;
  }
}

.ewut-container-fluid {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--ewut-gutter);
}

.ewut-container-fluid--flush {
  padding-inline: 0;
}

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

.ewut-site-header__burger {
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
}

.ewut-site-header__burger::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.ewut-site-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ewut-uny-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.ewut-site-header__burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.ewut-site-header__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.ewut-site-header__burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.ewut-site-header.ewut-bg-dark .ewut-site-header__burger span,
.ewut-site-header--dark .ewut-site-header__burger span {
  background: var(--ewut-uny-white);
}

.ewut-nav__chevron {
  display: none;
}

@media (max-width: 1024px) {
  .ewut-site-header {
    position: relative;
  }

  .ewut-site-header__nav {
    display: none;
  }

  .ewut-site-header__logo-text {
    display: none;
  }

  .ewut-site-header__logo--icon-text {
    gap: 0;
  }

  .ewut-site-header__inner {
    gap: 30px;
  }

  .ewut-site-header__actions {
    margin-left: auto;
  }

  .ewut-site-header__burger {
    margin-left: 0;
  }

  .ewut-site-header.is-open .ewut-site-header__nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ewut-uny-white);
    padding: 0;
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    overflow: hidden;
    z-index: 100;
    border-bottom: 0;
    box-shadow: none;
  }

  .ewut-site-header.ewut-bg-dark.is-open .ewut-site-header__nav,
  .ewut-site-header--dark.is-open .ewut-site-header__nav {
    background: var(--ewut-uny-dark);
  }

  .ewut-site-header__menu,
  .ewut-site-header__menu .sub-menu {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    align-content: flex-start;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .ewut-site-header.is-open .ewut-site-header__menu {
    justify-content: flex-start;
    align-content: flex-start;
  }

  .ewut-site-header.is-open .ewut-site-header__nav > .ewut-site-header__menu {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .ewut-site-header.is-open .ewut-site-header__menu li {
    position: relative;
    height: auto;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    border-top: 1px solid var(--ewut-uny-border);
  }

  .ewut-site-header.is-open .ewut-site-header__menu li:last-child {
    border-bottom: 0;
  }

  .ewut-site-header.is-open .ewut-site-header__nav > .ewut-site-header__menu > li:last-child {
    border-bottom: 1px solid var(--ewut-uny-border);
  }

  .ewut-site-header.ewut-bg-dark.is-open .ewut-site-header__menu li,
  .ewut-site-header--dark.is-open .ewut-site-header__menu li {
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .ewut-site-header.ewut-bg-dark.is-open .ewut-site-header__nav > .ewut-site-header__menu > li:last-child,
  .ewut-site-header--dark.is-open .ewut-site-header__nav > .ewut-site-header__menu > li:last-child {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .ewut-site-header.is-open .ewut-site-header__menu li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0 24px;
  }

  .ewut-site-header.is-open .ewut-site-header__menu .sub-menu li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0 24px 0 44px;
  }

  .ewut-site-header.is-open .ewut-site-header__menu .sub-menu .sub-menu li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0 24px 0 64px;
  }

  .ewut-site-header.is-open .ewut-site-header__menu li > form,
  .ewut-site-header.is-open .ewut-site-header__menu li > button {
    display: flex;
    align-items: center;
    min-height: 60px;
    margin: 0 24px;
  }

  .ewut-site-header__nav .sub-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    min-width: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
  }

  .ewut-site-header__nav .ewut-site-header__menu > li > .sub-menu,
  .ewut-site-header__nav .ewut-site-header__menu .sub-menu .sub-menu {
    max-height: none;
    overflow: visible;
    min-height: 0;
  }

  .ewut-site-header__nav li.ewut-submenu-open > .sub-menu {
    display: block;
  }

  .ewut-nav__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ewut-nav__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 60px;
    margin-right: -18px;
    cursor: pointer;
  }

  .ewut-nav__chevron::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s;
    opacity: 0.6;
  }

  li.ewut-submenu-open > a > .ewut-nav__chevron::before {
    transform: rotate(-135deg) translateY(2px);
    opacity: 1;
  }

  .ewut-site-header__menu li.menu-item-has-children > a::after {
    display: none;
  }
}

html.ewut-nav-locked,
html.ewut-nav-locked body {
  overflow: hidden;
}

@media (max-width: 768px) {
  table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap,
  .wc-block-cart-item__wrap {
    align-items: flex-start;
    row-gap: 8px;
    padding-right: 0;
  }

  .wc-block-cart-item__wrap > .wc-block-cart-item__quantity {
    position: static;
    transform: none;
    justify-content: flex-start;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .ewut-posts--list > .ewut-post-card,
  .ewut-layout-sidebar__main .ewut-posts--list > .ewut-post-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .ewut-posts--list > .ewut-post-card .ewut-post-card__thumb {
    flex: 0 0 28%;
    width: 28%;
    max-width: 28%;
    align-self: stretch;
    height: auto;
  }

  .ewut-posts--list > .ewut-post-card .ewut-post-card__thumb img {
    height: 100%;
  }

  .ewut-posts--list > .ewut-post-card .ewut-post-card__body {
    padding: 16px;
  }

  .ewut-posts--list > .ewut-post-card .ewut-post-card__title,
  .ewut-posts--list > .ewut-post-card .ewut-post-card__excerpt,
  .ewut-posts--list > .ewut-post-card .ewut-post-card__excerpt p {
    white-space: normal;
  }

  .ewut-posts--list > .ewut-post-card .ewut-post-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ewut-posts--list > .ewut-post-card .ewut-post-card__excerpt,
  .ewut-posts--list > .ewut-post-card .ewut-post-card__excerpt p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .ewut-article__nav-link,
  .ewut-article__prev,
  .ewut-article__next {
    max-width: 100%;
  }

  .ewut-article__next .ewut-article__nav-text {
    text-align: left;
  }

  .ewut-article__next .ewut-article__nav-thumb {
    order: -1;
  }

}

@media (max-width: 768px) {
  .wp-block-woocommerce-checkout-order-summary-block .checkout-order-summary-block-fill {
    border: 0;
    border-radius: 0;
  }

  .wc-block-checkout__actions_row {
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    margin-right: 0;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .woocommerce-Addresses .woocommerce-Address {
    flex: 0 0 100%;
  }

  .woocommerce-Addresses .woocommerce-Address + .woocommerce-Address {
    margin-top: 32px;
  }
}
