/*
 * رأس العلامة الموروث من تطبيق تحويلة للزبون.
 * موبايل أولاً: الشعار والنص وحالة الاتصال وواتساب هي العناصر الوحيدة.
 */
.app-inherited-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(12, 111, 85, 0.08);
}

.app-inherited-header .header-inner {
  box-sizing: border-box;
  width: 100%;
  min-height: 68px;
  height: 68px;
  padding-inline: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  direction: rtl;
}

.app-inherited-header .brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #103e35;
  text-decoration: none;
}

.app-inherited-header .brand > img {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: block;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-inherited-header .brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  white-space: nowrap;
}

.app-inherited-header .brand-copy strong {
  color: #103e35;
  font-size: 21px;
  line-height: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.app-inherited-header .brand-copy small {
  color: #647b75;
  font-size: 7.5px;
  line-height: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.app-inherited-header .header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  direction: rtl;
}

.app-inherited-header .connection-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10865f;
  font-size: 9px;
  line-height: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.app-inherited-header .connection-state i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #11956b;
  animation: tahweeleh-connection-pulse 2.2s ease-in-out infinite alternate;
}

.app-inherited-header .support-link {
  width: 43px;
  height: 43px;
  min-width: 43px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: inherit;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

.app-inherited-header .support-link:hover,
.app-inherited-header .support-link:focus-visible {
  background: rgba(37, 211, 102, 0.08);
  transform: none;
}

.app-inherited-header .support-link img {
  width: 28px;
  height: 28px;
  display: block;
}

@keyframes tahweeleh-connection-pulse {
  from { opacity: 0.55; transform: scale(0.92); }
  to { opacity: 0.85; transform: scale(1); }
}

@media (min-width: 768px) {
  .app-inherited-header .header-inner {
    min-height: 72px;
    height: 72px;
    padding-inline: 18px;
  }

  .app-inherited-header .brand > img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .app-inherited-header .brand-copy strong {
    font-size: 22px;
    line-height: 23px;
  }

  .app-inherited-header .brand-copy small {
    font-size: 8.5px;
    line-height: 9px;
  }
}

@media (max-width: 350px) {
  .app-inherited-header .header-inner {
    padding-inline: 9px;
    gap: 2px;
  }

  .app-inherited-header .brand {
    gap: 2px;
  }

  .app-inherited-header .brand > img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .app-inherited-header .brand-copy strong {
    font-size: 20px;
    line-height: 21px;
  }

  .app-inherited-header .brand-copy small {
    font-size: 7px;
    line-height: 8px;
  }

  .app-inherited-header .header-actions {
    gap: 1px;
  }

  .app-inherited-header .connection-state {
    font-size: 8.5px;
    gap: 3px;
  }

  .app-inherited-header .support-link {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-inherited-header .connection-state i {
    animation: none;
    opacity: 0.8;
  }
}
