/*
 * NexT theme settings page.
 *
 * Deliberately built out of core admin components (nav tabs, form tables,
 * postboxes) so it keeps following the admin colour scheme the user picked.
 */

.next-settings-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.next-settings-logo {
  background: #222;
  border-radius: 3px;
  color: #fff;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
}

.next-tabs.nav-tab-wrapper {
  border-bottom: 1px solid #c3c4c7;
  padding-bottom: 0;
}

.next-tabs .nav-tab {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  margin-bottom: -1px;
}

.next-tabs .nav-tab .dashicons {
  font-size: 17px;
  height: 17px;
  opacity: 0.6;
  width: 17px;
}

.next-tabs .nav-tab-active .dashicons {
  opacity: 1;
}

.next-settings-body {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.next-settings-form {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 20px 12px;
}

.next-settings-form .form-table th {
  padding-left: 0;
  width: 260px;
}

.next-settings-form .form-table td .description {
  max-width: 46em;
}

.next-settings-form .form-table td .description code {
  font-size: 12px;
}

.next-section-summary {
  background: #f6f7f7;
  border-left: 4px solid #2271b1;
  margin: 16px 0 0;
  max-width: 60em;
  padding: 10px 12px;
}

.next-settings-actions {
  align-items: center;
  border-top: 1px solid #f0f0f1;
  display: flex;
  gap: 16px;
  margin: 0;
  padding-top: 16px;
}

.next-settings-actions .next-reset {
  background: none;
  border: 0;
  color: #b32d2e;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.next-settings-actions .next-reset:hover {
  color: #8a2424;
}

/* Aside ------------------------------------------------------------------- */

.next-settings-aside {
  flex: 0 0 280px;
  max-width: 280px;
}

.next-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
  padding: 4px 16px 12px;
}

.next-card h2 {
  font-size: 14px;
  margin: 12px 0 8px;
}

.next-card ul {
  margin: 0;
}

.next-card li {
  margin-bottom: 6px;
}

@media (max-width: 960px) {
  .next-settings-body {
    display: block;
  }

  .next-settings-aside {
    margin-top: 20px;
    max-width: none;
  }
}

/* Fields ------------------------------------------------------------------ */

.next-toggle {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
}

.next-toggle input {
  margin: 0;
}

.next-toggle-text {
  color: #50575e;
}

.next-image-field {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.next-image-preview {
  display: block;
  margin-top: 8px;
}

.next-image-preview img {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  height: auto;
  max-height: 120px;
  max-width: 120px;
  padding: 4px;
}

.next-settings-form textarea.code {
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.5;
}

/* Rows hidden because another setting turned them off. */
.next-settings-form tr.next-hidden-row {
  display: none;
}

/* Local assets screen ----------------------------------------------------- */

.next-localize .next-settings-form {
  padding: 16px 20px 20px;
}

.next-localize-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
}

.next-localize-summary {
  color: #50575e;
}

.next-localize-table th,
.next-localize-table td {
  vertical-align: top;
}

.next-localize-table td {
  padding-bottom: 12px;
  padding-top: 12px;
}

.next-localize-package {
  color: #646970;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

.next-localize-table .description {
  margin: 6px 0 0;
  max-width: 42em;
}

.next-status {
  color: #646970;
}

.next-status-ok {
  color: #007017;
}

.next-status-ok::before {
  content: "\2713\00a0";
}

.next-status-stale,
.next-status-working {
  color: #8a6100;
}

.next-status-error {
  color: #b32d2e;
}

.next-localize .dashicons-yes {
  color: #007017;
}

.next-path {
  display: block;
  font-size: 11px;
  word-break: break-all;
}
