.fb-pdf-configurator {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid rgba(21, 25, 29, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(21, 25, 29, 0.06);
  color: #2c3238;
}

.fb-pdf-configurator__head h3 {
  margin: 0 0 8px;
  color: #15191d;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  font-weight: 850;
}

.fb-pdf-configurator__head p {
  margin: 0 0 18px;
  color: #5f6872;
  font-size: 15px;
  line-height: 1.6;
}

.fb-pdf-fieldset {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(21, 25, 29, 0.12);
  border-radius: 18px;
  background: #f7f9fa;
}

.fb-pdf-fieldset legend {
  padding: 0 8px;
  color: #15191d;
  font-size: 15px;
  font-weight: 850;
}

.fb-pdf-upload-box {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 2px dashed rgba(0, 169, 214, 0.35);
  border-radius: 16px;
  background: rgba(0, 169, 214, 0.04);
  cursor: pointer;
}

.fb-pdf-upload-box__title {
  color: #007fa3;
  font-weight: 850;
}

.fb-pdf-upload-box__hint {
  color: #5f6872;
  font-size: 13px;
}

.fb-pdf-upload-box input[type="file"] {
  margin-top: 8px;
  width: 100%;
}

.fb-pdf-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fb-pdf-choice-card {
  display: block;
  cursor: pointer;
}

.fb-pdf-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fb-pdf-choice-card__body {
  display: grid;
  gap: 5px;
  min-height: 100%;
  padding: 15px;
  border: 2px solid rgba(21, 25, 29, 0.10);
  border-radius: 16px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.fb-pdf-choice-card input:checked + .fb-pdf-choice-card__body {
  border-color: #00a9d6;
  box-shadow: 0 10px 24px rgba(0, 169, 214, 0.13);
}

.fb-pdf-choice-card input:focus-visible + .fb-pdf-choice-card__body {
  outline: 3px solid rgba(0, 169, 214, 0.25);
  outline-offset: 3px;
}

.fb-pdf-choice-card__body strong {
  color: #15191d;
  font-size: 15px;
  line-height: 1.3;
}

.fb-pdf-choice-card__body span,
.fb-pdf-choice-card__body small {
  color: #5f6872;
  font-size: 13px;
  line-height: 1.4;
}

.fb-pdf-choice-card__body em {
  color: #008ed0;
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
}

.fb-pdf-inline-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.fb-pdf-inline-options label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(21, 25, 29, 0.12);
  font-weight: 700;
}

.fb-pdf-help {
  margin: 12px 0 0;
  color: #5f6872;
  font-size: 13px;
  line-height: 1.45;
}

.fb-pdf-processing-options {
  display: grid;
  gap: 10px;
}

.fb-pdf-processing-option {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(21, 25, 29, 0.10);
}

.fb-pdf-processing-option span {
  display: grid;
  gap: 3px;
}

.fb-pdf-processing-option strong {
  color: #15191d;
}

.fb-pdf-processing-option em,
.fb-pdf-processing-option small {
  color: #5f6872;
  font-style: normal;
  font-size: 13px;
}

.fb-pdf-summary {
  margin-top: 20px;
}

.fb-pdf-summary h4 {
  margin: 0 0 12px;
  color: #15191d;
  font-size: 18px;
  font-weight: 850;
}

.fb-pdf-summary table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(21, 25, 29, 0.18);
  background: #ffffff;
  font-size: 14px;
}

.fb-pdf-summary th,
.fb-pdf-summary td {
  padding: 12px 14px;
  border: 1px solid rgba(21, 25, 29, 0.14);
  text-align: left;
  vertical-align: top;
}

.fb-pdf-summary th {
  width: 240px;
  color: #15191d;
  background: #f3f3f3;
  font-weight: 850;
}

.fb-pdf-summary td {
  color: #2c3238;
}

.fb-pdf-notice-admin {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8ea;
  border: 1px solid rgba(220, 150, 0, 0.30);
  color: #594300;
  font-weight: 700;
}

.fb-pdf-standalone-cart .quantity {
  margin: 16px 0;
}

