/* ===== Frontend: Summary Buttons widget ===== */

.summary-widget {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #e5e7eb;
  font-family: inherit;
}

.summary-widget-title,
.summary-widget .summary-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #0f172a;
}

.summary-buttons,
.summary-widget .summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-button,
.summary-widget .summary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  background: #ffffff;
  text-decoration: none;
  font-size: 14px;
  color: #111827;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.summary-button img,
.summary-widget .summary-link img {
  width: 18px;
  height: 18px;
  display: block;
}



/* Mobile stacking */
@media (max-width: 600px) {
  .summary-buttons,
  .summary-widget .summary-list {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-button,
  .summary-widget .summary-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ===== Admin: Settings page layout ===== */

.sb-settings {
  max-width: 1200px;
}

.sb-settings .sb-page-header {
  margin: 15px 0 15px;
}

.sb-settings .sb-page-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #0f172a;
}

.sb-settings .sb-page-subtitle {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.sb-help-box {
  margin-top: 16px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #e3ffde;
  border: 1px solid #e2e8f0;
}

.sb-help-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  line-height: 28px;
}

.sb-help-list {
    margin: 0 0 6px 16px;
    padding: 0;
    list-style: disc;
    font-size: 14px;
    color: #000000;
    line-height: 24px;
}
.sb-help-note {
  font-size: 14px;
  color: #222;
}

/* Two-column grid: templates + providers */
.sb-grid {
  display: grid;
  grid-template-columns: auto;
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 960px) {
  .sb-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sb-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.sb-card-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.sb-card-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: #0f172a;
}

.sb-card-desc {
  margin: 0;
  font-size: 14px;
  color: #000000;
}

.sb-card-body {
  padding: 10px 14px 12px;
}

/* Tables inside cards */
.sb-table {
  border-collapse: collapse;
  width: 100%;
}

.sb-table th,
.sb-table td {
  padding: 8px 6px;
  vertical-align: top;
}

.sb-table thead th {
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  color: #6b7280;
  
}

.sb-table tbody tr:nth-child(odd) {
  background-color: #f9fafb;
}

.sb-table input.regular-text,
.sb-table textarea.large-text {
  width: 100%;
}

.sb-table small {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  color: #000000;
}

/* Footer / buttons */
.sb-footer-actions {
  margin-top: 10px;
}

.sb-submit-wrap {
  margin-top: 18px;
}

/* Delete “X” links */
.sb-remove-provider,
.sb-remove-template {
  color: #94a3b8;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.sb-remove-provider:hover,
.sb-remove-template:hover {
  color: #ef4444;
}

/* Provider multiselect dropdown UI */
.sb-provider-multiselect {
  position: relative;
}

.sb-provider-toggle {
display: inline-flex !important;
align-items: center;
justify-content: space-between;
min-width: 100%;
padding: 5px 10px !important;
font-size: 14px !important;
border-radius: 6px !important;
border: 1px solid #d1d5db;
background: #f9fafb !important;
cursor: pointer !important;
}

.sb-provider-toggle .dashicons {
  font-size: 20px!important;
}

.sb-provider-selected-label {
  white-space: nowrap;
}

.sb-provider-dropdown {
  position: absolute;
  z-index: 999;
  top: calc(100% + 4px);
  right: 0;
  min-width: 220px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
}

.sb-provider-dropdown-header {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 4px;
  color: #1111;
}

.sb-provider-dropdown-header a {
  text-decoration: none;
  color: #4f46e5;
}

.sb-provider-options {
  max-height: 160px;
  overflow: auto;
  padding: 4px 0 2px;
}

.sb-provider-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  padding: 3px 0;
}

.sb-provider-option input {
  margin: 0;
}

.sb-provider-dropdown .description {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}
