.ra-copyable-pdf {
  --ra-white: #ffffff;
  --ra-title: #0907aa;
  --ra-navy: #010022;
  --ra-deep-blue: #05014e;
  --ra-blue: #1710ef;
  --ra-purple: #8114dc;
  --ra-violet: #a21fff;
  --ra-lilac: #c88df0;
  --ra-focus: #5d7cff;
  width: 100%;
  padding: clamp(3.25rem, 4vw, 3.9rem) 1.25rem;
  overflow: hidden;
  color: #11113a;
  background: var(--ra-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

.ra-copyable-pdf,
.ra-copyable-pdf * {
  box-sizing: border-box;
}

.ra-copyable-pdf button,
.ra-copyable-pdf input,
.ra-copyable-pdf select,
.ra-copyable-pdf a {
  font: inherit;
}

.ra-copyable-pdf [hidden] {
  display: none !important;
}

.ra-copyable-pdf__heading {
  width: min(100%, 62.5rem);
  margin: 0 auto 2.65rem;
  padding-inline-start: clamp(0rem, 7.5vw, 7.45rem);
}

.ra-copyable-pdf__brand {
  width: max-content;
  max-width: 100%;
  margin: 0 0 0.1rem;
  color: #6977ff;
  background: linear-gradient(90deg, #5f7cff 0%, #9f63f2 57%, #db5acb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  -webkit-text-fill-color: transparent;
}

.ra-copyable-pdf__title {
  max-width: 100%;
  margin: 0;
  color: var(--ra-title);
  font-size: clamp(3rem, 4.4vw, 4.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.ra-copyable-pdf__dropzone {
  position: relative;
  display: flex;
  min-height: 20rem;
  width: min(100%, 62.5rem);
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 2.7rem;
  overflow: hidden;
  border: 0.125rem solid transparent;
  border-radius: 3.25rem;
  outline: none;
  background:
    radial-gradient(circle at 50% 115%, rgba(38, 30, 255, 0.82), transparent 58%),
    linear-gradient(180deg, var(--ra-navy) 0%, var(--ra-deep-blue) 53%, var(--ra-blue) 100%);
  box-shadow: inset 0 -0.2rem 1rem rgba(56, 34, 255, 0.24);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ra-copyable-pdf__dropzone::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: rgba(126, 68, 255, 0.12);
  transition: opacity 180ms ease;
}

.ra-copyable-pdf__dropzone:focus-visible,
.ra-copyable-pdf__dropzone.is-dragging {
  border-color: #a64dff;
  box-shadow: 0 0 0 0.32rem rgba(135, 60, 255, 0.18), inset 0 -0.2rem 1rem rgba(56, 34, 255, 0.24);
}

.ra-copyable-pdf__dropzone.is-dragging {
  transform: translateY(-0.15rem);
}

.ra-copyable-pdf__dropzone.is-dragging::before {
  opacity: 1;
}

.ra-copyable-pdf__input {
  position: absolute !important;
  width: 0.0625rem !important;
  height: 0.0625rem !important;
  padding: 0 !important;
  margin: -0.0625rem !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ra-copyable-pdf__button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.08rem 2.55rem;
  border: 0.18rem solid #7838df;
  border-radius: 1.05rem;
  color: var(--ra-white);
  background: linear-gradient(100deg, var(--ra-purple) 0%, var(--ra-violet) 52%, var(--ra-lilac) 100%);
  box-shadow: inset 0 -0.2rem 0 rgba(91, 19, 181, 0.45), 0 0.35rem 0.9rem rgba(85, 34, 179, 0.13);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.ra-copyable-pdf__button:hover:not(:disabled) {
  color: var(--ra-white);
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-0.15rem);
  box-shadow: inset 0 -0.2rem 0 rgba(91, 19, 181, 0.45), 0 0.6rem 1.3rem rgba(85, 34, 179, 0.22);
}

.ra-copyable-pdf__button:focus-visible,
.ra-copyable-pdf__tool-button:focus-visible,
.ra-copyable-pdf__remove:focus-visible,
.ra-copyable-pdf__field select:focus-visible {
  outline: 0.2rem solid var(--ra-focus);
  outline-offset: 0.2rem;
}

.ra-copyable-pdf__button:disabled,
.ra-copyable-pdf__tool-button:disabled,
.ra-copyable-pdf__remove:disabled,
.ra-copyable-pdf__field select:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.12);
}

.ra-copyable-pdf__drop-prompt {
  padding-inline: clamp(2.25rem, 6vw, 4.35rem);
}

.ra-copyable-pdf__arrow {
  flex: 0 0 auto;
  font-size: 1.18em;
  font-weight: 500;
  line-height: 0.8;
}

.ra-copyable-pdf__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.6rem 3rem;
  margin: 1.65rem auto 0;
}

.ra-copyable-pdf__workspace {
  position: relative;
  z-index: 1;
  width: 100%;
  color: var(--ra-white);
}

.ra-copyable-pdf__workspace-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.05rem;
}

.ra-copyable-pdf__summary {
  min-width: 12rem;
}

.ra-copyable-pdf__summary strong,
.ra-copyable-pdf__summary span {
  display: block;
}

.ra-copyable-pdf__summary strong {
  font-size: 1.15rem;
}

.ra-copyable-pdf__summary span {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}

.ra-copyable-pdf__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.ra-copyable-pdf__tool-button {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.82rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.34);
  border-radius: 0.68rem;
  color: var(--ra-white);
  background: linear-gradient(110deg, rgba(129, 20, 220, 0.95), rgba(190, 115, 237, 0.9));
  box-shadow: 0 0.25rem 0.6rem rgba(0, 0, 0, 0.13);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}