@media (max-width: 760px) {
  .fb-pdf-configurator {
    padding: 16px;
    border-radius: 18px;
  }

  .fb-pdf-option-grid {
    grid-template-columns: 1fr;
  }

  .fb-pdf-summary table,
  .fb-pdf-summary tbody,
  .fb-pdf-summary tr,
  .fb-pdf-summary th,
  .fb-pdf-summary td {
    display: block;
    width: 100%;
  }

  .fb-pdf-summary th {
    border-bottom: none;
    padding-bottom: 6px;
  }

  .fb-pdf-summary td {
    border-top: none;
    padding-top: 6px;
  }
}

/* Version 4.1.1: klare, getrennte Radio-/Checkbox-Auswahl statt Kacheln */
.fb-pdf-file-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(21, 25, 29, 0.10);
  color: #2c3238;
  font-size: 14px;
  line-height: 1.45;
}

.fb-pdf-file-status strong {
  color: #15191d;
  font-weight: 850;
}

.fb-pdf-radio-list {
  display: grid;
  gap: 10px;
}

.fb-pdf-radio-list-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fb-pdf-radio-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(21, 25, 29, 0.12);
  color: #2c3238;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.fb-pdf-radio-list-horizontal .fb-pdf-radio-row {
  width: auto;
  min-width: min(100%, 220px);
}

.fb-pdf-radio-row input[type="radio"] {
  margin-top: 2px;
  min-width: 18px;
  min-height: 18px;
  accent-color: #00a9d6;
}

.fb-pdf-radio-row:has(input[type="radio"]:checked) {
  border-color: #00a9d6;
  background: rgba(0, 169, 214, 0.06);
  box-shadow: 0 8px 22px rgba(0, 169, 214, 0.10);
}

.fb-pdf-radio-row:has(input[type="radio"]:focus-visible) {
  outline: 3px solid rgba(0, 169, 214, 0.25);
  outline-offset: 3px;
}

.fb-pdf-radio-row.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fb-pdf-radio-row.is-disabled span {
  text-decoration: line-through;
}

@media (max-width: 760px) {
  .fb-pdf-radio-list-horizontal {
    display: grid;
  }

  .fb-pdf-radio-list-horizontal .fb-pdf-radio-row {
    width: 100%;
    min-width: 0;
  }
}


/* Version 4.1.1: Weiterverarbeitung optisch an Radio-Auswahl angepasst */
.fb-pdf-processing-options {
  display: grid;
  gap: 10px;
}

.fb-pdf-processing-option {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(21, 25, 29, 0.12);
  color: #2c3238;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.fb-pdf-processing-option input[type="checkbox"] {
  margin-top: 2px;
  min-width: 18px;
  min-height: 18px;
  accent-color: #00a9d6;
}

.fb-pdf-processing-option:has(input[type="checkbox"]:checked) {
  border-color: #00a9d6;
  background: rgba(0, 169, 214, 0.06);
  box-shadow: 0 8px 22px rgba(0, 169, 214, 0.10);
}

.fb-pdf-processing-option:has(input[type="checkbox"]:focus-visible) {
  outline: 3px solid rgba(0, 169, 214, 0.25);
  outline-offset: 3px;
}

.fb-pdf-processing-option span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fb-pdf-processing-option strong {
  color: #15191d;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 850;
}

.fb-pdf-processing-option small {
  color: #5f6872;
  font-size: 13px;
  line-height: 1.4;
}

.fb-pdf-processing-none strong {
  color: #007fa3;
}

/* Version 4.1.2: moderne, einheitliche Tabellenansicht für „Ihre Auswahl“ */
.fb-pdf-summary {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(21, 25, 29, 0.12);
  border-radius: 18px;
  background: #f7f9fa;
}

.fb-pdf-summary h4 {
  margin: 0 0 14px;
  color: #15191d;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 850;
}

.fb-pdf-summary table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(21, 25, 29, 0.12);
  border-radius: 16px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.45;
}

.fb-pdf-summary tr:not(:last-child) th,
.fb-pdf-summary tr:not(:last-child) td {
  border-bottom: 1px solid rgba(21, 25, 29, 0.10);
}

