/*
 * Best Practice Score – everything is scoped under .sa-bps so it can't leak into the theme.
 * Brand (from the brief): text #222831, headings #191717, borders #C8CBCD, grey #F5F5F5, navy #233142,
 * turquoise #12DBC7 (hover #0AA0A0) with dark text on it, links #3579BC.
 * Bands: orange Needs attention, amber Fair, blue Good, teal Excellent – always with the name written out.
 */
.sa-bps {
	--bps-text: #222831;
	--bps-heading: #191717;
	--bps-muted: #5b6470;
	--bps-border: #c8cbcd;
	--bps-line: #e4e7ea;
	--bps-grey: #f5f5f5;
	--bps-navy: #233142;
	--bps-turq: #12dbc7;
	--bps-turq-hover: #0aa0a0;
	--bps-link: #3579bc;
	--bps-fill: #3579bc;
	--bps-attention: #f6cdbb;
	--bps-fair: #f7e2a1;
	--bps-good: #a9d4f2;
	--bps-excellent: #86e3d5;
	--bps-star: #b9720f;
	--bps-panel: #f4f8fb;
	--bps-panel-line: #dbe5ed;
	--bps-chosen: #d3e9f8;
	--bps-chosen-text: #1d5f8c;
	color: var(--bps-text);
	font-size: 16px;
	line-height: 1.55;
}
.sa-bps--company, .sa-bps--agent, .sa-bps--page { max-width: 1180px; }
.sa-bps--page { margin: 0 auto; }
.sa-bps *, .sa-bps *::before, .sa-bps *::after { box-sizing: border-box; }
.sa-bps h1, .sa-bps h2, .sa-bps h3 { color: var(--bps-heading); font-family: Roboto, Arial, sans-serif; margin: 0; }
/* The theme underlines every h2/h3 in My Account (3px border and padding); the tab has its own dividers. */
.sa-bps h1, .sa-bps h2, .sa-bps h3, .sa-bps summary { border-bottom: 0 !important; padding-bottom: 0 !important; }
/* The theme also sizes My Account headings by ID (#customer-dashboard-wrapper h2/h3), so the plugin's own
   heading sizes need !important to apply. */
.sa-bps .sa-bps-h2 { font-size: 22px !important; }
.sa-bps .sa-bps-sec__title, .sa-bps .sa-bps-step__title { font-size: 18px !important; }
.sa-bps .sa-bps-action__title, .sa-bps .sa-bps-explainer__h { font-size: 17px !important; }
.sa-bps .sa-bps-claim__title { font-size: 20px !important; }
.sa-bps .sa-bps-modal__title { font-size: 28px !important; }
.sa-bps .sa-bps-strip__title { font-size: 26px !important; }
.sa-bps .sa-bps-explainer__h { padding-bottom: 8px !important; border-bottom: 1px solid var(--bps-line) !important; }
/* The theme sets every paragraph to a 26px line height; small print reads better closer. */
.sa-bps .sa-bps-hint, .sa-bps .sa-bps-small, .sa-bps .sa-bps-step__note, .sa-bps .sa-bps-share__note { line-height: 1.45; }
.sa-bps p { margin: 0 0 .75rem; }
.sa-bps p:last-child { margin-bottom: 0; }
.sa-bps a { color: var(--bps-link); }

