.acb-widget-trigger-btn {
  padding: 4px !important;
  position: fixed !important;
  border-radius: 100% !important;
  z-index: 2147483646 !important;
  border: none !important;
  cursor: pointer !important;
}

.acb-widget-trigger-btn.large {
  width: 60px;
  height: 60px;
}

.acb-widget-trigger-btn.medium {
  width: 48px;
  height: 48px;
}

.acb-widget-trigger-btn.small {
  width: 34px;
  height: 34px;
}

.acb-widget-trigger-btn:hover {
  opacity: 0.8;
  background-color: currentColor;
}

.acb-widget-trigger-btn:focus-visible {
  padding: 8px;
  outline: none;
  background-color: #f8fafc;
  box-shadow: 0 0 0 6px skyblue;
}

.acb-widget-trigger-btn.top-left {
  top: 24px;
  left: 24px;
}

.acb-widget-trigger-btn.top-center {
  top: 24px;
  left: 50%;
}

.acb-widget-trigger-btn.top-right {
  top: 24px;
  right: 24px;
}

.acb-widget-trigger-btn.mid-left {
  top: 50%;
  left: 24px;
}

.acb-widget-trigger-btn.mid-right {
  top: 50%;
  right: 24px;
}

.acb-widget-trigger-btn.bottom-left {
  bottom: 24px;
  left: 24px;
}

.acb-widget-trigger-btn.bottom-right {
  bottom: 24px;
  right: 24px;
}

.acb-widget-trigger-btn.bottom-center {
  bottom: 24px;
  left: 50%;
}

.acb-widget-trigger-btn img {
  width: 100%;
  height: 100%;
}

.acb-widget-trigger-btn .check-mark-icon {
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  position: absolute;
}

.acb-widget-frame {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  overflow: hidden;
  z-index: 2147483647;
  background-color: transparent;
}

.acb-widget-reading-guide {
  position: absolute;
  top: 80px;
  transform: translate(-50%, -50%);
  z-index: 2147483647;
  width: 40%;
  height: 20px;
  background-color: #175cff;
  border-radius: 20px;
  pointer-events: none;
}

.acb-widget-reading-guide .acb-widget-reading-guide-arrow {
  width: 0;
  height: 0;
  top: -10px;
  left: 50%;
  position: absolute;
  border-style: solid;
  border-width: 10px 5px 0 5px;
  transform: translateX(-50%) rotate(180deg);
  border-color: #175cff transparent transparent transparent;
}

.acb-widget-reading-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  z-index: 2147483647;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.acb-widget-reading-mask.top {
  border-bottom: 8px solid #175cff;
}

.acb-widget-reading-mask.bottom {
  border-top: 8px solid #175cff;
}

.page-summary-modal {
  position: fixed;
  z-index: 2147483647;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.page-summary-modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 60%;
  border: 1px solid #888;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

.page-summary-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background-color: #5cb85c;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.page-summary-modal-body {
  padding: 16px;
}

.page-summary-modal-body .loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #175cff;
}

.page-summary-modal-header .close {
  color: white;
  font-size: 28px;
  font-weight: bold;
}

.page-summary-modal-header .close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .acb-widget-trigger-btn.top-left {
    top: 5px;
    left: 5px;
  }

  .acb-widget-trigger-btn.top-center {
    top: 5px;
    left: 50%;
  }

  .acb-widget-trigger-btn.top-right {
    top: 5px;
    right: 24px;
  }

  .acb-widget-trigger-btn.mid-left {
    top: 50%;
    left: 5px;
  }

  .acb-widget-trigger-btn.mid-right {
    top: 50%;
    right: 5px;
  }

  .acb-widget-trigger-btn.bottom-left {
    bottom: 5px;
    left: 5px;
  }

  .acb-widget-trigger-btn.bottom-right {
    bottom: 5px;
    right: 5px;
  }

  .acb-widget-trigger-btn.bottom-center {
    bottom: 5px;
    left: 50%;
  }
}

@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
