/* Kazio Mobile Product Polish v5
   Fixes remaining mobile issues:
   1) product tabs: توضیحات / مشخصات / نظرات
   2) highlighted features list
*/
@media (max-width: 768px) {
  body.product-product .kz-mobile-v5-tabs {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 12px 0 !important;
    padding: 8px !important;
    border-radius: 18px !important;
    border: 1px solid #dceae2 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-items: stretch !important;
    list-style: none !important;
  }

  body.product-product .kz-mobile-v5-tabs::before,
  body.product-product .kz-mobile-v5-tabs::after {
    display: none !important;
    content: none !important;
  }

  body.product-product .kz-mobile-v5-tabs > *,
  body.product-product .kz-mobile-v5-tab-item {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
    display: block !important;
    text-align: center !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.product-product .kz-mobile-v5-tabs a,
  body.product-product .kz-mobile-v5-tabs button,
  body.product-product .kz-mobile-v5-tabs span {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 9px 6px !important;
    border-radius: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    line-height: 1.6 !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
    color: #667085 !important;
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.product-product .kz-mobile-v5-tabs .active a,
  body.product-product .kz-mobile-v5-tabs .active button,
  body.product-product .kz-mobile-v5-tabs a.active,
  body.product-product .kz-mobile-v5-tabs button.active,
  body.product-product .kz-mobile-v5-tabs [aria-selected="true"] {
    color: #009b5a !important;
    background: #eaf8f0 !important;
    box-shadow: inset 0 -3px 0 #009b5a !important;
  }

  /* Fallback for themes where the active tab is just the first link */
  body.product-product .kz-mobile-v5-tabs > *:first-child a,
  body.product-product .kz-mobile-v5-tabs > *:first-child button {
    color: #009b5a !important;
  }

  body.product-product .kz-mobile-v5-feature-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 14px 0 !important;
    padding: 18px 16px !important;
    border-radius: 20px !important;
    border: 1px solid #dceae2 !important;
    background: #ffffff !important;
    box-shadow: 0 12px 28px rgba(6,34,26,.045) !important;
    overflow: visible !important;
    text-align: right !important;
    direction: rtl !important;
  }

  body.product-product .kz-mobile-v5-feature-box h1,
  body.product-product .kz-mobile-v5-feature-box h2,
  body.product-product .kz-mobile-v5-feature-box h3,
  body.product-product .kz-mobile-v5-feature-box h4,
  body.product-product .kz-mobile-v5-feature-box strong,
  body.product-product .kz-mobile-v5-feature-box b {
    text-align: right !important;
    font-size: 21px !important;
    line-height: 1.75 !important;
    margin: 0 0 12px !important;
    color: #101828 !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  body.product-product .kz-mobile-v5-feature-list,
  body.product-product .kz-mobile-v5-feature-box ul,
  body.product-product .kz-mobile-v5-feature-box ol {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    text-align: right !important;
    direction: rtl !important;
  }

  body.product-product .kz-mobile-v5-feature-item,
  body.product-product .kz-mobile-v5-feature-box li {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 9px 32px 9px 10px !important;
    border-radius: 13px !important;
    background: #f8fbfa !important;
    color: #475467 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.95 !important;
    text-align: right !important;
    direction: rtl !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    position: relative !important;
  }

  body.product-product .kz-mobile-v5-feature-item::before,
  body.product-product .kz-mobile-v5-feature-box li::before {
    content: "" !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 999px !important;
    background: #009b5a !important;
    position: absolute !important;
    right: 13px !important;
    top: 20px !important;
  }

  /* Remove the old default bullet if browser still paints it */
  body.product-product .kz-mobile-v5-feature-box li::marker {
    content: "" !important;
  }

  /* The feature box should not be resize/scroll visually in audit mode */
  body.product-product .kz-mobile-v5-feature-box,
  body.product-product .kz-mobile-v5-feature-box * {
    resize: none !important;
  }
}

@media (max-width: 390px) {
  body.product-product .kz-mobile-v5-tabs a,
  body.product-product .kz-mobile-v5-tabs button,
  body.product-product .kz-mobile-v5-tabs span {
    font-size: 11.8px !important;
    padding-inline: 4px !important;
  }

  body.product-product .kz-mobile-v5-feature-box {
    padding: 16px 13px !important;
  }

  body.product-product .kz-mobile-v5-feature-item,
  body.product-product .kz-mobile-v5-feature-box li {
    font-size: 13.5px !important;
  }
}
