/* WIFAQ CASE POPUP SELECT */

.wifaq-case-picker {
  position:relative;
  width:100%;
}

.wifaq-case-picker-native {
  position:absolute !important;
  inset-inline-start:0 !important;
  bottom:0 !important;
  width:1px !important;
  height:1px !important;
  min-width:1px !important;
  min-height:1px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.wifaq-case-picker-button {
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 11px;
  border:1px solid #d7e0e3;
  border-radius:7px;
  background:#fff;
  color:#1f2d33;
  font:inherit;
  text-align:right;
  cursor:pointer;
}

.wifaq-case-picker-button:hover {
  border-color:#91b9bd;
  background:#fbfdfd;
}

.wifaq-case-picker-button:focus-visible {
  outline:2px solid rgba(12, 101, 112, 0.25);
  outline-offset:2px;
  border-color:#0c6570;
}

.wifaq-case-picker-button:disabled {
  opacity:0.58;
  cursor:not-allowed;
  background:#f3f5f6;
}

.wifaq-case-picker-value {
  min-width:0;
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.wifaq-case-picker-arrow {
  width:16px;
  height:16px;
  flex:0 0 16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.wifaq-case-popup {
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  background:rgba(12, 28, 35, 0.54);
  backdrop-filter:blur(2px);
}

.wifaq-case-popup[hidden] {
  display:none !important;
}

body.wifaq-case-popup-open {
  overflow:hidden;
}

.wifaq-case-popup-card {
  width:min(620px, 100%);
  max-height:min(82vh, 720px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #d9e2e4;
  border-radius:13px;
  background:#fff;
  box-shadow:
    0 24px 70px rgba(15, 35, 43, 0.27);
  direction:rtl;
}

.wifaq-case-popup-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 15px;
  border-bottom:1px solid #e3e9eb;
}

.wifaq-case-popup-title {
  margin:0;
  color:#17343d;
  font-size:14px;
  font-weight:800;
}

.wifaq-case-popup-close {
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid #dce4e6;
  border-radius:7px;
  background:#fff;
  color:#51636b;
  font-size:18px;
  cursor:pointer;
}

.wifaq-case-popup-close:hover {
  color:#b42318;
  background:#fff4f3;
  border-color:#ffd4d0;
}

.wifaq-case-popup-search-wrap {
  position:relative;
  padding:12px 15px;
  border-bottom:1px solid #edf1f2;
  background:#f8fafb;
}

.wifaq-case-popup-search {
  width:100%;
  min-height:40px;
  padding:9px 38px 9px 11px;
  border:1px solid #cedadd;
  border-radius:8px;
  background:#fff;
  color:#172b33;
  font:inherit;
  direction:rtl;
}

.wifaq-case-popup-search:focus {
  outline:2px solid rgba(12, 101, 112, 0.18);
  border-color:#0c6570;
}

.wifaq-case-popup-search-icon {
  position:absolute;
  top:50%;
  right:27px;
  width:16px;
  height:16px;
  transform:translateY(-50%);
  fill:none;
  stroke:#6d7f86;
  stroke-width:1.8;
  stroke-linecap:round;
  pointer-events:none;
}

.wifaq-case-popup-list {
  flex:1;
  min-height:180px;
  overflow:auto;
  padding:8px;
}

.wifaq-case-popup-item {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 6px;
  padding:10px 12px;
  border:1px solid #e3e9eb;
  border-radius:8px;
  background:#fff;
  color:#20343c;
  text-align:right;
  cursor:pointer;
}

.wifaq-case-popup-item:hover {
  border-color:#b6d4d7;
  background:#f3f9f9;
}

.wifaq-case-popup-item.is-selected {
  border-color:#0c6570;
  background:#eaf5f5;
}

.wifaq-case-popup-item-main {
  min-width:0;
  flex:1;
}

.wifaq-case-popup-item-title {
  display:block;
  overflow:hidden;
  color:#18353d;
  font-size:12px;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.wifaq-case-popup-item-meta {
  display:block;
  margin-top:4px;
  color:#718188;
  font-family:Arial, Tahoma, sans-serif;
  font-size:10px;
  direction:ltr;
  unicode-bidi:isolate;
  text-align:right;
}

.wifaq-case-popup-check {
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 20px;
  border:1px solid #cbd8db;
  border-radius:50%;
  color:transparent;
  font-size:12px;
}

.wifaq-case-popup-item.is-selected
.wifaq-case-popup-check {
  border-color:#0c6570;
  background:#0c6570;
  color:#fff;
}

.wifaq-case-popup-item-reset {
  background:#fafcfc;
}

.wifaq-case-popup-empty {
  padding:35px 15px;
  color:#74848a;
  text-align:center;
  font-size:12px;
}

.wifaq-case-popup-count {
  padding:8px 15px;
  border-top:1px solid #edf1f2;
  background:#fafcfc;
  color:#718188;
  font-size:10px;
}

@media (max-width:600px) {
  .wifaq-case-popup {
    align-items:flex-end;
    padding:0;
  }

  .wifaq-case-popup-card {
    width:100%;
    max-height:88vh;
    border-radius:14px 14px 0 0;
  }
}
