/* Keep this light; we’re reusing your global admin style */
.wordai-agent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}

.wordai-agent-card.card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.wordai-agent-banner p { margin: 1em 0; }

/* Progress */
.wa-progress {
  position: relative;
  height: 14px;
  background: #eef3f7;
  border: 1px solid #d7e2ec;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.wa-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0073aa, #2296e3);
  transition: width .25s ease;
}
.wa-progress-label {
  position: absolute;
  top: -24px;
  right: 0;
  font-size: 12px;
  color: #1d2327;
}

/* Stats */
.wa-stats {
  margin: 0;
  padding-left: 16px;
  line-height: 1.9;
}
/* disabled look - match WP admin a bit */
#wa-estimate[disabled],
#wa-start-indexing[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* loading state for start button */
.wa-btn-loading {
  position: relative;
  padding-left: 30px !important;
}

/* simple spinner on the left */
.wa-btn-loading::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  animation: wa-rotate 0.7s linear infinite;
}

@keyframes wa-rotate {
  to {
    transform: rotate(360deg);
  }
}
/* ------------------------------------------------------------
 * WordAI Agent Admin Styles
 * Button loading, spinner, and progress feedback
 * ------------------------------------------------------------ */

/* Disabled buttons */
#wa-estimate[disabled],
#wa-start-indexing[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Add spinner inside Start button */
.wa-btn-loading {
  position: relative;
  padding-left: 28px !important;
}

/* Spinner animation */
.wa-btn-loading::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  animation: wa-rotate 0.8s linear infinite;
}

@keyframes wa-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* Smooth progress bar transition */
.wa-progress-bar {
  transition: width 0.5s ease;
}

.wordai-agent-global-controls {
  margin: 12px 8px 14px 0;
  padding: 14px 16px;
  background: #f6f8fa;
  border: 1px solid #dcdcde;
  border-radius: 8px;
}

.wordai-agent-start-indexing-controls {
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: #f7fbff;
  border: 1px solid #cfe5f7;
  border-radius: 8px;
}

.wordai-agent-embedding-grid {
  flex-wrap: wrap !important;
  align-items: stretch;
}

.wordai-agent-global-control-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.wordai-agent-global-control-header h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #1d2327;
}

.wordai-agent-global-control-header p {
  margin: 0;
  color: #50575e;
}

.wordai-agent-limit-badge {
  flex: 0 0 auto;
  max-width: 320px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf6ff;
  border: 1px solid #b8dfff;
  color: #0a4b78;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

.wordai-agent-post-type-dropdown {
  position: relative;
  max-width: 420px;
}

.wordai-agent-post-type-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 7px 10px 7px 12px;
  background: #ffffff;
  border: 1px solid #8c8f94;
  border-radius: 6px;
  color: #1d2327;
  cursor: pointer;
  list-style: none;
}

.wordai-agent-post-type-dropdown summary::-webkit-details-marker {
  display: none;
}

.wordai-agent-post-type-dropdown[open] summary {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.wordai-agent-post-type-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: min(420px, calc(100vw - 48px));
  padding: 12px;
  background: #ffffff;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.wordai-agent-post-type-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.wordai-agent-post-type-options {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.wordai-agent-post-type-options label {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 6px;
}

.wordai-agent-post-type-options label:hover {
  background: #f0f6fc;
}

.wordai-agent-post-type-options small {
  color: #646970;
  font-size: 11px;
}

.wordai-agent-source-selection-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.wordai-options-grid .wordai-agent-source-selection-card {
  flex: 0 0 100% !important;
  max-width: 100%;
  min-width: 100%;
  padding-bottom: 18px;
}

.wordai-agent-source-limit-message {
  margin: 8px 0 0;
  color: #8a4b00;
  font-weight: 600;
}

.wordai-agent-source-counts {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #c3dafe;
  background: #f0f6ff;
  color: #0a4b78;
  font-weight: 700;
}

.wordai-agent-source-counts #wa-source-selected-count {
  font-size: 18px;
}

.wordai-agent-source-selection-card.is-limit-reached .wordai-agent-source-counts {
  border-color: #f0c36d;
  background: #fff8e5;
  color: #7a4d00;
}

