/*
 * Support without a plan (service-adhoc-bnr): a cream panel with rounded corners, inside the page's side room. The
 * eyebrow, "Need support without a plan?" and a line sit beside the services available ad hoc as chips (the ad hoc
 * services block). Under the chips, after a fine rule, "Not sure what you need?" sits level with the free
 * compliance audit button.
 *
 * Side by side on laptops; below 900px the words sit above the chips.
 */

.wp-block-group.service-pattern.service-pattern--adhoc-bnr {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--text);
}

.service-pattern--adhoc-bnr .wp-block-group__inner-container {
  display: contents;
}

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-inner {
  padding: 0 clamp(24px, 5vw, 64px) 48px;
}

/* The panel: the words beside the chips */

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-panel {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px;
  border-radius: 20px;
  background: #f4f3ee;
}

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-copy {
  display: flex;
  flex: 1 1 460px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-eyebrow {
  margin: 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-heading {
  margin: 0;
  color: #0d3d39;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(28px, 3.2vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: none;
}

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* The chips, then the audit row under a fine rule */

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-services {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-audit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-top: 18px;
  border-top: 1px solid #e0ddd2;
}

/* With no ad hoc services listed, the audit row needs no rule above it */

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-services:not(:has(.adhoc-services)) .service-pattern__adhoc-bnr-audit {
  padding-top: 0;
  border-top: 0;
}

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-audit-heading {
  margin: 0;
  color: #0d3d39;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  text-transform: none;
  white-space: nowrap;
}

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-audit-actions {
  display: flex;
}

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-audit-actions .wp-block-button__link {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--teal-darker);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-audit-actions .wp-block-button__link:hover,
.service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-audit-actions .wp-block-button__link:focus-visible {
  background: #0d3d39;
}

/* Tablets and phones: the words above the chips */

@media (max-width: 899px) {
  .service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-copy,
  .service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-services {
    flex: none;
  }
}

/* Phones */

@media (max-width: 700px) {
  .service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-inner {
    padding: 0 16px 40px;
  }

  .service-pattern--adhoc-bnr .service-pattern__adhoc-bnr-panel {
    padding: 24px;
  }
}
