#footer-thankyou {
  display: none;
}

#wpfooter p {
  display: none;
}

/* Premium Typography Enforcement */
#root {
  font-family: 'Poppins', sans-serif;
}

/* WP Email Template Builder admin list — slate/teal design tokens */
.toplevel_page_email-template-builder #wpbody-content,
.toplevel_page_wp-email-templates #wpbody-content,
.woocommerce_page_wp-email-templates #wpbody-content,
.woocommerce_page_wp-email-logs #wpbody-content {
  box-sizing: border-box;
}

.wetc-templates-page.wrap,
.wetc-templates-page {
  margin: 0 !important;
  /* padding: 0 !important; */
  padding: 10px 10px 10px 10px;
  max-width: 100%;
}

.column-priority {
  width: 80px;
  text-align: center;
}

.wetc-brand {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #0b1220;
}

.wetc-brand .dashicons {
  font-size: 24px;
  color: #0f766e;
  margin-right: 8px;
  width: 24px;
  height: 24px;
}

.wetc-header-divider {
  border-left: 1px solid #e2e8f0;
  height: 24px;
  margin: 0 20px;
}



.wetc-integration-tabs,
.wetc-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.03);
}

.wetc-integration-tabs .wetc-tab,
.wetc-tabs .wetc-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  color: #475569;
  text-decoration: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  background: transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.wetc-integration-tabs .wetc-tab:hover,
.wetc-tabs .wetc-tab:hover {
  color: #0b1220;
  background: #f8fafc;
}

.wetc-integration-tabs .wetc-tab.active,
.wetc-tabs .wetc-tab.active {
  border-bottom-color: #0f766e;
  color: #0b1220;
  font-weight: 700;
  background: #ffffff;
}

