/* Bet Yar: consistent CSS sizing on WebKit and Chromium. Keep pinch zoom enabled. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
button, input, select, textarea { font-family: inherit; }
button, input[type="submit"], input[type="button"] {
  -webkit-appearance: none;
  appearance: none;
}
/* WooCommerce's RTL list indentation must not offset the product grid. */
body.woocommerce-shop ul.products,
body #plans ul.products {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 !important;
  margin-inline: 0 !important;
  list-style: none;
}
body.woocommerce-shop ul.products > li.product,
body #plans ul.products > li.product {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  justify-self: stretch;
  inset-inline: auto;
}
body.woocommerce-shop ul.products > li.product > a,
body #plans ul.products > li.product > a { min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  body .wrap { width: calc(100% - 24px); max-width: 1180px; margin-inline: auto; }
  body .site-header .nav {
    display: grid !important;
    grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px;
    column-gap: 3px;
    height: 72px;
    min-width: 0;
    direction: rtl;
    position: relative;
    align-items: center;
  }
  body .site-header .nav .nav-actions { display: contents !important; }
  body .site-header .nav .nav-actions > .icon-link {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    position: static !important;
    transform: none !important;
    width: 44px !important;
    min-width: 44px;
    max-width: 44px;
    height: 44px !important;
    min-height: 44px;
    padding: 0;
    margin: 0;
    line-height: 1;
    flex: none;
    align-self: center;
    justify-self: center;
  }
  body .site-header .nav .nav-actions > .menu-toggle { grid-area: 1 / 1; }
  body .site-header .nav .nav-actions > .by-store { grid-area: 1 / 2; }
  body .site-header .nav > a:first-child {
    grid-area: 1 / 3;
    justify-self: center;
    margin: 0 !important;
    min-width: 0;
    max-width: 100%;
    position: static !important;
    transform: none !important;
  }
  body .site-header .nav .nav-actions > .icon-link[aria-label="حساب کاربری"] { grid-area: 1 / 4; }
  body .site-header .nav .nav-actions > .betyar-cart-link { grid-area: 1 / 5; position: relative !important; }
  body .site-header .nav .header-mark { width: 104px; max-width: 100%; gap: 2px; }
  body .site-header .nav .header-text { width: 72px; max-width: 72px; min-width: 0; height: auto; }
  body .site-header .nav .header-ghost { width: 30px; max-width: 30px; height: 40px; flex: 0 0 30px; }
  body .site-header .nav .icon-link svg { width: 20px; height: 20px; display: block; }
  body .site-header .nav #nav { top: 72px; width: 100%; inset-inline: 0; margin: 0; }
  body .site-header .nav #nav a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.5;
  }
  body :is(.hero-copy, .hero-visual, .woocommerce, .features-grid, .section-head) { min-width: 0; }
  body .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body .hero-actions .btn {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
  }
  body.woocommerce-shop ul.products > li.product .button,
  body #plans ul.products > li.product .button {
    box-sizing: border-box;
    min-height: 48px;
    font-size: 15px;
    line-height: 1.5;
    padding: 12px;
    white-space: normal;
  }
  body.woocommerce-shop ul.products > li.product .woocommerce-loop-product__title,
  body #plans ul.products > li.product .woocommerce-loop-product__title {
    font-size: 22px !important;
    line-height: 1.65 !important;
    letter-spacing: normal;
    overflow-wrap: anywhere;
  }
  body.woocommerce-shop ul.products .by-facts span,
  body #plans ul.products .by-facts span { min-width: 0; overflow-wrap: anywhere; }
  body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 16px; }
}