.ra-copyable-pdf__tool-button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-0.05rem);
}

.ra-copyable-pdf__files {
  display: grid;
  max-height: 17rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0.15rem 0.3rem 0.4rem 0;
  overflow-x: hidden;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: rgba(255, 255, 255, 0.62) rgba(255, 255, 255, 0.1);
}

.ra-copyable-pdf__file {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 0.8rem 0.75rem 0.95rem;
  border: 0.075rem solid rgba(255, 255, 255, 0.28);
  border-radius: 0.9rem;
  color: #171441;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.16);
}

.ra-copyable-pdf__file-main {
  min-width: 0;
}

.ra-copyable-pdf__file-name {
  display: block;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ra-copyable-pdf__file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  margin-top: 0.18rem;
  color: #77728f;
  font-size: 0.69rem;
  font-weight: 700;
}

.ra-copyable-pdf__file-status {
  color: #6b6690;
}

.ra-copyable-pdf__file-status.is-processing {
  color: #5d2fc7;
}

.ra-copyable-pdf__file-status.is-done {
  color: #16814a;
}

.ra-copyable-pdf__file-status.is-failed {
  color: #ad1538;
}

.ra-copyable-pdf__remove {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0.0625rem solid #ded9f1;
  border-radius: 0.55rem;
  color: #625b8c;
  background: #f2effc;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  appearance: none;
}

.ra-copyable-pdf__remove:hover:not(:disabled) {
  color: #fff;
  border-color: #ad1538;
  background: #ad1538;
}

.ra-copyable-pdf__settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.ra-copyable-pdf__field {
  display: block;
  min-width: 0;
}

.ra-copyable-pdf__field > span {
  display: block;
  margin: 0 0 0.28rem 0.15rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.73rem;
  font-weight: 800;
}

.ra-copyable-pdf__field select {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.58rem 2.1rem 0.58rem 0.8rem;
  border: 0.075rem solid rgba(255, 255, 255, 0.34);
  border-radius: 0.72rem;
  color: #171441;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.ra-copyable-pdf__note {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  text-align: center;
}

.ra-copyable-pdf__progress {
  display: grid;
  grid-template-columns: minmax(0, 36rem) auto;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.55rem auto 0;
}

.ra-copyable-pdf__progress-track {
  width: min(70vw, 36rem);
  height: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e6fb;
}

.ra-copyable-pdf__progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ra-purple), var(--ra-blue));
  transition: width 150ms ease;
}

.ra-copyable-pdf__progress-value {
  min-width: 3.1rem;
  color: #484372;
  font-weight: 800;
}

.ra-copyable-pdf__status {
  min-height: 1.45em;
  margin: 0.8rem auto 0;
  color: #4f4b70;
  font-weight: 700;
  text-align: center;
}

.ra-copyable-pdf__status.is-error {
  color: #ad1538;
}

.ra-copyable-pdf__status.is-success {
  color: #16814a;
}

.ra-copyable-pdf__result {
  margin: 1rem auto 0;
  text-align: center;
}

.ra-copyable-pdf.is-busy .ra-copyable-pdf__dropzone {
  cursor: wait;
}

@media (max-width: 56rem) {
  .ra-copyable-pdf__workspace-top {
    align-items: stretch;
    flex-direction: column;
  }

  .ra-copyable-pdf__toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 48rem) {
  .ra-copyable-pdf {
    padding-inline: 1rem;
  }

  .ra-copyable-pdf__heading {
    margin-bottom: 2rem;
    padding-inline: 0;
    text-align: center;
  }

  .ra-copyable-pdf__brand {
    margin-inline: auto;
  }

  .ra-copyable-pdf__title {
    font-size: clamp(2.4rem, 10.8vw, 4rem);
    line-height: 1.02;
  }

  .ra-copyable-pdf__dropzone {
    min-height: 18rem;
    padding: 1.2rem;
    border-radius: 2rem;
  }

  .ra-copyable-pdf__button {
    padding: 0.95rem 1.45rem;
    font-size: clamp(0.95rem, 4.5vw, 1.2rem);
  }

  .ra-copyable-pdf__drop-prompt {
    padding-inline: 1.55rem;
  }

  .ra-copyable-pdf__actions {
    gap: 1rem;
  }

  .ra-copyable-pdf__files {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 34rem) {
  .ra-copyable-pdf__settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 27rem) {
  .ra-copyable-pdf__actions {
    flex-direction: column;
  }

  .ra-copyable-pdf__progress {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ra-copyable-pdf__progress-track {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ra-copyable-pdf *,
  .ra-copyable-pdf *::before,
  .ra-copyable-pdf *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