.fb-pdf-summary th,
.fb-pdf-summary td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.fb-pdf-summary th {
  width: 230px;
  color: #15191d;
  background: rgba(0, 169, 214, 0.055);
  font-weight: 850;
}

.fb-pdf-summary td {
  color: #2c3238;
  background: #ffffff;
  font-weight: 500;
  word-break: break-word;
}

.fb-pdf-summary tr:nth-child(even) td {
  background: #fbfcfd;
}

.fb-pdf-summary tr:hover th,
.fb-pdf-summary tr:hover td {
  background: rgba(0, 169, 214, 0.08);
}

@media (max-width: 760px) {
  .fb-pdf-summary {
    padding: 14px;
    border-radius: 16px;
  }

  .fb-pdf-summary table,
  .fb-pdf-summary tbody,
  .fb-pdf-summary tr,
  .fb-pdf-summary th,
  .fb-pdf-summary td {
    display: block;
    width: 100%;
  }

  .fb-pdf-summary tr {
    border-bottom: 1px solid rgba(21, 25, 29, 0.10);
  }

  .fb-pdf-summary tr:last-child {
    border-bottom: 0;
  }

  .fb-pdf-summary tr:not(:last-child) th,
  .fb-pdf-summary tr:not(:last-child) td {
    border-bottom: 0;
  }

  .fb-pdf-summary th {
    padding: 11px 12px 5px;
    background: #ffffff;
    color: #15191d;
  }

  .fb-pdf-summary td {
    padding: 5px 12px 12px;
    background: #ffffff !important;
  }
}

/* Version 4.1.3: Weiterverarbeitungs-Preiszeile im deutschen Format sauber zusammenhalten */
.fb-pdf-processing-price {
  display: block;
  color: #5f6872;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  white-space: normal;
}

.fb-pdf-processing-price .woocommerce-Price-amount,
.fb-pdf-processing-price .woocommerce-Price-amount bdi {
  display: inline-flex !important;
  align-items: baseline;
  gap: 0.2em;
  white-space: nowrap !important;
}

.fb-pdf-processing-price .woocommerce-Price-currencySymbol {
  display: inline !important;
  white-space: nowrap !important;
}

.fb-pdf-processing-desc {
  display: block;
  color: #6c747d;
  font-size: 13px;
  line-height: 1.45;
}

/* Version 4.1.4: Preis direkt bei der Papierauswahl anzeigen */
.fb-pdf-paper-row > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fb-pdf-paper-row strong {
  color: #15191d;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 850;
}

.fb-pdf-paper-price {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 169, 214, 0.09);
  color: #007fa3;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  white-space: normal;
}

.fb-pdf-radio-row.is-disabled .fb-pdf-paper-price {
  background: rgba(21, 25, 29, 0.06);
  color: #8b949e;
}


/* Version 4.1.7: hervorgehobener Gesamtpreis direkt über dem Warenkorbbereich */
.fb-pdf-total-highlight {
  margin: 18px 0 4px;
  padding: clamp(16px, 2.5vw, 22px);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #00a9d6 0%, #007fa3 100%);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 127, 163, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 6px;
}

