/* PDF viewer component
   PC: show embedded PDF viewer
   SP: hide embedded viewer and show buttons only
*/

.c-pdf-viewer-section {
  margin-top: 40px;
}

.c-pdf-viewer-section__lead {
  margin-bottom: 20px;
  line-height: 1.8;
}

.c-pdf-viewer {
  width: 100%;
  height: min(82vh, 900px);
  min-height: 640px;
  border: 1px solid #d9dfe8;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f9fb;
}

.c-pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.c-pdf-viewer__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.c-pdf-viewer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  background: #005bac;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.c-pdf-viewer__button:hover,
.c-pdf-viewer__button:focus {
  opacity: 0.85;
  text-decoration: none;
}

.c-pdf-viewer__button--secondary {
  background: #eef3f8;
  color: #005bac;
}

.c-pdf-viewer__note {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
}

@media (min-width: 768px) {
  .c-pdf-viewer__button {
    min-width: 13em;
    min-height: 2.9em;
    padding: 0 1.6em;
    font-size: 0.9em;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .c-pdf-viewer__button {
    width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 767px) {
  .c-pdf-viewer {
    display: none;
  }

  .c-pdf-viewer__actions {
    display: block;
  }

  .c-pdf-viewer__button {
    width: 100%;
    margin-top: 12px;
  }

  .c-pdf-viewer__button:first-child {
    margin-top: 0;
  }
}