.wordai-agent-source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.wordai-agent-source-tab {
  min-height: 40px;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  background: #fff;
  color: #1d2327;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.wordai-agent-source-tab:hover,
.wordai-agent-source-tab.is-active {
  border-color: #2271b1;
  background: #edf6ff;
  color: #0a4b78;
  box-shadow: 0 3px 8px rgba(34, 113, 177, 0.13);
}

.wordai-agent-source-empty {
  color: #646970;
}

.wordai-agent-source-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.wordai-agent-source-toolbar input[type="search"] {
  min-width: 320px;
}

.wordai-agent-source-toolbar .button,
.wordai-agent-source-pagination .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wordai-agent-source-table-wrap {
  overflow-x: auto;
  border: 1px solid #dcdcde;
  border-radius: 7px;
  background: #fff;
}

.wordai-agent-source-table {
  margin: 0;
  table-layout: fixed;
}

.wordai-agent-source-table th,
.wordai-agent-source-table td {
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.35;
  padding: 6px 8px;
}

.wordai-agent-source-table th {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #50575e;
}

.wordai-agent-source-table td:nth-child(1),
.wordai-agent-source-table th:nth-child(1) {
  text-align: center;
}

.wordai-agent-source-table td:nth-child(2) strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wordai-agent-source-type {
  display: block;
  margin-top: 2px;
  color: #646970;
  font-size: 11px;
}

.wordai-agent-source-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 7px;
  white-space: nowrap;
}

.wordai-agent-source-status.is-embedded {
  background: #edfaef;
  color: #06752f;
}

.wordai-agent-source-status.needs-embedding {
  background: #eef2f6;
  color: #3c434a;
}

.wordai-agent-source-status.needs-reindex {
  background: #fff8e5;
  color: #8a4b00;
}

.wordai-agent-source-status.is-failed {
  background: #fcf0f1;
  color: #b32d2e;
}

.wordai-agent-source-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 782px) {
  .wordai-agent-global-control-header {
    flex-direction: column;
  }

  .wordai-agent-limit-badge,
  .wordai-agent-post-type-dropdown {
    max-width: 100%;
    width: 100%;
    text-align: left;
  }

  .wordai-agent-post-type-menu {
    width: 100%;
  }

  .wordai-agent-source-selection-intro {
    flex-direction: column;
  }

  .wordai-agent-source-counts,
  .wordai-agent-source-toolbar input[type="search"] {
    width: 100%;
  }

  .wordai-agent-source-pagination {
    justify-content: space-between;
  }
}


/* ============================================================
 * Gutenberg-style layout for AI Agent Settings
 * ============================================================ */

/* Sticky Subheader */
.sc-wordai-subheader {
  position: sticky;
  top: 32px;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sc-wordai-subheader .left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}
.sc-wordai-subheader .right .button {
  margin-left: 6px;
}

/* Grid Layout for Cards */
.sc-wordai-agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Individual Cards */
.sc-agent-card {
  background: #fff;
  border: 1px solid #e2e4e7;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 20px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sc-agent-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.sc-agent-card h2 {
  font-size: 16px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-agent-card p {
  font-size: 13px;
  color: #555;
}
.wa-checkbox-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

/* Progress Bar Styling */
.wa-progress {
  position: relative;
  height: 22px;
  background: #f1f1f1;
  border-radius: 12px;
  margin: 10px 0;
  overflow: hidden;
}
.wa-progress-bar {
  height: 100%;
  background: linear-gradient(90deg,#0073aa,#00a0d2);
  width: 0%;
  transition: width 0.5s ease;
}
.wa-progress-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 22px;
}
/* 🔄 Mini Spinner Animation */
@keyframes scWordaiSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sc-wordai-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: scWordaiSpin 0.9s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
.sc-wordai-spinner {
  opacity: 0.9;
  transition: opacity 0.2s ease-in-out;
}

/* AI Agent settings view page card buttons alignment*/
	.wordai-card { position: relative; padding-bottom: 58px; }
	.card-actions {
		position: absolute;
		right: 16px;
		bottom: 14px;
		text-align: right;
	}
	.card-actions button i { margin-right: 5px; }
	.card-actions button span { vertical-align: middle; }
	#wa-estimate-result { margin-top: 15px !important; margin-bottom: 28px !important; }
	#wa-view-failed { position: relative; top: 2px; }

  /* ===============================================================
   Global Notice & Scrolling Feedback
   =============================================================== */
#sc-wordai-global-message {
  border-left: 4px solid #0073aa;
  border-radius: 4px;
  background: #f8f9fa;
  transition: opacity 0.25s ease;
}

/* Keep Estimate result box visually consistent */
.sc-wordai-estimate-notice {
  border-left: 4px solid #2ea2cc;
  background: #fdfdfd;
  border-radius: 4px;
  margin-top: 15px;
  margin-bottom: 25px;
  padding: 10px 12px;
}
.sc-wordai-estimate-notice p { margin: 0; }

