.zoodcom-stories {
  width: 100%;
  background: #fff;
  padding: 10px 0 6px;
  direction: rtl;
}

.zoodcom-stories-track {
  display: flex;
  flex-direction: row;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 16px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.zoodcom-stories-track::-webkit-scrollbar {
  display: none;
}

.zoodcom-story-ring {
  flex: 0 0 auto;
  width: 78px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  color: inherit;
}

.zoodcom-story-avatar {
  display: block;
  width: 68px;
  height: 68px;
  margin: 0 auto 6px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.zoodcom-story-ring.is-seen .zoodcom-story-avatar {
  background: #d5d5d5;
}

.zoodcom-story-avatar span {
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  background: #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

.zoodcom-story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.zoodcom-story-name {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: #3f3f3f;
  max-height: 2.6em;
  overflow: hidden;
}

.zoodcom-story-overlay {
  position: fixed;
  inset: 0;
  z-index: 10080;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoodcom-story-overlay[hidden] {
  display: none !important;
}

.zoodcom-story-phone {
  position: relative;
  width: min(420px, 100vw);
  height: min(780px, 100vh);
  background: #111;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
}

.zoodcom-story-progress {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  z-index: 5;
  display: flex;
  gap: 4px;
}

.zoodcom-story-progress i {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  overflow: hidden;
}

.zoodcom-story-progress i b {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

.zoodcom-story-progress i.is-done b {
  width: 100%;
}

.zoodcom-story-close {
  position: absolute;
  top: 18px;
  left: 10px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.zoodcom-story-head {
  position: absolute;
  top: 18px;
  right: 10px;
  left: 48px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoodcom-story-head-title {
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.zoodcom-story-media {
  position: absolute;
  inset: 0;
}

.zoodcom-story-media img,
.zoodcom-story-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zoodcom-story-caption {
  position: absolute;
  right: 16px;
  left: 16px;
  bottom: 78px;
  z-index: 5;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.zoodcom-story-cta {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #fff;
  color: #1a1a1a !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 999px;
  white-space: nowrap;
}

.zoodcom-story-cta[hidden] {
  display: none !important;
}

.zoodcom-story-hit {
  position: absolute;
  top: 52px;
  bottom: 0;
  width: 42%;
  z-index: 4;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.zoodcom-story-hit-next {
  right: 0;
}

.zoodcom-story-hit-prev {
  left: 0;
}

.zoodcom-story-nav {
  display: none;
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
}

.zoodcom-story-nav-next {
  left: max(12px, calc(50% - 250px));
}

.zoodcom-story-nav-prev {
  right: max(12px, calc(50% - 250px));
}

.zoodcom-story-nav-next::before,
.zoodcom-story-nav-prev::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 16px auto 0;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.zoodcom-story-nav-next::before {
  transform: rotate(-135deg);
  margin-left: 14px;
}

.zoodcom-story-nav-prev::before {
  transform: rotate(45deg);
  margin-right: 14px;
}

body.zoodcom-story-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .zoodcom-story-nav {
    display: block;
  }
}

@media (max-width: 600px) {
  .zoodcom-story-phone {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .zoodcom-story-ring {
    width: 72px;
  }

  .zoodcom-story-avatar {
    width: 62px;
    height: 62px;
  }
}
