@font-face{
  font-family: "YekanBakh";
  src: url("../fonts/YekanBakh.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Base */
.zxfaq{
  direction: rtl;
  text-align: right;
  font-family: "YekanBakh", inherit;
  color: inherit;
  border-radius: 14px;
}

/* Make all parts consistent with widget typography/colors unless user overrides in Elementor */
.zxfaq__title,
.zxfaq__q,
.zxfaq__a{
  font-family: inherit;
  color: inherit;
}

/* Title */
.zxfaq__title{
  margin: 0 0 12px 0;
  font-weight: 800;
  line-height: 1.6;
}

/* Items */
.zxfaq__h{ margin:0; }
.zxfaq__item{ overflow:hidden; }

/* Question button */
.zxfaq__q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;

  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.02);

  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  line-height: 1.7;
  text-align: right;
  transition: none;
}

.zxfaq__q:hover{
  transform: none;
}

.zxfaq__q:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(75,73,172,.18);
}

.zxfaq__qtext{ flex: 1; }

.zxfaq__icon{
  flex: 0 0 auto;
  font-size: 18px;
  opacity: .85;
  user-select: none;
}

/* Panel smooth accordion */
.zxfaq__panel{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: none;
  will-change: max-height, opacity;
}

.zxfaq__panel.is-open{
  /* max-height is set inline by JS for smooth open */
  opacity: 1;
}

/* Answer */
.zxfaq__a{
  margin-top: 8px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  line-height: 1.95;
  font-size: 14px;
}

.zxfaq__a p{ margin: 0 0 8px 0; }
.zxfaq__a p:last-child{ margin-bottom: 0; }