/* ===========================================================
   WordAI Admin – Hint Box (Embedding Model Tips)
   -----------------------------------------------------------
   Used in AI Agent > Contents Embedding & Indexing page
   =========================================================== */
.sc-wordai-hint-box {
  background: #f9f9fb;
  border-left: 3px solid #0073aa;
  padding: 10px 12px;
  margin-top: 8px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #444;
}
.sc-wordai-hint-box code {
  background: #eef3f7;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 12px;
  color: #0073aa;
}

.wordai-agent-embedding-options-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.wordai-agent-embedding-option-card {
  padding: 15px 16px;
  background: #ffffff;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wordai-agent-embedding-option-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1d2327;
  margin-bottom: 6px;
}

.wordai-agent-embedding-option-heading .dashicons {
  color: #2271b1;
}

.wordai-agent-embedding-option-card p {
  margin: 0 0 10px;
  color: #50575e;
  line-height: 1.55;
}

.wordai-agent-embedding-option-card .sc-wordai-embed-model-select {
  max-width: 520px;
}

.wordai-agent-embedding-option-card .anthropic-api-key-save-div-wrapper {
  margin: 10px 0;
  padding: 14px;
  background: #f8fbff;
}

.wordai-agent-embedding-model-hint {
  margin-top: 12px;
}

@media (min-width: 1100px) {
  .wordai-agent-embedding-options-panel.has-embedding-key-card {
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
    align-items: start;
  }
}

#wordai-chat-settings-wrapper .wordai-card {
  position: relative;
  padding: 24px 28px !important;
  padding-bottom: 24px !important;
}

#wordai-chat-settings-wrapper h3 {
  margin-top: 0;
}

#wordai-chat-settings-wrapper .form-table th {
  width: 230px;
  padding: 18px 18px 18px 8px;
  font-weight: 700;
  color: #1d2327;
}

#wordai-chat-settings-wrapper .form-table td {
  padding: 18px 20px;
}

#wordai-chat-settings-wrapper .regular-text,
#wordai-chat-settings-wrapper textarea {
  max-width: 680px;
}

#wordai-chat-settings-wrapper textarea {
  min-height: 76px;
  line-height: 1.55;
}

#wordai-chat-settings-wrapper select {
  min-width: 240px;
}

#wordai-chat-settings-wrapper .wa-fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

#wordai-chat-settings-wrapper .description {
  margin-top: 8px;
  max-width: 760px;
  line-height: 1.55;
}

.wa-chat-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

#wa-chat-save,
#wa-chat-reset {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  line-height: 1 !important;
  white-space: nowrap;
  vertical-align: middle;
}

#wa-chat-save .dashicons,
#wa-chat-reset .dashicons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  margin: 0;
}

@media (max-width: 782px) {
  #wordai-chat-settings-wrapper .form-table th,
  #wordai-chat-settings-wrapper .form-table td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .wa-chat-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  #wa-chat-save,
  #wa-chat-reset {
    width: 100%;
  }
}
/* AI Agent tabs and analytics */
.sc-wordai-agent-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 0;
}
.sc-wordai-agent-nav-tabs .nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  color: #1d2433;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.sc-wordai-agent-nav-tabs .nav-tab-active,
.sc-wordai-agent-nav-tabs .nav-tab:hover {
  border-color: #0b74de;
  background: #f2f8ff;
  color: #0b5cab;
}
.wordai-chat-advanced-fieldset {
  display: grid;
  gap: 12px;
  max-width: 820px;
}
.wordai-chat-advanced-fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.wordai-chat-advanced-fieldset input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 2px;
}
.wordai-inline-number-field {
  flex-wrap: wrap;
}
.wordai-inline-number-field input {
  width: 86px;
  min-height: 32px;
  margin: 0 2px;
}
.wordai-pro-locked-fieldset {
  opacity: .68;
}
.wordai-chat-handoff-grid {
  display: grid;
  gap: 12px;
  max-width: 560px;
}
.wordai-chat-handoff-grid label {
  display: grid;
  gap: 6px;
  color: #1f2937;
  font-weight: 700;
}
.wordai-chat-handoff-grid input.regular-text {
  width: 100%;
  max-width: 460px;
  min-height: 36px;
}
.wordai-chat-lead-capture-panel {
  display: grid;
  gap: 16px;
  max-width: 900px;
}
.wordai-chat-lead-mode-row label,
.wordai-chat-lead-copy-grid label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #1f2937;
}
.wordai-chat-lead-mode-row select {
  max-width: 320px;
}
.wordai-chat-lead-copy-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(220px, .9fr);
  gap: 14px;
}
.wordai-chat-lead-copy-grid label:first-child {
  grid-row: span 2;
}
.wordai-chat-lead-copy-grid textarea,
.wordai-chat-lead-copy-grid input.regular-text {
  width: 100%;
  max-width: 100% !important;
}
.wordai-chat-lead-fields {
  display: grid;
  gap: 8px;
}
.wordai-chat-lead-field-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.wordai-chat-lead-field-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.wordai-chat-lead-field-row.is-locked {
  background: #f8fafc;
  color: #64748b;
}
.wordai-chat-lead-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
}
.wordai-chat-lead-extra-options {
  align-items: flex-start !important;
}
.wordai-basic-limit-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}
.wordai-pro-inline-upsell {
  margin-top: 8px;
  padding: 9px 11px;
  border-left: 3px solid #f59e0b;
  background: #fff8eb;
  color: #5f4300;
}
.wordai-pro-inline-upsell a {
  font-weight: 800;
}
.wordai-chat-analytics-wrapper {
  display: grid;
  gap: 16px;
}
.wordai-analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
}
.wordai-analytics-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.wordai-analytics-header p {
  margin: 0;
  color: #64748b;
}
.wordai-analytics-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wordai-analytics-actions .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1 !important;
  white-space: nowrap;
  vertical-align: middle;
}