.fb-pdf-total-highlight__label {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fb-pdf-total-highlight__amount {
  color: #ffffff;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.045em;
  word-break: break-word;
}

.fb-pdf-total-highlight__tax {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.fb-pdf-configurator + .quantity,
.fb-pdf-configurator ~ .quantity,
.fb-pdf-standalone-cart .quantity {
  margin-top: 16px !important;
}

@media (max-width: 760px) {
  .fb-pdf-total-highlight {
    border-radius: 18px;
  }

  .fb-pdf-total-highlight__amount {
    font-size: 34px;
  }
}

/* Version 4.2.0: kompaktere Gesamtpreisbox und einheitlicher Warenkorbbereich */
.fb-pdf-total-highlight {
  width: fit-content;
  min-width: min(100%, 320px);
  max-width: 520px;
  margin: 18px 0 14px;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.4vw, 22px);
  border-radius: 18px;
  gap: 5px;
  box-shadow: 0 12px 28px rgba(0, 127, 163, 0.20);
}

.fb-pdf-total-highlight__label {
  padding: 5px 9px;
  font-size: 11px;
  letter-spacing: 0.035em;
}

.fb-pdf-total-highlight__amount {
  font-size: clamp(30px, 3.8vw, 40px);
  letter-spacing: -0.035em;
}

.fb-pdf-total-highlight__tax {
  font-size: 12px;
}

/* WooCommerce-Formular des PDF-Druckuploads modern anordnen */
.single-product form.cart:has(.fb-pdf-configurator),
.fb-pdf-standalone-cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

.single-product form.cart:has(.fb-pdf-configurator) .fb-pdf-configurator,
.fb-pdf-standalone-cart .fb-pdf-configurator {
  flex: 0 0 100% !important;
  width: 100% !important;
}

.single-product form.cart:has(.fb-pdf-configurator) .quantity,
.fb-pdf-standalone-cart .quantity {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 5px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(21, 25, 29, 0.14) !important;
  box-shadow: 0 8px 20px rgba(21, 25, 29, 0.07) !important;
}

.single-product form.cart:has(.fb-pdf-configurator) .quantity::before,
.fb-pdf-standalone-cart .quantity::before {
  content: "Exemplare";
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 169, 214, 0.08);
  color: #007fa3;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
}

.single-product form.cart:has(.fb-pdf-configurator) .quantity input.qty,
.fb-pdf-standalone-cart .quantity input.qty {
  width: 58px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: #15191d !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  text-align: center !important;
  box-shadow: none !important;
  outline: none !important;
}

.single-product form.cart:has(.fb-pdf-configurator) .quantity input.qty:focus-visible,
.fb-pdf-standalone-cart .quantity input.qty:focus-visible {
  outline: 3px solid rgba(0, 169, 214, 0.25) !important;
  outline-offset: 2px !important;
  border-radius: 999px !important;
}

.single-product form.cart:has(.fb-pdf-configurator) .single_add_to_cart_button,
.fb-pdf-standalone-cart .single_add_to_cart_button {
  min-height: 50px !important;
  margin: 0 !important;
  padding: 14px 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #00a9d6 0%, #007fa3 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  box-shadow: 0 10px 24px rgba(0, 127, 163, 0.24) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.single-product form.cart:has(.fb-pdf-configurator) .single_add_to_cart_button:hover,
.fb-pdf-standalone-cart .single_add_to_cart_button:hover {
  background: linear-gradient(135deg, #008fb8 0%, #006f90 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 28px rgba(0, 127, 163, 0.32) !important;
}

.single-product form.cart:has(.fb-pdf-configurator) .single_add_to_cart_button:focus-visible,
.fb-pdf-standalone-cart .single_add_to_cart_button:focus-visible {
  outline: 3px solid rgba(0, 169, 214, 0.35) !important;
  outline-offset: 3px !important;
}

@media (max-width: 760px) {
  .fb-pdf-total-highlight {
    width: 100%;
    max-width: none;
    border-radius: 16px;
  }

  .fb-pdf-total-highlight__amount {
    font-size: 32px;
  }

  .single-product form.cart:has(.fb-pdf-configurator),
  .fb-pdf-standalone-cart {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .single-product form.cart:has(.fb-pdf-configurator) .quantity,
  .fb-pdf-standalone-cart .quantity,
  .single-product form.cart:has(.fb-pdf-configurator) .single_add_to_cart_button,
  .fb-pdf-standalone-cart .single_add_to_cart_button {
    width: 100% !important;
  }

  .single-product form.cart:has(.fb-pdf-configurator) .quantity,
  .fb-pdf-standalone-cart .quantity {
    justify-content: space-between !important;
  }
}

/* Version 4.2.1: ruhigere, modernere Gesamtpreisbox */
.fb-pdf-total-highlight {
  width: min(100%, 420px) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 18px 0 14px !important;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #00a9d6 0%, #007fa3 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 127, 163, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  display: grid !important;
  gap: 7px !important;
}

.fb-pdf-total-highlight__label {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.96) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

.fb-pdf-total-highlight__amount {
  color: #ffffff !important;
  font-size: clamp(28px, 3.4vw, 38px) !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
  letter-spacing: -0.025em !important;
  overflow-wrap: anywhere !important;
}

.fb-pdf-total-highlight__tax {
  color: rgba(255, 255, 255, 0.90) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
}

.fb-pdf-total-highlight.is-pending {
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(0, 169, 214, 0.92) 0%, rgba(0, 127, 163, 0.92) 100%) !important;
}

.fb-pdf-total-highlight.is-pending .fb-pdf-total-highlight__amount {
  font-size: clamp(17px, 2.2vw, 22px) !important;
  line-height: 1.28 !important;
  font-weight: 750 !important;
  letter-spacing: -0.01em !important;
}

.fb-pdf-total-highlight.is-pending .fb-pdf-total-highlight__tax {
  display: none !important;
}

.fb-pdf-total-highlight.is-calculated .fb-pdf-total-highlight__amount {
  font-size: clamp(30px, 3.6vw, 42px) !important;
}

@media (max-width: 760px) {
  .fb-pdf-total-highlight {
    width: 100% !important;
    padding: 15px 16px !important;
    border-radius: 16px !important;
  }

  .fb-pdf-total-highlight__amount {
    font-size: 30px !important;
  }

  .fb-pdf-total-highlight.is-pending .fb-pdf-total-highlight__amount {
    font-size: 18px !important;
  }
}

/* Version 4.2.5: Seitenumfang / einzelne PDF-Seiten auswählen */
.fb-pdf-page-selection-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(21, 25, 29, 0.10);
}

.fb-pdf-page-selection-panel[hidden] {
  display: none !important;
}

.fb-pdf-page-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.fb-pdf-small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 169, 214, 0.24);
  border-radius: 999px;
  background: rgba(0, 169, 214, 0.08);
  color: #007fa3;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
}

