.tibr-quick-search,
.tibr-quick-search *{
  box-sizing:border-box;
}

.tibr-quick-search{
  --tibr-quick-primary:#052b1e;
  --tibr-quick-secondary:#0b4d35;
  --tibr-quick-gold:#b8922a;
  --tibr-quick-bg:#fbfaf5;
  --tibr-quick-card:#fff;
  --tibr-quick-text:#102018;
  --tibr-quick-muted:#647268;
  --tibr-quick-radius:8px;
  --tibr-quick-max:1120px;
  direction:rtl;
  width:100%;
  padding:26px 14px;
  background:var(--tibr-quick-bg);
  font-family:Cairo,Tajawal,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.tibr-quick-search-inner{
  width:min(100%, var(--tibr-quick-max));
  margin:0 auto;
}

.tibr-quick-search-head{
  margin:0 0 14px;
  text-align:center;
}

.tibr-quick-search-head h2{
  margin:0;
  color:var(--tibr-quick-primary);
  font-size:clamp(23px,3vw,36px);
  font-weight:900;
  line-height:1.35;
}

.tibr-quick-search-head p{
  margin:7px 0 0;
  color:var(--tibr-quick-muted);
  font-size:15px;
  font-weight:800;
  line-height:1.8;
}

.tibr-quick-search-form{
  margin:0;
  padding:14px;
  border:1px solid rgba(5,43,30,.12);
  border-radius:var(--tibr-quick-radius);
  background:var(--tibr-quick-card);
  box-shadow:0 14px 34px rgba(5,43,30,.08);
}

.tibr-quick-search-box{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 118px;
  align-items:center;
  gap:8px;
  padding:8px;
  border:1px solid rgba(5,43,30,.13);
  border-radius:max(6px, calc(var(--tibr-quick-radius) - 1px));
  background:#f7faf6;
}

.tibr-quick-search-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:999px;
  background:rgba(184,146,42,.14);
  color:var(--tibr-quick-gold);
}

.tibr-quick-search-icon svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.tibr-quick-search-box input{
  width:100%;
  min-width:0;
  height:46px;
  border:0;
  border-radius:6px;
  background:#fff;
  color:var(--tibr-quick-text);
  font:inherit;
  font-size:15px;
  font-weight:800;
  outline:none;
}

.tibr-quick-search-box input{
  padding:0 12px;
}

.tibr-quick-search-box input::placeholder{
  color:#89958e;
}

.tibr-quick-search-box button{
  height:46px;
  border:0;
  border-radius:6px;
  background:linear-gradient(135deg,var(--tibr-quick-primary),var(--tibr-quick-secondary));
  color:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
}

.tibr-quick-search-box button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(5,43,30,.16);
}

.tibr-quick-live-results{
  margin-top:10px;
  overflow:hidden;
  border:1px solid rgba(5,43,30,.12);
  border-radius:var(--tibr-quick-radius);
  background:#fff;
  box-shadow:0 12px 26px rgba(5,43,30,.08);
}

.tibr-quick-live-results[hidden]{
  display:none;
}

.tibr-quick-live-status{
  padding:13px 14px;
  color:var(--tibr-quick-muted);
  font-size:13px;
  font-weight:800;
}

.tibr-quick-live-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:12px 14px;
  color:var(--tibr-quick-text);
  text-decoration:none!important;
  border-top:1px solid rgba(5,43,30,.08);
}

.tibr-quick-live-item:first-child{
  border-top:0;
}

.tibr-quick-live-item:hover{
  background:#f7faf6;
}

.tibr-quick-live-item strong{
  display:block;
  color:var(--tibr-quick-primary);
  font-size:14px;
  font-weight:900;
  line-height:1.5;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.tibr-quick-live-arrow{
  color:var(--tibr-quick-gold);
  font-weight:900;
}

.tibr-quick-categories{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:12px;
}

.tibr-quick-categories button{
  min-height:36px;
  padding:0 13px;
  border:1px solid rgba(5,43,30,.12);
  border-radius:999px;
  background:#fff;
  color:var(--tibr-quick-primary);
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.tibr-quick-categories button:hover{
  transform:translateY(-1px);
  border-color:rgba(184,146,42,.34);
  background:rgba(184,146,42,.10);
}

.tibr-quick-categories button.is-active{
  border-color:var(--tibr-quick-primary);
  background:linear-gradient(135deg,var(--tibr-quick-primary),var(--tibr-quick-secondary));
  color:#fff;
}

.tibr-quick-suggestions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:12px;
  color:var(--tibr-quick-muted);
  font-size:13px;
  font-weight:800;
}

.tibr-quick-suggestions span{
  color:var(--tibr-quick-primary);
  font-weight:900;
}

.tibr-quick-suggestions button{
  min-height:32px;
  padding:0 11px;
  border:1px solid rgba(184,146,42,.28);
  border-radius:999px;
  background:#fff;
  color:var(--tibr-quick-primary);
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.tibr-quick-suggestions button:hover{
  background:rgba(184,146,42,.12);
}

@media(max-width:900px){
  .tibr-quick-search-box{
    grid-template-columns:42px minmax(0,1fr) 110px;
  }
}

@media(max-width:640px){
  .tibr-quick-search{
    padding:18px 10px;
  }

  .tibr-quick-search-form{
    padding:10px;
  }

  .tibr-quick-search-head{
    margin-bottom:11px;
  }

  .tibr-quick-search-head h2{
    font-size:22px;
  }

  .tibr-quick-search-head p{
    font-size:13px;
    line-height:1.7;
  }

  .tibr-quick-search-box{
    grid-template-columns:38px minmax(0,1fr);
    gap:7px;
    padding:7px;
  }

  .tibr-quick-search-icon{
    width:36px;
    height:36px;
  }

  .tibr-quick-search-icon svg{
    width:18px;
    height:18px;
  }

  .tibr-quick-search-box input,
  .tibr-quick-search-box button{
    height:43px;
    font-size:14px;
  }

  .tibr-quick-search-box button{
    grid-column:1 / -1;
  }

  .tibr-quick-live-item{
    grid-template-columns:minmax(0,1fr);
    padding:11px 12px;
  }

  .tibr-quick-live-item strong{
    font-size:13px;
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }

  .tibr-quick-live-arrow{
    display:none;
  }

  .tibr-quick-categories{
    justify-content:flex-start;
    gap:6px;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:3px;
    scrollbar-width:none;
  }

  .tibr-quick-categories::-webkit-scrollbar{
    display:none;
  }

  .tibr-quick-categories button{
    flex:0 0 auto;
    min-height:34px;
    padding:0 11px;
    font-size:12px;
  }

  .tibr-quick-suggestions{
    justify-content:flex-start;
    gap:6px;
  }

  .tibr-quick-suggestions span{
    width:100%;
  }
}
