/* Plugin-specific admin overrides for nnax ReadMore. */

/* Keep core admin notices visually separated from the plugin header. */
.nnaxadmin-wrap .notice,
.nnaxadmin-wrap .updated,
.nnaxadmin-wrap .error {
  margin-top: 0;
}

#adminmenu .toplevel_page_nnaxreadmore .wp-menu-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#adminmenu .toplevel_page_nnaxreadmore .wp-menu-image img {
  padding: 0 !important;
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  object-fit: contain;
}

.nnax-readmore-page .plugin-submit .nnax-btn {
  appearance: none;
  -webkit-appearance: none;
  min-height: 42px;
}

.nnax-readmore-page .plugin-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nnax-readmore-page .nnax-card > h2 .nnax-label {
  font: inherit;
}

.nnax-role-visibility-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.nnax-readmore-page .nnax-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.nnax-readmore-page .nnax-admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #eef3f9;
  color: #00356a;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nnax-readmore-page .nnax-admin-tab:hover,
.nnax-readmore-page .nnax-admin-tab:focus {
  background: #dce9f8;
  color: #00274f;
}

.nnax-readmore-page .nnax-admin-tab.is-active {
  background: #00356a;
  color: #fff;
}

.nnax-readmore-page .nnax-shortcode-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nnax-readmore-page .nnax-shortcode-copy .nnax-input {
  flex: 1 1 280px;
}

.nnax-readmore-page .nnax-code-sample {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  overflow-x: auto;
}

.nnax-readmore-page .nnax-guide-list {
  margin: 0;
  padding-left: 20px;
}

/* Hide duplicate admin page title visually while keeping it accessible to screen readers. */
.nnax-readmore-page .nnax-page-title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.nnax-settings-fields {
  gap: 12px;
  margin-bottom: 12px;
}

.nnax-settings-fields .nnax-sub-field {
  flex: 1 1 260px;
}