.fb-pdf-small-button:hover,
.fb-pdf-small-button:focus {
  background: #00a9d6;
  color: #ffffff;
}

.fb-pdf-page-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.fb-pdf-page-checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f7fbfd;
  border: 1px solid rgba(21, 25, 29, 0.10);
  color: #15191d;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
  cursor: pointer;
}

.fb-pdf-page-checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: #00a9d6;
}

.fb-pdf-page-checkbox:has(input[type="checkbox"]:checked) {
  border-color: #00a9d6;
  background: rgba(0, 169, 214, 0.08);
  box-shadow: 0 6px 16px rgba(0, 169, 214, 0.10);
}

.fb-pdf-page-checkbox:has(input[type="checkbox"]:focus-visible) {
  outline: 3px solid rgba(0, 169, 214, 0.25);
  outline-offset: 2px;
}

.fb-pdf-radio-row input[type="checkbox"] {
  margin-top: 2px;
  min-width: 18px;
  min-height: 18px;
  accent-color: #00a9d6;
}

@media (max-width: 760px) {
  .fb-pdf-page-selection-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .fb-pdf-page-selection-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fb-pdf-small-button {
    width: 100%;
  }

  .fb-pdf-page-checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fb-pdf-radio-row > span {
  min-width: 0;
}

.fb-pdf-radio-row > span > strong {
  display: block;
  color: #15191d;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 850;
}

.fb-pdf-radio-row > span > small {
  display: block;
  margin-top: 3px;
  color: #5f6872;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

/* Version 4.2.7: Hinweise und gesperrte Optionen für Seiten-/Duplexlogik */
.fb-pdf-important-help {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 169, 214, 0.07);
  border: 1px solid rgba(0, 169, 214, 0.18);
  color: #2c3238;
}

.fb-pdf-page-selection-fieldset .fb-pdf-radio-row.is-disabled span,
.fb-pdf-radio-row[data-fb-duplex-row].is-disabled span {
  text-decoration: none;
}

.fb-pdf-page-selection-fieldset .fb-pdf-radio-row.is-disabled,
.fb-pdf-radio-row[data-fb-duplex-row].is-disabled {
  opacity: 0.62;
}