.wetc-btn-outline {
  border: 1px solid #0f766e;
  color: #0f766e;
  background: transparent;
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wetc-btn-outline:hover {
  background: #ccfbf1;
  color: #115e59;
}

.toplevel_page_email-template-builder .wp-list-table.widefat,
.toplevel_page_wp-email-templates .wp-list-table.widefat,
.woocommerce_page_wp-email-templates .wp-list-table.widefat {
  border-color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
}

.toplevel_page_email-template-builder .wp-list-table.widefat thead th,
.toplevel_page_wp-email-templates .wp-list-table.widefat thead th,
.woocommerce_page_wp-email-templates .wp-list-table.widefat thead th {
  color: #0b1220;
  border-bottom-color: #e2e8f0;
}

.toplevel_page_email-template-builder .wp-list-table.widefat .row-title,
.toplevel_page_wp-email-templates .wp-list-table.widefat .row-title,
.woocommerce_page_wp-email-templates .wp-list-table.widefat .row-title {
  color: #115e59;
}

.toplevel_page_email-template-builder .subsubsub a.current,
.toplevel_page_wp-email-templates .subsubsub a.current,
.woocommerce_page_wp-email-templates .subsubsub a.current {
  color: #0b1220;
  font-weight: 600;
}

.toplevel_page_email-template-builder .subsubsub a:hover,
.toplevel_page_wp-email-templates .subsubsub a:hover,
.woocommerce_page_wp-email-templates .subsubsub a:hover {
  color: #0f766e;
}

/* Template list empty state + starter links (#49 / #40) */
.wetc-empty-state {
  padding: 28px 16px;
  text-align: center;
  color: #475569;
}

.wetc-empty-state p {
  margin: 0 0 10px;
}

.wetc-empty-state .button {
  margin-top: 4px;
}

.wetc-starter-links {
  list-style: none;
  margin: 18px auto 0;
  padding: 0;
  max-width: 520px;
  text-align: left;
}

.wetc-starter-links li {
  margin: 0 0 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.wetc-starter-links a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

.wetc-starter-links a:hover {
  color: #115e59;
  text-decoration: underline;
}

.wetc-starter-links .description {
  color: #64748b;
  font-size: 12px;
}

/* Status filter pills polish */
.toplevel_page_email-template-builder .subsubsub,
.toplevel_page_wp-email-templates .subsubsub,
.woocommerce_page_wp-email-templates .subsubsub {
  margin-bottom: 12px;
}

.toplevel_page_email-template-builder .subsubsub li,
.toplevel_page_wp-email-templates .subsubsub li,
.woocommerce_page_wp-email-templates .subsubsub li {
  margin: 0 4px 4px 0;
}

.toplevel_page_email-template-builder .subsubsub a,
.toplevel_page_wp-email-templates .subsubsub a,
.woocommerce_page_wp-email-templates .subsubsub a {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.toplevel_page_email-template-builder .subsubsub a.current,
.toplevel_page_wp-email-templates .subsubsub a.current,
.woocommerce_page_wp-email-templates .subsubsub a.current {
  background: #ccfbf1;
  border-color: #99f6e4;
  color: #115e59;
}

/* WP Email Template Builder Analytics */
.wetc-analytics-page {
  max-width: 1100px;
}

.wetc-analytics-hero {
  background: linear-gradient(135deg, #0f172a 0%, #115e59 100%);
  color: #f8fafc;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 16px 0 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.wetc-analytics-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #99f6e4;
  margin-bottom: 8px;
}

.wetc-analytics-hero h1 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.wetc-analytics-hero .description {
  color: #cbd5e1;
  margin: 0;
  font-size: 14px;
}

.wetc-analytics-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.wetc-analytics-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  min-width: 160px;
  flex: 1 1 160px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wetc-analytics-card-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  font-weight: 600;
}

.wetc-analytics-card-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

/* Email Templates list table */
.wetc-templates-page .wetc-header-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 16px 0;
  margin-bottom: 18px;
}

.wetc-templates-page .wp-header-end {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wetc-templates-page .wetc-page-title {
  margin: 0 12px 0 0;
  padding: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.wetc-templates-page .wetc-action-btn,
.wetc-templates-page .wetc-btn-add-new,
.wetc-templates-page .wetc-btn-import {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  background: #387676;
  border: 1px solid #387676;
  border-radius: 6px;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  transition: all 0.15s ease;
  gap: 6px;
}

.wetc-templates-page .wetc-action-btn:hover,
.wetc-templates-page .wetc-action-btn:focus,
.wetc-templates-page .wetc-btn-add-new:hover,
.wetc-templates-page .wetc-btn-add-new:focus {
  background: #2e6666;
  border-color: #2e6666;
  color: #ffffff !important;
}

.wetc-templates-page .wetc-btn-import {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f766e !important;
}

.wetc-templates-page .wetc-btn-import:hover,
.wetc-templates-page .wetc-btn-import:focus {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #115e59 !important;
}

.wetc-templates-page .wetc-action-btn svg,
.wetc-templates-page .wetc-btn-add-new svg {
  color: #ffffff !important;
  width: 16px;
  height: 16px;
  margin: 0;
}

.wetc-templates-page .wetc-btn-import svg {
  color: #0f766e !important;
  width: 16px;
  height: 16px;
  margin: 0;
}

.wetc-templates-page .wetc-integration-tabs {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px 8px;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.03);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.wetc-templates-page .wetc-integration-tabs .wetc-tab {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 25px 25px;
  margin: 0;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: #475569;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.wetc-templates-page .wetc-integration-tabs .wetc-tab:hover {
  color: #0b1220;
  background: #f8fafc;
}

.wetc-templates-page .wetc-integration-tabs .wetc-tab.active {
  border-bottom-color: #0f766e;
  color: #0b1220;
  font-weight: 700;
  background: #ffffff;
}

.wetc-templates-page .wetc-templates-shell {
  margin-top: -1px;
  border: 1px solid #e2e8f0;
  border-radius: 10px 10px 10px 10px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(11, 18, 32, 0.04);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.wetc-templates-page .wetc-templates-shell .wetc-templates-list-form {
  margin: 0;
  padding: 0;
}

.wetc-templates-page .wetc-templates-shell .wetc-templates-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.wetc-templates-page .wetc-templates-shell .wetc-templates-table-card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.wetc-templates-page .wetc-status-filters {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  gap: 2px;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.02);
}

.wetc-templates-page .wetc-status-filter {
  display: inline-flex;
}

.wetc-templates-page .wetc-status-filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  transition: all 0.15s ease;
}

.wetc-templates-page .wetc-status-filter-link:hover {
  border-color: transparent;
  background: #f8fafc;
  color: #0b1220;
}

.wetc-templates-page .wetc-status-filter-link.is-active {
  background: #387676;
  border: none;
  color: #ffffff;
  font-weight: 600;
  box-shadow: none;
}

.wetc-templates-toolbar__filters {
  flex: 1 1 auto;
  min-width: 0;
}

.wetc-templates-toolbar__search {
  flex: 0 0 auto;
}

.wetc-templates-page .wetc-templates-toolbar .subsubsub {
  display: none;
}

.wetc-templates-page .wetc-search-box {
  float: none;
  margin: 0;
}

.wetc-templates-page .wetc-search-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wetc-templates-page .wetc-search-field .dashicons-search {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.wetc-templates-page .wetc-search-field input[type="search"] {
  width: 220px;
  max-width: 100%;
  min-height: 34px;
  padding: 0 12px 0 34px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.wetc-templates-page .wetc-search-field input[type="search"]:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 1px #0f766e;
}

.wetc-templates-table-card {
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.wetc-templates-table-card .tablenav.top {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  clear: both;
}

.wetc-templates-table-card .tablenav.bottom {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  clear: both;
}

.wetc-templates-table-card .tablenav .bulkactions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.wetc-templates-table-card .tablenav .tablenav-pages {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 auto !important;
  float: none;
}

.wetc-templates-page .wp-list-table.widefat {
  table-layout: auto;
  border: 0;
  box-shadow: none;
  margin: 0;
}

.wetc-templates-page .wp-list-table.widefat thead th {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  padding-top: 12px;
  padding-bottom: 12px;
}

.wetc-templates-page .wp-list-table.widefat thead th a,
.wetc-templates-page .wp-list-table.widefat thead th a:hover,
.wetc-templates-page .wp-list-table.widefat thead th a:focus {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
}

.wetc-templates-page .wp-list-table tbody tr {
  height: auto;
}

.wetc-templates-page .wp-list-table tbody td {
  vertical-align: middle;
  border-bottom-color: #f1f5f9;
  padding: 12px 10px;
}

.wetc-templates-page .column-cb {
  width: 2.2em;
}

.wetc-templates-page .column-preview {
  width: 130px;
}

.wetc-templates-page .column-email_template_name {
  min-width: 240px;
}

.wetc-templates-page .column-content_type,
.wetc-templates-page .column-integration {
  width: 120px;
}

.wetc-templates-page .column-status,
.wetc-templates-page th.column-status,
.wetc-templates-page td.column-status {
  width: 120px;
  text-align: center !important;
}

.wetc-templates-page .column-recipient {
  width: 100px;
  color: #334155;
  font-weight: 500;
}

.wetc-templates-page .column-priority,
.wetc-templates-page th.column-priority,
.wetc-templates-page td.column-priority {
  width: 72px;
  text-align: center !important;
  font-weight: 600;
  color: #0b1220;
}

.wetc-templates-page .column-description {
  min-width: 140px;
  color: #475569;
}

.wetc-templates-page .column-date,
.wetc-templates-page th.column-date,
.wetc-templates-page td.column-date {
  width: 140px;
  text-align: center !important;
}

.wetc-date-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.35;
}

.wetc-date-day {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.wetc-date-time {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.wetc-preview-thumb {
  display: block;
  width: 108px;
  height: 148px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.06);
  text-decoration: none;
}

.wetc-preview-thumb iframe {
  width: 600px;
  height: 820px;
  transform: scale(0.18);
  transform-origin: top left;
  border: 0;
  pointer-events: none;
  background: #fff;
}

.wetc-preview-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.wetc-preview-thumb--empty .dashicons {
  width: 32px;
  height: 32px;
  font-size: 32px;
}

.wetc-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.wetc-badge--user {
  background: #dbeafe;
  color: #1d4ed8;
}

.wetc-badge--transactional {
  background: #ede9fe;
  color: #6d28d9;
}

.wetc-badge--integration-wordpress {
  background: #dcfce7;
  color: #15803d;
}

.wetc-badge--integration-woocommerce {
  background: #ede9fe;
  color: #6d28d9;
}

.wetc-badge--integration-edd {
  background: #ffedd5;
  color: #c2410c;
}

.wetc-badge--integration-learnpress {
  background: #dbeafe;
  color: #1d4ed8;
}

.wetc-badge--integration-tutor {
  background: #cffafe;
  color: #0e7490;
}

.wetc-badge--integration-lifterlms {
  background: #fef3c7;
  color: #b45309;
}

.wetc-badge--integration {
  background: #f1f5f9;
  color: #334155;
}

.wetc-badge--published {
  background: #dcfce7;
  color: #15803d;
}

.wetc-badge--draft {
  background: #fef3c7;
  color: #b45309;
}

.wetc-status-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.wetc-status-dot,
.wetc-rules-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.wetc-rules-dot--active,
.wetc-status-dot--active {
  background: #22c55e;
}

.wetc-rules-dot--inactive,
.wetc-status-dot--inactive {
  background: #f59e0b;
}

.wetc-date-cell {
  color: #334155;
  font-size: 13px;
}

.wetc-templates-page .wp-list-table .row-title {
  color: #115e59;
  font-weight: 600;
}

.wetc-templates-page .row-actions {
  visibility: visible;
  position: static;
  left: auto;
  margin-top: 8px;
  padding: 0;
  color: #64748b;
}

.wetc-templates-page .row-actions span {
  color: #cbd5e1;
}

.wetc-templates-page .row-actions a,
.wetc-templates-page .row-actions .wetc-quick-edit-toggle {
  color: #2271b1;
}

.wetc-templates-page .row-actions a:hover,
.wetc-templates-page .row-actions .wetc-quick-edit-toggle:hover {
  color: #135e96;
}

.wetc-templates-page .row-actions .submitdelete {
  color: #b32d2e;
}

.wetc-templates-page .row-actions .wetc-quick-edit-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: inherit;
  line-height: inherit;
}

.wetc-templates-page .wetc-inline-edit-open td {
  background: #f8fafc;
  box-shadow: inset 0 1px 0 #e2e8f0;
}

.wetc-templates-page .wetc-inline-edit-open .inline-edit-col label {
  display: block;
  margin: 0 0 12px;
}

.wetc-templates-page .wetc-inline-edit-open .inline-edit-col .title {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.wetc-templates-page .wetc-inline-edit-open .inline-edit-save {
  margin-top: 8px;
}