.copilot-docs-page {
  margin: 0;
}

.copilot-docs-frame,
.copilot-frame {
  border: none;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin-bottom: -4px;
}

.copilot-docs-frame-container,
.copilot-frame-container {
  position: absolute;
}

.copilot-docs-frame-container {
  left: 0;
  transition:
    0.5s ease left,
    width 0.5s ease;
}

.copilot-frame-container {
  right: 0;
  transition:
    0.5s linear right,
    0.5s ease width;
}

.copilot-iframe-container {
  position: relative;
  overflow: hidden;
  display: flex;
  width: 100vw;
  height: 100vh;
}

.copilot-frame-container.slim {
  right: -100%;
}

.copilot-frame-container.expanded {
  width: 100%;
}

.copilot-docs-frame-container.expanded {
  width: 100%;
}

.copilot-docs-frame-container.slim {
  left: -100%;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    /* stylelint-disable-next-line length-zero-no-unit */
    box-shadow: inset 0px 0px 0px 30px #7ac142;
  }
}

// Animation for Check Mark
.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #7ac142;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border-color: #7ac142;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin-left: 5px;
  /* stylelint-disable-next-line length-zero-no-unit */
  box-shadow: inset 0px 0px 0px #7ac142;
  animation:
    fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
  margin-bottom: -5px;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.copilot-mobile-button {
  border-radius: 50%;
  position: fixed;
  right: 25px;
  bottom: 10px;
  background: #ffff;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition:
    right 0.2s ease,
    transform 1s ease;
  z-index: 9999;
}

.copilot-svg {
  width: 45px;
  height: 45px;
}

@keyframes bubble {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(0.95);
  }

  70% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}


.copilot-mobile-button:hover {
  animation: bubble 0.5s ease;
}

.copilot-docs-frame-container.slim .copilot-mobile-button {
  right: -100%;
}

/* stylelint-disable-next-line media-feature-range-notation */
@media (min-width: 1300px) {
  .copilot-docs-frame-container.expanded {
    width: 70%;
  }

  .copilot-frame-container.slim {
    width: 30%;
    right: 0;
  }

  .copilot-frame-container.expanded {
    width: 100%;
    right: 0;
  }

  .copilot-docs-frame-container.slim {
    left: -100%;
  }

  .copilot-docs-frame {
    width: 100%;
  }

  .copilot-frame {
    width: 100%;
  }

  .copilot-mobile-button {
    display: none;
  }

  .copilot-frame-container{
    box-shadow: 0 1px 3px rgba(0, 0, 0, 8%), 0 4px 6px rgba(0, 0, 0, 12%);
  }
}
