/* Форма «Додати книгу» (видавці й автори) і її попередній перегляд — 22.10.2026 */
.nkpf-cta { margin: 24px 0 8px; text-align: center; }

/* Тема перебиває ширину .modal-lg і центрує текст у вікнах — задаємо своє */
#nkpf-modal .modal-dialog { width: calc(100% - 24px) !important; max-width: 760px !important; margin: 20px auto; }
#nkpf-modal .modal-content, #nkpf-modal .modal-header, #nkpf-modal .modal-body { text-align: left; }
#nkpf-modal .modal-body { padding: 16px 20px 24px; }

#nk-pubform { color: #2e2e2e; font-size: 14px; line-height: 1.5; text-align: left; }
#nk-pubform .nkpf-submit, #nk-pubform .nkpf-done, #nk-pubform .nkpf-result { text-align: center; }
#nk-pubform .nkpf-help {
  background: #fff4e5; border: 1px solid #f2c94c; border-radius: 8px;
  padding: 10px 14px; margin: 0 0 14px; font-size: 15px;
}
#nk-pubform .nkpf-tabs { margin-bottom: 16px; }
#nk-pubform fieldset { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 16px 4px; margin: 0 0 16px; min-width: 0; }
#nk-pubform legend {
  float: none; width: auto; border: 0; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #666; padding: 0 8px; margin: 0;
}
#nk-pubform .nkpf-field { margin-bottom: 14px; }
#nk-pubform .nkpf-field > label { display: block; font-weight: 600; margin-bottom: 4px; }
/* Тема центрує підписи у вікнах */
#nk-pubform label, #nk-pubform .nkpf-field, #nk-pubform .nkpf-hint, #nk-pubform legend { text-align: left !important; }
#nk-pubform .nkpf-hint { display: block; font-size: 12px; color: #666; margin-top: 3px; }
#nk-pubform .nkpf-opt { font-weight: 400; font-size: 12px; color: #666; text-transform: none; }
#nk-pubform .nkpf-req { color: #b00020; font-weight: 700; font-size: 12px; }
#nk-pubform input:not([type]), #nk-pubform input[type=text], #nk-pubform input[type=email], #nk-pubform input[type=tel],
#nk-pubform input[type=number], #nk-pubform input[type=date], #nk-pubform input[type=url],
#nk-pubform input[type=file], #nk-pubform select, #nk-pubform textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px;
  font: inherit; color: inherit; background: #fff; height: auto;
}
#nk-pubform textarea { min-height: 70px; resize: vertical; }
#nk-pubform .nkpf-row2 { display: flex; gap: 14px; }
#nk-pubform .nkpf-row2 > .nkpf-field { flex: 1 1 0; min-width: 0; }
#nk-pubform .nkpf-radios { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
#nk-pubform .nkpf-radios label, #nk-pubform .nkpf-check { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }
#nk-pubform .nkpf-choice { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
#nk-pubform .nkpf-choice input { margin-top: 4px; flex: 0 0 auto; }
#nk-pubform .nkpf-pro { color: #1b7f3b; font-weight: 600; }
#nk-pubform .nkpf-con { color: #b00020; font-weight: 600; }
#nk-pubform .nkpf-cond { display: none; border-left: 3px solid #e5e7eb; padding-left: 12px; margin-bottom: 12px; }
#nk-pubform .nkpf-cond.is-on { display: block; }
#nk-pubform .nkpf-own { display: none; margin-top: 6px; }
#nk-pubform .nkpf-sub { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 12px 0; margin-bottom: 10px; background: #fafafa; }
#nk-pubform .nkpf-sub-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
#nk-pubform .nkpf-remove { background: none; border: 0; color: #ee2c2c; text-decoration: underline; padding: 0; font-size: 13px; }
#nk-pubform .nkpf-add { background: #fff; border: 1px dashed #999; border-radius: 8px; padding: 7px 14px; margin-bottom: 12px; }
#nk-pubform .nkpf-rte { border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
#nk-pubform .nkpf-rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid #e5e7eb; }
#nk-pubform .nkpf-rte-bar button { border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; min-width: 32px; height: 28px; font-size: 13px; }
#nk-pubform .nkpf-rte-body { min-height: 110px; padding: 8px 10px; outline: none; }
#nk-pubform .nkpf-rte-body:empty:before { content: attr(data-placeholder); color: #aaa; }
#nk-pubform .nkpf-note { background: #fafafa; border: 1px dashed #ccc; border-radius: 8px; padding: 12px 14px; color: #555; font-size: 13px; margin-bottom: 14px; }
#nk-pubform .nkpf-error { color: #b00020; font-size: 13px; margin-top: 4px; }
#nk-pubform .nkpf-result { color: #b00020; min-height: 1em; margin-bottom: 8px; text-align: center; }
#nk-pubform .nkpf-submit { text-align: center; }
#nk-pubform .nkpf-done { text-align: center; padding: 30px 10px; }
/* Пастка для ботів: поза екраном, не display:none — частина ботів пропускає приховані */
#nk-pubform .nkpf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Попередній перегляд */
#nkpf-preview .nkpv-top { display: flex; gap: 20px; }
#nkpf-preview .nkpv-cover { flex: 0 0 180px; height: 270px; border-radius: 6px; background: #eee; display: flex; align-items: center; justify-content: center; color: #999; overflow: hidden; }
#nkpf-preview .nkpv-cover img { width: 100%; height: 100%; object-fit: cover; }
#nkpf-preview .nkpv-info { flex: 1 1 auto; min-width: 0; }
#nkpf-preview .nkpv-info h2 { font-family: Georgia, serif; font-size: 26px; margin: 6px 0 4px; }
#nkpf-preview .nkpv-sub { color: #666; margin: 0 0 4px; }
#nkpf-preview .nkpv-authors { font-weight: 600; margin: 0 0 10px; }
#nkpf-preview .nkpv-badge { display: inline-block; font-size: 12px; background: #f0f0f0; border-radius: 999px; padding: 2px 10px; }
#nkpf-preview .nkpv-price { font-size: 22px; font-weight: 700; margin: 6px 0 10px; }
#nkpf-preview .nkpv-old { font-size: 15px; color: #999; text-decoration: line-through; margin-left: 10px; font-weight: 400; }
#nkpf-preview .nkpv-buttons { display: flex; gap: 10px; margin-bottom: 12px; }
#nkpf-preview .nkpv-btn { border: 1px solid #2e2e2e; border-radius: 999px; padding: 7px 18px; }
#nkpf-preview .nkpv-btn-main { background: #2e2e2e; color: #fff; }
#nkpf-preview .nkpv-attrs { width: 100%; font-size: 13px; }
#nkpf-preview .nkpv-attrs td { padding: 3px 0; vertical-align: top; }
#nkpf-preview .nkpv-attrs td:first-child { color: #666; width: 45%; padding-right: 10px; }
#nkpf-preview .nkpv-section { margin-top: 20px; }
#nkpf-preview .nkpv-section h3 { font-size: 18px; margin: 0 0 8px; }
#nkpf-preview .nkpv-author { display: flex; gap: 14px; }
#nkpf-preview .nkpv-photo { flex: 0 0 90px; height: 90px; border-radius: 50%; background: #eee; overflow: hidden; }
#nkpf-preview .nkpv-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 600px) {
  #nk-pubform .nkpf-row2 { flex-direction: column; gap: 0; }
  #nkpf-preview .nkpv-top { flex-direction: column; }
  #nkpf-preview .nkpv-cover { flex-basis: auto; width: 160px; height: 240px; }
}

/* Списки в редакторі й перегляді: тема скидає list-style, тож маркерів і цифр не було (23.10.2026) */
#nk-pubform .nkpf-rte-body ul, #nkpf-preview ul { list-style: disc outside !important; padding-left: 22px !important; margin: 6px 0 !important; }
#nk-pubform .nkpf-rte-body ol, #nkpf-preview ol { list-style: decimal outside !important; padding-left: 22px !important; margin: 6px 0 !important; }
#nk-pubform .nkpf-rte-body li, #nkpf-preview li { display: list-item !important; list-style: inherit !important; }
#nk-pubform .nkpf-rte-body p { margin: 0 0 6px; }

/* Прев'ю обрізаних зображень */
#nk-pubform .nkpf-crop-preview { margin-top: 8px; }
#nk-pubform .nkpf-crop-preview img { display: block; max-width: 160px; max-height: 240px; border-radius: 6px; border: 1px solid #e5e7eb; }
#nk-pubform .nkpf-crop-round img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
