.gp-lazy-pdf {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 14px;
  background: linear-gradient(145deg, #29252e, #17151a);
  scrollbar-color: #8e5bb1 #241f29;
  scrollbar-width: thin;
}

.gp-pdf-loading,
.gp-pdf-error {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #fff;
  padding: 30px;
}

.gp-pdf-loading small,
.gp-pdf-error span { color: rgba(255, 255, 255, .7); }

.gp-pdf-progress-copy {
  width: min(440px, 88%);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.gp-pdf-progress-copy b {
  color: #fff;
  font-size: 31px;
  line-height: 1;
}

.gp-pdf-progress-copy span {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.gp-pdf-progress-track {
  width: min(440px, 88%);
  height: 12px;
  padding: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .35);
}

.gp-pdf-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a96fda, #dfb8ff);
  box-shadow: 0 0 15px rgba(208, 155, 247, .6);
  transition: width .22s ease;
}

.gp-pdf-page {
  width: 100%;
  min-height: 900px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f7f5f8;
  color: #776b7e;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
  overflow: hidden;
}

.gp-pdf-page canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
}

.gp-pdf-page.is-loading span { opacity: .55; }
.gp-pdf-page.has-error {
  min-height: 150px;
  padding: 25px;
  text-align: center;
  color: #70448c;
}

.gp-resource-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6f35a2, #8c4fc0);
  color: #fff !important;
  font-weight: 850;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(111, 53, 162, .24);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gp-resource-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(111, 53, 162, .32);
}

@media (max-width: 760px) {
  .gp-pdf-page { min-height: 620px; }
  .gp-resource-viewer-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .gp-lazy-pdf { padding: 8px; }
}
