.resusmed-pdf-viewer {
  margin: 24px 0;
}

.resusmed-pdf-card {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.resusmed-pdf-card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.resusmed-pdf-card__icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--resusmed-pdf-accent) 15%, #fff), #fff);
  color: var(--resusmed-pdf-accent);
  border: 1px solid color-mix(in srgb, var(--resusmed-pdf-accent) 22%, #d0d5dd);
  font-weight: 700;
}

.resusmed-pdf-card__icon svg {
  width: 28px;
  height: 28px;
}

.resusmed-pdf-card__meta {
  flex: 1;
  min-width: 0;
}

.resusmed-pdf-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  color: #101828;
}

.resusmed-pdf-card__description,
.resusmed-pdf-card__description p {
  margin: 0;
  color: #475467;
  line-height: 1.65;
  font-size: 15px;
}

.resusmed-pdf-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.resusmed-pdf-btn {
  appearance: none;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #1d2939;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  transition: .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resusmed-pdf-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16,24,40,.08);
}

.resusmed-pdf-btn--primary {
  background: var(--resusmed-pdf-accent);
  border-color: var(--resusmed-pdf-accent);
  color: #fff;
}

.resusmed-pdf-btn--ghost {
  background: #fff;
}

.resusmed-pdf-inline {
  display: none;
  margin-top: 18px;
}

.resusmed-pdf-inline.is-open {
  display: block;
}

.resusmed-pdf-frame {
  border: 1px solid #d0d5dd;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
}

.resusmed-pdf-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.resusmed-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.resusmed-pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(2px);
}

.resusmed-pdf-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100vw - 32px));
  margin: 20px auto;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.resusmed-pdf-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #eaecf0;
  background: #fff;
}

.resusmed-pdf-modal__heading {
  color: #101828;
  font-size: 18px;
}

.resusmed-pdf-modal__controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resusmed-pdf-frame--modal {
  height: min(82vh, 1000px);
  border: 0;
  border-radius: 0;
}

.resusmed-pdf-modal-open {
  overflow: hidden;
}

.resusmed-pdf-viewer--placeholder {
  padding: 16px;
  border: 1px dashed #d0d5dd;
  border-radius: 16px;
  background: #fff;
}

@media (max-width: 782px) {
  .resusmed-pdf-card {
    padding: 18px;
    border-radius: 18px;
  }

  .resusmed-pdf-card__header {
    flex-direction: column;
  }

  .resusmed-pdf-card__title {
    font-size: 21px;
  }

  .resusmed-pdf-modal__dialog {
    width: calc(100vw - 16px);
    margin: 8px auto;
    border-radius: 16px;
  }

  .resusmed-pdf-modal__topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
