.octeangin-video-popup-is-open {
  overflow: hidden;
}

.octeangin-video-card {
  width: 100%;
}

.octeangin-video-card__trigger {
  display: grid;
  width: 100%;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  background: #fff;
  color: #12223a;
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.octeangin-video-card__trigger:hover,
.octeangin-video-card__trigger:focus-visible {
  border-color: #127eb7;
  box-shadow: 0 12px 30px rgba(18, 126, 183, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.octeangin-video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #071527;
}

.octeangin-video-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.octeangin-video-card__play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #127eb7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.octeangin-video-card__play::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
}

.octeangin-video-card__title {
  display: block;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.octeangin-video-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.octeangin-video-popup[hidden] {
  display: none !important;
}

.octeangin-video-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 21, 39, 0.82);
  cursor: pointer;
}

.octeangin-video-popup__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 920px, calc((100vh - 48px) * 16 / 9));
  max-height: calc(100vh - 48px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.octeangin-video-popup__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #12223a;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.octeangin-video-popup__close:hover,
.octeangin-video-popup__close:focus-visible {
  outline: none;
  background: #eef7fc;
}

.octeangin-video-popup__content {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
}

.octeangin-video-popup__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}

.octeangin-video-popup__quiz-link {
  text-align: center;
}

.octeangin-video-popup__quiz-link.is-disabled,
.octeangin-video-popup__quiz-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
}

.octeangin-video-popup__notice {
  margin: 0;
  color: #bf2538;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.octeangin-video-popup__notice.is-success {
  color: #167048;
}

.octeangin-video-popup__notice[hidden] {
  display: none !important;
}

.octeangin-video-popup__test-end {
  border: 1px solid #b8c7d4;
  border-radius: 6px;
  background: #fff;
  color: #12223a;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 12px;
}

.octeangin-video-popup__test-end:hover,
.octeangin-video-popup__test-end:focus-visible {
  border-color: #127eb7;
  background: #eef7fc;
  outline: none;
}

.octeangin-video-popup__test-end[hidden] {
  display: none !important;
}

.octeangin-video-quiz {
  position: relative;
}

.octeangin-video-quiz video {
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block;
  object-fit: contain;
}

.octeangin-video-quiz .bricks-video-overlay,
.octeangin-video-quiz .bricks-video-overlay-icon {
  display: none !important;
}

.octeangin-video-quiz__toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: #127eb7;
  color: #fff;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
  transition: background-color 140ms ease, transform 140ms ease;
}

.octeangin-video-quiz__toggle:hover,
.octeangin-video-quiz__toggle:focus-visible {
  background: #0d6c9f;
  outline: none;
  transform: translate(-50%, -50%) scale(1.04);
}

.octeangin-video-quiz__toggle-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 32px;
}

.octeangin-video-quiz__toggle-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
}

.octeangin-video-quiz__toggle.is-playing .octeangin-video-quiz__toggle-icon::before,
.octeangin-video-quiz__toggle.is-playing .octeangin-video-quiz__toggle-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 8px;
  height: 24px;
  border: 0;
  background: #fff;
}

.octeangin-video-quiz__toggle.is-playing .octeangin-video-quiz__toggle-icon::before {
  left: 5px;
}

.octeangin-video-quiz__toggle.is-playing .octeangin-video-quiz__toggle-icon::after {
  right: 5px;
}

.octeangin-video-quiz__toggle[hidden] {
  display: none !important;
}

.octeangin-video-quiz--native-controls .octeangin-video-quiz__toggle {
  display: none !important;
}

.octeangin-video-quiz__toggle.is-playing {
  opacity: 0;
  pointer-events: none;
}

.octeangin-video-quiz__overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 21, 39, 0.78);
}

.octeangin-video-quiz__overlay[hidden] {
  display: none !important;
}

.octeangin-video-quiz__modal {
  width: min(100%, 430px);
  max-height: 92%;
  overflow: auto;
  gap: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  color: #12223a;
  padding: 22px;
}

.octeangin-video-quiz__question {
  margin: 0 0 16px;
  color: #12223a;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.octeangin-video-quiz__answers {
  display: grid;
  gap: 10px;
}

.octeangin-video-quiz__answer {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  background: #fff;
  color: #12223a;
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
  padding: 11px 13px;
  text-align: left;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.octeangin-video-quiz__answer:hover,
.octeangin-video-quiz__answer:focus-visible {
  border-color: #127eb7;
  background: #eef7fc;
  outline: none;
}

.octeangin-video-quiz__answer.is-selected {
  border-color: #127eb7;
  background: #dff2fb;
}

.octeangin-video-quiz__feedback {
  min-height: 20px;
  margin: 13px 0 0;
  color: #5f7087;
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .octeangin-video-popup {
    padding: 14px;
  }

  .octeangin-video-popup__close {
    top: 8px;
    right: 8px;
  }

  .octeangin-video-card__play {
    right: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
  }

  .octeangin-video-card__play::before {
    left: 19px;
    top: 14px;
  }

  .octeangin-video-quiz__toggle {
    width: 60px;
    height: 60px;
  }

  .octeangin-video-quiz__overlay {
    padding: 12px;
  }

  .octeangin-video-quiz__modal {
    padding: 18px;
  }

  .octeangin-video-quiz__question {
    font-size: 18px;
  }
}
