.rp2pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  margin: 8px 0;
  background: #1e73be;
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.rp2pdf-button:hover,
.rp2pdf-button:focus { filter: brightness(.94); color: #fff; }
.rp2pdf-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.rp2pdf-icon { display: inline-flex; }
.rp2pdf-floating {
  position: fixed;
  z-index: 99990;
  bottom: 24px;
  margin: 0;
}
.rp2pdf-floating-bottom-right { right: 24px; }
.rp2pdf-floating-bottom-left { left: 24px; }
.rp2pdf-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(2px);
}
.rp2pdf-overlay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 8px;
  background: #fff;
  color: #1d2327;
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
}
.rp2pdf-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #dcdcde;
  border-top-color: #1e73be;
  border-radius: 50%;
  animation: rp2pdf-spin .75s linear infinite;
}
@keyframes rp2pdf-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .rp2pdf-floating { bottom: 16px; }
  .rp2pdf-floating-bottom-right { right: 16px; }
  .rp2pdf-floating-bottom-left { left: 16px; }
}

.rp2pdf-header-snapshot { display: none; }
@media print {

  /* Site header fail-safe. Keep the real WordPress masthead visible even when a theme
     has aggressive @media print rules that normally remove or collapse navigation. */
  .rp2pdf-site-header-root,
  .rp2pdf-protected-header {
    visibility: visible !important;
    opacity: 1 !important;
  }
  #masthead.rp2pdf-site-header-root {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }
  #masthead .rp2pdf-desktop-header-part {
    visibility: visible !important;
    opacity: 1 !important;
  }
  #masthead .primary-menu-list.rp2pdf-desktop-header-part,
  #masthead .mobile-menu.rp2pdf-desktop-header-part {
    display: block !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  #masthead #primary-menu.rp2pdf-desktop-header-part {
    display: flex !important;
    flex-wrap: wrap !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #masthead .rp2pdf-mobile-header-control {
    display: none !important;
  }
  #masthead.rp2pdf-site-header-root .header-t,
  #masthead.rp2pdf-site-header-root .main-header,
  #masthead.rp2pdf-site-header-root .wrapper,
  #masthead.rp2pdf-site-header-root .menu-wrap,
  #masthead.rp2pdf-site-header-root #site-navigation {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  #masthead.rp2pdf-site-header-root .site-branding,
  #masthead.rp2pdf-site-header-root .site-logo {
    left: auto !important;
    right: auto !important;
    transform: none !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #masthead.rp2pdf-site-header-root #primary-menu {
    width: auto !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
  }
  #masthead.rp2pdf-site-header-root #primary-menu > li,
  #masthead.rp2pdf-site-header-root #primary-menu > li > a {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    text-decoration: none !important;
  }
  .rp2pdf-runtime-hidden.rp2pdf-protected-header {
    display: revert !important;
  }
  .rp2pdf-runtime-excluded, .rp2pdf-runtime-hidden { display: none !important; }
}

/* Button style variants: all remain clearly visible on white backgrounds. */
.rp2pdf-button-classic { background: #1e73be; color: #fff; border: 2px solid #1e73be; }
.rp2pdf-button-dark { background: #23282d; color: #fff; border: 2px solid #23282d; }
.rp2pdf-button-outline { background: #fff; color: #155a93; border: 2px solid #1e73be; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.rp2pdf-button-minimal { background: #475569; color: #fff; border: 2px solid #475569; box-shadow: 0 1px 2px rgba(0,0,0,.12); text-decoration: none; }
.rp2pdf-button-pill { background: #1e73be; color: #fff; border: 2px solid #1e73be; border-radius: 999px; padding-left: 20px; padding-right: 20px; }
.rp2pdf-button-soft { background: #e6f2fb; color: #0f4f7f; border: 2px solid #9ac7e8; box-shadow: none; }
.rp2pdf-button-green { background: #198754; color: #fff; border: 2px solid #198754; }
.rp2pdf-button-red { background: #c62828; color: #fff; border: 2px solid #c62828; }
.rp2pdf-button-purple { background: #6f42c1; color: #fff; border: 2px solid #6f42c1; }
.rp2pdf-button-orange { background: #d65f00; color: #fff; border: 2px solid #d65f00; }
.rp2pdf-button-dark:hover, .rp2pdf-button-dark:focus,
.rp2pdf-button-minimal:hover, .rp2pdf-button-minimal:focus,
.rp2pdf-button-green:hover, .rp2pdf-button-green:focus,
.rp2pdf-button-red:hover, .rp2pdf-button-red:focus,
.rp2pdf-button-purple:hover, .rp2pdf-button-purple:focus,
.rp2pdf-button-orange:hover, .rp2pdf-button-orange:focus,
.rp2pdf-button-pill:hover, .rp2pdf-button-pill:focus { color: #fff; }
.rp2pdf-button-outline:hover, .rp2pdf-button-outline:focus { background: #eef6fc; color: #0f4f7f; }
.rp2pdf-button-soft:hover, .rp2pdf-button-soft:focus { background: #d8ebf8; color: #0f4f7f; }