/* Header */
.sa-bps-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.sa-bps-head__text { flex: 1 1 420px; min-width: 0; }
.sa-bps-title { font-size: clamp(28px, 4vw, 38px); font-weight: 700; line-height: 1.15; margin-bottom: 8px !important; }
.sa-bps-intro { color: var(--bps-muted); max-width: 640px; }
.sa-bps-share { flex: 0 1 300px; text-align: right; }
.sa-bps-share__note { color: var(--bps-muted); font-size: 14px; margin-top: 6px; }
.sa-bps-switch { display: inline-flex; align-items: center; gap: 12px; }
.sa-bps-switch__label { font-weight: 600; color: var(--bps-heading); }
.sa-bps-switch__btn { position: relative; width: 48px; height: 28px; border-radius: 14px; border: 0; padding: 0; background: #d5d9dc; cursor: pointer; transition: background .15s; flex: none; }
.sa-bps-switch__btn[aria-checked="true"] { background: #0e7c6f; }
.sa-bps-switch__btn:disabled { cursor: not-allowed; opacity: .6; }
.sa-bps-switch__btn:focus-visible { outline: 3px solid var(--bps-link); outline-offset: 2px; }
.sa-bps-switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.sa-bps-switch__btn[aria-checked="true"] .sa-bps-switch__knob { transform: translateX(20px); }

/* Cards */
.sa-bps-card { background: #fff; border: 1px solid var(--bps-line); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.sa-bps-block { margin-bottom: 24px; }
.sa-bps-h2 { font-size: 22px; font-weight: 700; margin-bottom: 18px !important; }
.sa-bps-muted { color: var(--bps-muted); }
.sa-bps-small { color: var(--bps-muted); font-size: 14px; margin-top: 16px; }
.sa-bps-note { background: #e3f6f3; color: #0b5a50; border-radius: 10px; padding: 12px 16px; }
.sa-bps-error { color: #a61b1b; font-size: 14px; margin-top: 8px; }

/* Score */
.sa-bps-score__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-bottom: 22px; }
.sa-bps-score__num { font-family: Roboto, Arial, sans-serif; font-weight: 800; font-size: clamp(72px, 12vw, 120px); line-height: .9; color: var(--bps-heading); letter-spacing: -2px; }
.sa-bps-score__next { font-family: Roboto, Arial, sans-serif; font-size: 20px; font-weight: 700; color: var(--bps-heading); margin: 8px 0 4px !important; }
.sa-bps-score__change { color: var(--bps-muted); }
.sa-bps-pill { display: inline-block; border-radius: 999px; padding: 3px 14px; font-weight: 700; font-size: 15px; }
.sa-bps-pill--attention { background: #fad9cc; color: #9a3412; }
.sa-bps-pill--fair { background: #fbe7b0; color: #6f4b00; }
.sa-bps-pill--good { background: #d3e9f8; color: #1d5f8c; }
.sa-bps-pill--excellent { background: #c8f2ec; color: #0b6b5f; }

.sa-bps-scale { margin-bottom: 14px; }
.sa-bps-scale__bar { position: relative; display: flex; height: 14px; border-radius: 7px; overflow: visible; }
.sa-bps-scale__seg { height: 100%; }
.sa-bps-scale__seg + .sa-bps-scale__seg { border-left: 2px solid #fff; }
.sa-bps-scale__seg--attention { background: var(--bps-attention); border-radius: 7px 0 0 7px; }
.sa-bps-scale__seg--fair { background: var(--bps-fair); }
.sa-bps-scale__seg--good { background: var(--bps-good); }
.sa-bps-scale__seg--excellent { background: var(--bps-excellent); border-radius: 0 7px 7px 0; }
.sa-bps-scale__marker { position: absolute; top: -8px; width: 4px; height: 30px; margin-left: -2px; background: var(--bps-heading); border-radius: 2px; }
.sa-bps-scale__ticks { position: relative; height: 22px; margin-top: 10px; font-size: 13px; color: var(--bps-muted); }
.sa-bps-scale__ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.sa-bps-scale__ticks span:first-child { transform: none; }
.sa-bps-scale__ticks span:last-child { transform: translateX(-100%); }

.sa-bps-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--bps-muted); }
.sa-bps-legend li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.sa-bps-legend--small { font-size: 13px; margin: 8px 0 12px; }
.sa-bps-legend__dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.sa-bps-legend__dot--attention { background: var(--bps-attention); }
.sa-bps-legend__dot--fair { background: var(--bps-fair); }
.sa-bps-legend__dot--good { background: var(--bps-good); }
.sa-bps-legend__dot--excellent { background: var(--bps-excellent); }
.sa-bps-legend__dot--replied { background: var(--bps-navy); }
.sa-bps-legend__dot--new { background: #a9b4be; }
.sa-bps-legend__dot--week { background: #e0a526; }
.sa-bps-legend__dot--month { background: #c2410c; }

/* Layout */
.sa-bps-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 991px) { .sa-bps-grid { grid-template-columns: minmax(0, 1fr); } }

/* Sections */
.sa-bps-sec { padding: 18px 0 20px; border-top: 1px solid var(--bps-line); }
.sa-bps-sec:first-of-type { border-top: 0; padding-top: 0; }
.sa-bps-sec.is-start { border: 1px dashed var(--bps-border); border-radius: 12px; padding: 16px 18px; margin: 14px 0; background: #fbfcfc; }
.sa-bps-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sa-bps-sec__title { font-size: 18px; font-weight: 700; }
.sa-bps-sec__pts { color: var(--bps-muted); white-space: nowrap; }
.sa-bps-sec__pts strong { color: var(--bps-heading); font-size: 26px; font-family: Roboto, Arial, sans-serif; }
.sa-bps-bar { height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.sa-bps-bar span { display: block; height: 100%; background: var(--bps-fill); border-radius: 3px; }
.sa-bps-stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #e9ecef; }
.sa-bps-stack span { display: block; height: 100%; }
.sa-bps-stack__replied { background: var(--bps-navy); }
.sa-bps-stack__new { background: #a9b4be; }
.sa-bps-stack__week { background: #e0a526; }
.sa-bps-stack__month { background: #c2410c; }
.sa-bps-alert { background: #fdede6; color: #7a2e0e; border-radius: 10px; padding: 12px 16px; }
.sa-bps-score__cap { font-size: 14px; margin: 8px 0 4px !important; padding: 8px 12px; }

.sa-bps-checklist { list-style: none; margin: 0 0 8px; padding: 0; }
.sa-bps-checklist li { display: flex; align-items: center; gap: 10px; padding: 6px 0; margin: 0; }
.sa-bps-checklist__label { flex: 1; min-width: 0; }
.sa-bps-checklist__end { color: var(--bps-muted); white-space: nowrap; }
.sa-bps-checklist .is-done .sa-bps-checklist__pts { color: #0e7c6f; font-weight: 500; } /* The tick's colour: these points are earned. */
.sa-bps-icon { width: 24px; height: 24px; flex: none; }
.sa-bps-icon--done { color: #0e7c6f; }
.sa-bps-icon--todo { color: #9aa3ab; }

/* Buttons and links */
/* The theme gives <button> its own margins and display; reset them inside the tab. */
.sa-bps button.sa-bps-btn, .sa-bps button.sa-bps-link, .sa-bps button.sa-bps-star { margin: 0; width: auto; float: none; }
.sa-bps button.sa-bps-link { display: inline; }
.sa-bps-btn { display: inline-block; border-radius: 8px; padding: 10px 20px; font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none !important; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.sa-bps-btn--primary { background: var(--bps-turq); color: var(--bps-heading) !important; border-color: var(--bps-turq); }
.sa-bps-btn--primary:hover, .sa-bps-btn--primary:focus { background: var(--bps-turq-hover); border-color: var(--bps-turq-hover); color: #fff !important; }
.sa-bps-btn--outline { background: #fff; color: var(--bps-link) !important; border-color: var(--bps-link); }
.sa-bps-btn--outline:hover, .sa-bps-btn--outline:focus { background: #eef5fb; }
.sa-bps-btn:disabled { opacity: .55; cursor: not-allowed; }
.sa-bps-btn:focus-visible, .sa-bps-link:focus-visible { outline: 3px solid var(--bps-link); outline-offset: 2px; }
.sa-bps-link { background: none; border: 0; padding: 0; color: var(--bps-link) !important; font-weight: 600; text-decoration: underline; cursor: pointer; font-size: inherit; }

/* Ways to raise */
.sa-bps-action { padding: 16px 0; border-top: 1px solid var(--bps-line); }
.sa-bps-action:first-of-type { border-top: 0; padding-top: 0; }
.sa-bps-action__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sa-bps-action__title { font-size: 17px; font-weight: 700; }
.sa-bps-action__gain { color: #0b6b5f; font-weight: 800; font-size: 20px; font-family: Roboto, Arial, sans-serif; white-space: nowrap; }
.sa-bps-action__ongoing { color: var(--bps-muted); font-size: 14px; white-space: nowrap; }
.sa-bps .sa-bps-action__aside { font-size: 14px; margin: 12px 0 0; } /* SA-859: "Not recruiting right now?" under the upgrade button. */
.sa-bps-action__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.sa-bps-combined { background: #e3f6f3; color: #0b5a50; font-weight: 700; border-radius: 10px; padding: 12px 16px; margin-top: 8px; }

/* Claim card */
.sa-bps-claim { background: var(--bps-navy); color: #e8edf2; border-radius: 14px; padding: 22px 24px; margin-bottom: 24px; }
.sa-bps-claim__title { color: #fff !important; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 10px !important; }
.sa-bps-claim .sa-bps-icon--days { color: var(--bps-turq); }
.sa-bps-claim__bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.16); overflow: hidden; margin: 6px 0 8px; }
.sa-bps-claim__bar span { display: block; height: 100%; background: var(--bps-turq); }
.sa-bps-claim__progress { font-size: 13px; color: #c3ccd5; }
.sa-bps-claim .sa-bps-error { color: #ffb4a8; }
.sa-bps-claim__done { color: #fff; font-weight: 600; }

/* Comments */
.sa-bps-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sa-bps-quote { background: #fff; border: 1px solid var(--bps-line); border-radius: 12px; padding: 18px 20px; margin: 0; font-size: 16px; }
.sa-bps-quote blockquote { margin: 0; padding: 0; border: 0; font-size: inherit; }
.sa-bps-quote__by { margin-top: 12px; color: var(--bps-muted); font-weight: 600; font-size: 15px; }

/* Agent tab */
.sa-bps-rated { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.sa-bps-rated .sa-bps-star__icon { width: 20px; height: 20px; fill: var(--bps-star); stroke: var(--bps-star); flex: none; }
.sa-bps-raise--plain { padding-top: 4px; margin-bottom: 24px; }
.sa-bps-raise--plain .sa-bps-action:first-of-type { padding-top: 0; }
.sa-bps .sa-bps-h2--tight { margin-bottom: 4px !important; }
.sa-bps-block .sa-bps-h2--tight + .sa-bps-muted { margin-bottom: 16px; }

/* Public "What is this?" page */
.sa-bps-page__head { margin-bottom: 28px; }
.sa-bps-page__head .sa-bps-intro { font-size: 18px; max-width: 780px; }
.sa-bps-page__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 24px; }
.sa-bps-parts { margin: 16px 0 0; }
.sa-bps-parts__row { padding: 12px 0; border-top: 1px solid var(--bps-line); }
.sa-bps-parts dt { display: flex; justify-content: space-between; gap: 12px; font-family: Roboto, Arial, sans-serif; font-weight: 700; color: var(--bps-heading); font-size: 17px; }
.sa-bps-parts__pts { color: var(--bps-muted); font-weight: 400; font-size: 14px; white-space: nowrap; }
.sa-bps-parts dd { margin: 4px 0 0; color: var(--bps-muted); }

/* Explainer */
.sa-bps-explainer summary { font-family: Roboto, Arial, sans-serif; font-size: 20px; font-weight: 700; color: var(--bps-heading); cursor: pointer; }
.sa-bps-explainer[open] summary { margin-bottom: 16px; }
.sa-bps-explainer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 40px; margin: 18px 0; }
.sa-bps-explainer__h { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 700; padding-bottom: 8px; margin-bottom: 10px !important; border-bottom: 1px solid var(--bps-line); }
.sa-bps-explainer__h span:last-child { color: var(--bps-muted); font-weight: 400; font-size: 14px; }
.sa-bps .sa-bps-table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 15px; } /* Beats the theme's 60px under My Account tables. */
.sa-bps-table td { padding: 7px 0; border-bottom: 1px solid var(--bps-line); }
.sa-bps-table td:last-child { text-align: right; font-weight: 700; }

/* Pop-ups (Bootstrap modals from the theme) */
.sa-bps-modal .modal-content { border-radius: 16px; border: 0; }
.sa-bps-modal .modal-body { padding: 32px; position: relative; color: var(--bps-text); }
.sa-bps-modal .btn-close { position: absolute; top: 20px; right: 20px; }
.sa-bps .sa-bps-modal__title { font-family: Roboto, Arial, sans-serif; font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--bps-heading); margin: 0 40px 12px 0; }
.sa-bps-modal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 18px; }
.sa-bps-pledge-list { list-style: none; margin: 18px 0; padding: 0; }
.sa-bps-pledge-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; font-size: 17px; }
.sa-bps-pledge-list .sa-bps-icon { color: #0e7c6f; margin-top: 1px; }
.sa-bps-confirm { display: flex; gap: 12px; align-items: flex-start; background: var(--bps-grey); border-radius: 10px; padding: 14px 16px; cursor: pointer; margin: 0; font-weight: 400; }
.sa-bps-confirm input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: #0e7c6f; }
.sa-bps-modal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 22px; }
.sa-bps-modal__foot .sa-bps-small { margin: 0; flex: 1 1 260px; }

/* ------------------------------------------------------------------ feedback forms */

/* Hidden from view, still read out and focusable. */
.sa-bps .sa-bps-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Bootstrap floats legends at full width with a large font; keep them as plain labels. */
/* :where() keeps the fieldset reset weaker than .sa-bps-row and .sa-bps-q below. */
:where(.sa-bps) fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sa-bps legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; }
.sa-bps legend + * { clear: left; }
.sa-bps-q { margin: 0 0 20px; }
.sa-bps .sa-bps-q__label { display: block; font-weight: 700; color: var(--bps-heading); margin: 0 0 10px; }
.sa-bps-q__text { display: block; margin: 0 0 10px; }
.sa-bps-hint { color: var(--bps-muted); font-size: 14px; margin: 8px 0 0; }
.sa-bps .sa-bps-textarea { display: block; width: 100%; min-height: 76px; margin: 0; border: 1px solid var(--bps-border); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--bps-text); background: #fff; resize: vertical; }
.sa-bps .sa-bps-textarea:focus { outline: 3px solid rgba(53, 121, 188, .3); outline-offset: 0; border-color: var(--bps-link); }

/* Stars: data-value (chosen) or data-hover (pointing) fills them up to that star. */
.sa-bps-starrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.sa-bps-stars { display: inline-flex; gap: 2px; }
.sa-bps .sa-bps-star { position: relative; display: inline-flex; margin: 0; padding: 3px; border: 0; border-radius: 6px; background: none; line-height: 0; color: #8b939b; cursor: pointer; box-shadow: none; }
.sa-bps-star__icon { width: 34px; height: 34px; fill: var(--bps-star-fill, none); stroke: currentColor; stroke-width: 1.5; transition: fill .1s, color .1s; }
.sa-bps-star:has(input:focus-visible), .sa-bps button.sa-bps-star:focus-visible { outline: 3px solid var(--bps-link); outline-offset: 1px; }
:is(.sa-bps-stars[data-value="1"]:not([data-hover]), [data-hover="1"]) > .sa-bps-star:nth-child(-n+1),
:is(.sa-bps-stars[data-value="2"]:not([data-hover]), [data-hover="2"]) > .sa-bps-star:nth-child(-n+2),
:is(.sa-bps-stars[data-value="3"]:not([data-hover]), [data-hover="3"]) > .sa-bps-star:nth-child(-n+3),
:is(.sa-bps-stars[data-value="4"]:not([data-hover]), [data-hover="4"]) > .sa-bps-star:nth-child(-n+4),
:is(.sa-bps-stars[data-value="5"]:not([data-hover]), [data-hover="5"]) > .sa-bps-star:nth-child(-n+5) { color: var(--bps-star); --bps-star-fill: var(--bps-star); }
.sa-bps-starrow__text { font-weight: 600; color: var(--bps-heading); }
.sa-bps-stars--static .sa-bps-star { cursor: default; padding: 1px; }
.sa-bps-stars--static .sa-bps-star__icon { width: 22px; height: 22px; }

/* Pill-shaped options (radio buttons and tick boxes). */
.sa-bps-opts { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.sa-bps .sa-bps-opt { position: relative; display: inline-flex; margin: 0; cursor: pointer; font-weight: 400; }
.sa-bps-opt > span { display: inline-block; min-width: 64px; text-align: center; border: 1px solid var(--bps-border); border-radius: 999px; padding: 7px 18px; background: #fff; color: var(--bps-text); line-height: 1.3; transition: background .1s, border-color .1s; }
.sa-bps-opt:hover > span { border-color: var(--bps-link); }
.sa-bps-opt input:checked + span { background: var(--bps-chosen); border-color: var(--bps-link); color: var(--bps-chosen-text); font-weight: 600; }
.sa-bps-opt input:focus-visible + span { outline: 3px solid var(--bps-link); outline-offset: 2px; }

/* A question and its options on one line, wrapping on narrow screens. */
.sa-bps-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--bps-panel-line); }
.sa-bps .sa-bps-row > legend { width: auto; flex: 1 1 280px; margin: 0; }
.sa-bps-row .sa-bps-opt > span { padding: 5px 14px; }
.sa-bps-row + .sa-bps-q { margin-top: 16px; }

/* Rating pop-up: one wording for low ratings, another for high ones. */
.sa-bps-rate:not(.is-low) [data-bps-low], .sa-bps-rate:not(.is-high) [data-bps-high] { display: none; }
.sa-bps-rate .sa-bps-modal__title + .sa-bps-muted { margin-bottom: 22px; }

/* Star strip at the bottom of an advert. */
.sa-bps-strip { background: #fff; border: 1px solid var(--bps-border); border-radius: 16px; padding: 28px 24px; text-align: center; }
.sa-bps .sa-bps-strip__title { font-size: 26px; font-weight: 500; margin-bottom: 8px; }
.sa-bps-strip > .sa-bps-muted { max-width: 600px; margin: 0 auto 14px; }
.sa-bps-strip__stars { display: inline-flex; gap: 8px; }
.sa-bps-strip__stars .sa-bps-star__icon { width: 40px; height: 40px; }
.sa-bps-strip__done { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.sa-bps-strip__text { margin: 0 !important; font-weight: 600; }
.sa-bps-strip .sa-bps-small { margin: 10px auto 0; max-width: 600px; }

/* SA-861: the team's comment box in place of the star strip. */
.sa-bps-team__form, .sa-bps-team__saved { max-width: 640px; margin: 0 auto; }
.sa-bps-team .sa-bps-textarea { text-align: left; }
.sa-bps-team .sa-bps-quote { text-align: left; white-space: pre-line; }
.sa-bps-team__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; margin: 14px 0 0 !important; }

/* The company's panel on an application card. */
.sa-bps-panel { background: var(--bps-panel); border: 1px solid var(--bps-panel-line); border-radius: 12px; padding: 18px 22px; margin: 16px 0; font-size: 15px; }
.sa-bps-step + .sa-bps-step { border-top: 1px solid var(--bps-panel-line); margin-top: 16px; padding-top: 16px; }
.sa-bps-step__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 12px; }
.sa-bps .sa-bps-step__title { font-size: 18px; font-weight: 600; }
.sa-bps-step__note { color: var(--bps-muted); font-size: 13px; margin: 0 !important; }
/* Step 1: the stars with Save beside them (under them on narrow cards). */
.sa-bps-step__inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
.sa-bps-step__inline .sa-bps-q { margin: 0; }
.sa-bps-step__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 14px; }
.sa-bps-step__foot .sa-bps-hint { margin: 0; }
/* The folded lines: "Application rated 4/5 · Change", "Feedback given · Edit", and the "Give feedback on" button. */
.sa-bps-step__summary { margin: 0 !important; }
.sa-bps-step__summary:focus { outline: none; }
.sa-bps-step__summary:focus-visible { outline: 3px solid var(--bps-link); outline-offset: 4px; border-radius: 4px; }
.sa-bps-sep { color: var(--bps-muted); margin: 0 4px; }
.sa-bps-step__opener { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 !important; }
.sa-bps-step__opener .sa-bps-hint { margin: 0; }
.sa-bps-panel > .sa-bps-error { margin: 0 0 10px; }

/* "Give feedback" in My Applications. */
.sa-bps-af { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; }
.sa-bps .sa-bps-btn--small { padding: 6px 14px; font-size: 14px; border-width: 1px; }
.sa-bps-af__done { color: #0b5a50; font-size: 14px; font-weight: 600; }

@media (max-width: 575px) {
	.sa-bps-card { padding: 18px; }
	.sa-bps-modal .modal-body { padding: 24px 18px; }
	.sa-bps .sa-bps-modal__title { font-size: 24px !important; }
	.sa-bps-share { text-align: left; flex-basis: 100%; }
	.sa-bps-panel { padding: 16px; }
	.sa-bps-strip { padding: 22px 16px; }
	.sa-bps-strip__stars { gap: 2px; }
}

/* SA-857: next to the reject-without-viewing link on the limited application card (outside .sa-bps). */
.sa-bps-reject-note { color: #5b6470; font-size: 13px; margin: 6px 0 0 !important; }
