.ig-icta-video::-webkit-media-controls,
.ig-icta-video::-webkit-media-controls-enclosure,
.ig-icta-video::-webkit-media-controls-panel,
.ig-icta-video::-webkit-media-controls-play-button,
.ig-icta-video::-webkit-media-controls-start-playback-button,
.ig-icta-video::-webkit-media-controls-current-time-display,
.ig-icta-video::-webkit-media-controls-time-remaining-display,
.ig-icta-video::-webkit-media-controls-timeline,
.ig-icta-video::-webkit-media-controls-volume-slider,
.ig-icta-video::-webkit-media-controls-mute-button,
.ig-icta-video::-webkit-media-controls-toggle-closed-captions-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* رفع مشکل فوکوس و هایلایت در مرورگرهای موبایل */
.ig-icta-video {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#ig-icta-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: none;
  opacity: 0;
  pointer-events: auto;
}

.ig-icta-container {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  left: auto;
  top: auto;
  width: 28rem;
  height: 44rem;
  max-width: calc(100vw - 4rem);
  max-height: calc(100vh - 4rem);
  z-index: 1000000;
  isolation: isolate;
  opacity: 0;
  transform: translateY(3rem) scale(0.95);
  transform-origin: bottom right;
}

@media (max-width: 576px) {
  .ig-icta-container {
    right: 1rem;
    bottom: 1rem;
    width: calc(100vw - 2rem);
    height: calc(100vh - 2rem);
    max-width: calc(100vw - 2rem);
    max-height: 56rem;
  }
}

.ig-icta-container::before {
  content: "";
  position: absolute;
  inset: -2px;
  -webkit-clip-path: url(#story-container-bg);
  clip-path: url(#story-container-bg);
  background-color: var(--c-primary-100, #fff);
  pointer-events: none;
}

.ig-icta-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-clip-path: url(#story-container-bg);
  clip-path: url(#story-container-bg);
  transition: opacity 0.25s ease;
  background-color: #000;
}

.ig-icta-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.ig-icta-progress-wrapper {
  position: absolute;
  inset: 1.2rem 1.2rem auto 1.2rem;
  display: flex;
  align-items: center;
  z-index: 3;
}

.ig-icta-progress-bar {
  position: relative;
  overflow: hidden;
  height: 0.6rem;
  background: rgba(255, 255, 255, 0.4);
  flex: 1;
  border-radius: 10px;
  width: 100%;
  cursor: pointer;
  direction: ltr;
}

.ig-icta-progress-fill {
  height: 100%;
  width: 0;
  background-color: #d90a2c;
  border-radius: 10px;
}

.ig-icta-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15.4rem;
  height: 3.6rem;
  pointer-events: none;
}

.ig-icta-badge::before {
  content: "";
  position: absolute;
  background-image: url(https://igsite.ir/wp-content/uploads/2026/07/IGSite-1.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 6.8rem;
  height: 1.4rem;
  z-index: 2;
}

.ig-icta-time-display {
  font-size: 1.2rem;
  color: #fff;
  user-select: none;
  width: 4rem;
}

.ig-icta-close {
  cursor: pointer;
  flex: none;
  padding: 5px;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  border: none;
}

.ig-icta-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.ig-icta-tools {
  position: absolute;
  inset: auto 1.5rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(100% - 3rem);
  margin: 0 auto;
  gap: 1rem;
  z-index: 3;
}

.ig-icta-controls {
  display: none;
  width: 100%;
}

.ig-icta-controls .btn--control {
  color: black;
  width: 100%;
  border-radius: 5rem;
  background-color: rgb(234 233 243 / 33%);
  font-size: 1.2rem;
  padding: 0.3rem 1.2rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  border: none;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.ig-icta-end-controls {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.ig-icta-extra-button {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  height: 3.6rem;
  background: #fff;
  border-radius: 5rem;
  text-decoration: none;
  color: #000;
  font-size: 1.2rem;
}

.ig-icta-replay {
  display: none;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

.ig-icta-home-button {
  z-index: 2;
  bottom: 0.6rem;
  left: 50%;
  display: none;
  color: #fff;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.ig-icta-request {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  gap: 0.6rem;
  padding: 0.3rem 1.2rem;
  background: #d90a2c;
  color: #fff;
  border: none;
  border-radius: 5rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.ig-icta-btn__text {
  /* height: 1.6rem; */
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
  /* position: relative; */
  /* z-index: 2; */
  transition: transform 1s;
}
.ig-icta-request:hover .ig-icta-btn__text,.ig-icta-request:hover svg {
  color: #d90a2c;
  fill: #d90a2c;
}

.ig-icta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* padding: 12px 28px; */
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  transition:
    color 0.4s ease,
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.ig-icta-btn span {
  position: relative;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

.ig-icta-btn span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  white-space: nowrap;
  /* color: #38bdf8;  */
}

.ig-icta-btn:hover span {
  transform: translateY(-110%);
}

.ig-icta-btn::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: #111827; */
  border-radius: 50%;
  transition:
    top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.4s ease;
  z-index: -1;
}

.ig-icta-help-phone.ig-icta-btn::before {
  background-color: #d90a2c;
}
.ig-icta-request.ig-icta-btn::before {
  background-color: #ffffff;
}
.ig-icta-request.ig-icta-btn:hover span {
  color: #ffffff;
}
.ig-icta-request.ig-icta-btn:hover span::after {
  color: #d90a2c;
}
.ig-icta-help-phone.ig-icta-btn:hover span {
  color: #d90a2c;
}
.ig-icta-help-phone.ig-icta-btn span::after {
  color: #ffffff;
}

.ig-icta-btn svg {
  transition: transform 0.3s ease;
}

.ig-icta-btn:hover {
  color: #ffffff;
  fill: white;
  transform: scale(1.05);
}

.ig-icta-btn:active {
  transform: scale(0.95);
}

.ig-icta-btn:hover::before {
  top: 0;
  border-radius: 0%;
}

.ig-icta-btn:hover svg {
  transform: translateY(-2px);
}

.ig-icta-request svg {
  width: 15px;
  aspect-ratio: 1;
}

.ig-icta-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  background-color: rgba(238, 238, 238, 0.9);
  border-radius: 5rem;
  text-decoration: none;
  color: #000;
  padding-inline-end: 10px;
  font-size: 1.1rem;
  gap: 15px;
}

.ig-icta-help-phone {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: #fff;
  border-radius: 5rem;
  font-weight: bold;
  gap: 5px;
}
.ig-icta-help-phone svg {
  width: 15px;
  aspect-ratio: 1;
}
