/* Shared Tehran date/time strip for guest and signed-in home pages. */
.home-shared-date-time-v1 {
  width: min(calc(100% - clamp(24px, 4vw, 72px)), 1440px);
  min-height: 32px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 1px 4px;
  box-sizing: border-box;
  color: #718792;
  direction: rtl;
  font: 780 .69rem/1.6 Vazirmatn, Tahoma, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  white-space: nowrap;
}

.home-shared-date-time-v1 .home-shared-date-time-group {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  direction: rtl;
  white-space: nowrap;
}

/* Keep the clock icon immediately to the left of the full HH:MM:SS value. */
.home-shared-date-time-v1 .public-guest-date-time-clock-group {
  direction: ltr;
  justify-content: flex-start;
}

.home-shared-date-time-v1 .public-guest-date-time-clock-group > .home-shared-date-time-icon {
  order: 1;
}

.home-shared-date-time-v1 .public-guest-date-time-clock-group > .public-guest-date-time-clock {
  order: 2;
}

.home-shared-date-time-v1 .home-shared-date-cluster {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-right: 0;
  order: 2;
  direction: rtl;
}

.home-shared-date-time-v1 .home-shared-date-cluster > .home-shared-date-time-group:first-child {
  position: relative;
  right: 6px;
}

.home-shared-date-time-v1 .home-shared-meta-rotator {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 32px;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  order: 1;
  overflow: hidden;
  border-radius: 10px;
}

.home-shared-date-time-v1 .home-shared-wallet-link,
.home-shared-date-time-v1 .home-shared-user-link {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  grid-area: 1 / 1;
  direction: rtl;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 10px;
  padding: 2px 3px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
}

.home-shared-date-time-v1 .home-shared-meta-item {
  opacity: 0;
  transform: translate3d(0, -72%, 0);
  pointer-events: none;
  transition: opacity .52s ease, transform .58s cubic-bezier(.2,.76,.22,1);
  will-change: opacity, transform;
}

.home-shared-date-time-v1 .home-shared-meta-item.is-active {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.home-shared-date-time-v1 .home-shared-meta-item.is-exiting {
  z-index: 1;
  opacity: 0;
  transform: translate3d(0, 72%, 0);
  pointer-events: none;
}

.home-shared-date-time-v1 .home-shared-meta-item[aria-hidden="true"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

.home-shared-date-time-v1 .home-shared-wallet-icon {
  order: 1;
}

.home-shared-date-time-v1 .home-shared-wallet-link[hidden] {
  display: none !important;
}

.home-shared-date-time-v1 .home-shared-wallet-link:focus-visible {
  outline: 2px solid rgba(13, 148, 190, .45);
  outline-offset: 3px;
}

.home-shared-date-time-v1 .home-shared-user-link:focus-visible {
  outline: 2px solid rgba(13, 148, 190, .45);
  outline-offset: 3px;
}

.home-shared-date-time-v1 .home-shared-wallet-link:active {
  opacity: .72;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in {
  font-weight: 850;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in .home-shared-user-icon,
.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in .home-shared-user-name {
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in:active {
  background: rgba(10, 158, 205, .12);
  color: #078db9;
  box-shadow: inset 0 0 0 1px rgba(10, 158, 205, .14);
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in:active .home-shared-user-icon,
.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in:active .home-shared-user-name {
  transform: scale(.91);
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating {
  width: fit-content;
  max-width: calc(100% - 2px);
  min-width: 0;
  min-height: 30px;
  justify-self: start;
  margin-right: 0;
  margin-left: auto;
  padding: 3px 8px 3px 10px;
  box-sizing: border-box;
  background: rgba(10, 158, 205, .13);
  color: #078db9;
  box-shadow: inset 0 0 0 1px rgba(10, 158, 205, .16), 0 4px 14px rgba(9, 127, 170, .1);
  pointer-events: none;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating .home-shared-user-name {
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating .home-shared-user-icon {
  position: relative;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating .home-shared-user-icon svg {
  opacity: 0;
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating .home-shared-user-icon::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 2px solid rgba(7, 141, 185, .28);
  border-top-color: #078db9;
  border-radius: 50%;
  animation: homeSharedGuestSignInSpin .65s linear infinite;
}

@keyframes homeSharedGuestSignInSpin {
  to { transform: rotate(360deg); }
}

.home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in .home-shared-user-badge {
  display: none !important;
}

.home-shared-date-time-v1 .home-shared-wallet-balance {
  order: 2;
  color: inherit;
  direction: rtl;
  unicode-bidi: isolate;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.home-shared-date-time-v1 .home-shared-user-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
}

.home-shared-date-time-v1 .home-shared-user-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-shared-date-time-v1 .home-shared-user-name {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
}

.home-shared-date-time-v1 .home-shared-user-badge {
  flex: 0 0 auto;
  margin-inline: 1px 0;
}

.home-shared-date-time-v1 .home-shared-user-badge[hidden] {
  display: none !important;
}

.home-shared-date-time-v1 .home-shared-date-time-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
  object-fit: contain;
}

.home-shared-date-time-v1 time {
  color: inherit;
  white-space: nowrap;
}

.home-shared-date-time-v1 .public-guest-date-time-clock {
  display: inline-block;
  width: 7.15em !important;
  min-width: 7.15em !important;
  max-width: 7.15em !important;
  flex: 0 0 7.15em;
  box-sizing: border-box;
  overflow: hidden;
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

@media (max-width: 600px) {
  .home-shared-date-time-v1 {
    width: calc(100% - 24px);
    min-height: 28px;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 7px;
    padding-inline: 1px;
    font-size: .61rem;
  }

  .home-shared-date-time-v1 .home-shared-date-time-group {
    gap: 5px;
  }

  .home-shared-date-time-v1 .home-shared-date-cluster {
    gap: 10px;
  }

  .home-shared-date-time-v1 .home-shared-date-cluster > .home-shared-date-time-group:first-child {
    right: 5px;
  }

  .home-shared-date-time-v1 .home-shared-meta-rotator {
    width: 100%;
    max-width: 100%;
    min-height: 28px;
  }

  .home-shared-date-time-v1 .home-shared-wallet-link,
  .home-shared-date-time-v1 .home-shared-user-link {
    gap: 5px;
    padding-inline: 1px;
  }

  .home-shared-date-time-v1 .home-shared-date-time-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .home-shared-date-time-v1 .home-shared-user-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
}

@media (max-width: 350px) {
  .home-shared-date-time-v1 {
    font-size: .56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shared-date-time-v1 .home-shared-meta-item {
    transition-duration: .01ms;
  }
  .home-shared-date-time-v1 .home-shared-user-link.is-guest-sign-in.is-navigating .home-shared-user-icon::after {
    animation-duration: 1.2s;
  }
}