.wordai-tier-inline-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  min-height: 30px !important;
  line-height: 1.2 !important;
  text-align: center;
}

.wordai-analytics-actions .button .dashicons,
.wa-chat-actions .button .dashicons,
.wordai-tier-inline-cta .dashicons,
.wordai-pro-inline-upsell .dashicons {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px;
  height: 16px;
  margin: 0;
  font-size: 16px;
  line-height: 1 !important;
}
.wordai-analytics-upsell {
  padding: 12px 14px;
  border: 1px solid #f4d793;
  border-radius: 8px;
  background: #fff9ed;
  color: #614500;
}
.wordai-analytics-upsell a {
  font-weight: 800;
  margin-left: 8px;
}
.wordai-analytics-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.wordai-analytics-metric {
  padding: 14px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
}
.wordai-analytics-metric span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.wordai-analytics-metric strong {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-size: 26px;
  line-height: 1;
}
.wordai-analytics-warning strong {
  color: #b45309;
}
.wordai-analytics-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.wordai-analytics-panel {
  padding: 16px;
}
.wordai-analytics-panel h4 {
  margin: 0 0 12px;
  font-size: 15px;
}
.wordai-analytics-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.wordai-analytics-panel-heading h4 {
  margin-bottom: 4px;
}
.wordai-analytics-small-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1 !important;
  white-space: nowrap;
  vertical-align: middle;
}
.wordai-analytics-small-cta .dashicons {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px;
  height: 16px;
  margin: 0;
  font-size: 16px;
  line-height: 1 !important;
}
.wordai-analytics-list {
  display: grid;
  gap: 8px;
  margin: 0;
}
.wordai-analytics-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #edf1f7;
  border-radius: 7px;
  background: #fbfdff;
}
.wordai-analytics-list span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
}
.wordai-analytics-table-wrap {
  overflow-x: auto;
}
.wordai-analytics-table th,
.wordai-analytics-table td {
  vertical-align: top;
  font-size: 12px;
}
.wordai-analytics-table td:first-child,
.wordai-analytics-table td:nth-child(2) {
  min-width: 190px;
}
.wordai-leads-table select {
  min-width: 118px;
  max-width: 100%;
}
.wordai-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wordai-lead-actions .button {
  min-height: 30px;
  line-height: 1 !important;
}
.wordai-muted {
  color: #94a3b8;
}
@media (max-width: 1120px) {
  .wordai-analytics-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
@media (max-width: 782px) {
  .wordai-analytics-header,
  .wordai-analytics-two-col {
    grid-template-columns: 1fr;
    display: grid;
  }
  .wordai-analytics-metric-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .wordai-chat-lead-copy-grid,
  .wordai-chat-lead-field-row,
  .wordai-analytics-panel-heading {
    grid-template-columns: 1fr;
    display: grid;
  }
}

#sc-wordai-ai-agent-tabs .wa-chat-embedding-source-option {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
}

#sc-wordai-ai-agent-tabs .wa-chat-embedding-source-option input[type="radio"] {
  flex: 0 0 auto;
  margin: 0;
}
