/* ============================================================================
   Settings — "Deep Teal & Lime", matching the editor, the list and the leads
   screens. Scoped to body.bplde-settings. Square corners throughout.
   ========================================================================== */

.bplde-settings {
  --de-ground: #edf1f0;
  --de-surface: #fff;
  --de-tint: #f8fbfa;
  --de-border: #d5e0dd;
  --de-control: #bfd0cc;
  --de-rule: #e3ebe9;

  --de-ink: #0f1f1b;
  --de-ink-2: #3f5750;
  --de-ink-3: #5b7369;

  --de-accent: #0f766e;
  --de-accent-deep: #0b5a54;
  --de-accent-soft: rgba(15, 118, 110, .1);

  --de-pop: #a3e635;
  --de-pop-soft: #f4fce3;
  --de-pop-ink: #3f5209;
  --de-on-pop: #1a2e05;

  --de-danger: #a32020;
  --de-danger-soft: #fdeeee;
}

.bplde-settings .bplde-settings-wrap,
.bplde-settings .bplde-settings-wrap * {
  border-radius: 0;
  box-sizing: border-box;
}

.bplde-settings .bplde-settings-wrap > hr.wp-header-end {
  visibility: hidden;
  margin: 0;
  height: 0;
  border: 0;
}

.bplde-settings #wpbody-content {
  padding-bottom: 40px;
}

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.bplde-settings .bplde-settings-hero {
  /* Screen Options / Help tabs float right above this; without clearing, the
     flex box forms a narrower block and comes up short. */
  clear: both;
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 28px 20px 22px 0;
  padding: 40px 44px;
  background: var(--de-ink);
  color: #fff;
}

.bplde-settings .bplde-settings-hero__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.bplde-settings .bplde-settings-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--de-pop);
  color: var(--de-on-pop);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bplde-settings .bplde-settings-hero__title {
  margin: 14px 0 0;
  padding: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #fff;
}

.bplde-settings .bplde-settings-hero__note {
  margin: 12px 0 0;
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #b9ccc4;
}

.bplde-settings .bplde-settings-hero__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 280px;
}

.bplde-settings .bplde-settings-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 18px;
  background: var(--de-pop);
  color: var(--de-on-pop);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.bplde-settings .bplde-settings-cta:hover,
.bplde-settings .bplde-settings-cta:focus {
  background: #b6ef52;
  color: var(--de-on-pop);
  box-shadow: none;
  outline: 2px solid transparent;
}

.bplde-settings .bplde-settings-cta:focus-visible {
  outline: 2px solid var(--de-pop);
  outline-offset: 2px;
}

.bplde-settings .bplde-settings-hero__trust {
  margin: 4px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: #8fa39e;
}

/* ---------------------------------------------------------------------------
   Feature groups
   ------------------------------------------------------------------------- */

.bplde-settings .bplde-settings-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 20px 0 0;
}

.bplde-settings .bplde-settings-group {
  padding: 20px 22px;
  background: var(--de-surface);
  border: 1px solid var(--de-border);
}

.bplde-settings .bplde-settings-group__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--de-accent-soft);
  color: var(--de-accent-deep);
}

.bplde-settings .bplde-settings-group__icon--pop {
  background: var(--de-pop-soft);
  color: var(--de-pop-ink);
}

.bplde-settings .bplde-settings-group__title {
  margin: 12px 0 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--de-ink);
}

.bplde-settings .bplde-settings-group__list {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--de-ink-2);
}

.bplde-settings .bplde-settings-group__list li {
  margin: 0;
}

/* ---------------------------------------------------------------------------
   Narrow screens
   ------------------------------------------------------------------------- */

@media screen and (max-width: 1200px) {
  .bplde-settings .bplde-settings-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 960px) {
  .bplde-settings .bplde-settings-hero {
    flex-wrap: wrap;
    gap: 24px;
    padding: 28px 24px;
  }

  .bplde-settings .bplde-settings-hero__title {
    font-size: 28px;
  }

  .bplde-settings .bplde-settings-hero__actions {
    width: 100%;
  }
}

@media screen and (max-width: 782px) {
  .bplde-settings .bplde-settings-hero,
  .bplde-settings .bplde-settings-groups {
    margin-right: 0;
  }

  .bplde-settings .bplde-settings-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------------------
   CodeStar Save / Reset buttons, matching the Download Leads buttons
   ------------------------------------------------------------------------- */

.bplde-settings .csf-options .csf-buttons .button {
  height: 40px;
  min-height: 40px;
  margin: 0 0 0 6px;
  padding: 0 16px;
  border: 1px solid var(--de-control);
  border-radius: 0;
  background: var(--de-surface);
  color: var(--de-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 38px;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
}

.bplde-settings .csf-options .csf-buttons .button:hover,
.bplde-settings .csf-options .csf-buttons .button:focus {
  border-color: var(--de-accent);
  background: var(--de-surface);
  color: var(--de-accent-deep);
  box-shadow: none;
  outline: 0;
}

.bplde-settings .csf-options .csf-buttons .button:focus-visible {
  outline: 2px solid var(--de-accent);
  outline-offset: 2px;
}

.bplde-settings .csf-options .csf-buttons .csf-save {
  padding: 0 20px;
  border-color: var(--de-accent);
  background: var(--de-accent);
  color: #fff;
  font-weight: 700;
}

.bplde-settings .csf-options .csf-buttons .csf-save:hover,
.bplde-settings .csf-options .csf-buttons .csf-save:focus {
  border-color: var(--de-accent-deep);
  background: var(--de-accent-deep);
  color: #fff;
}

.bplde-settings .csf-options .csf-buttons .csf-save:disabled {
  opacity: .6;
  cursor: default;
}

/* CodeStar paints .csf-warning-primary with !important, so these must match it. */
.bplde-settings .csf-options .csf-buttons .csf-reset-all {
  border-color: #e7c4c4 !important;
  background: var(--de-surface) !important;
  color: var(--de-danger) !important;
}

.bplde-settings .csf-options .csf-buttons .csf-reset-all:hover,
.bplde-settings .csf-options .csf-buttons .csf-reset-all:focus,
.bplde-settings .csf-options .csf-buttons .csf-reset-all:active {
  border-color: var(--de-danger) !important;
  background: var(--de-danger-soft) !important;
  color: var(--de-danger) !important;
  box-shadow: none !important;
}
