/*
 * This file contains overrides to Bootstrap styles.
 *
 * Each override must be justified and explained with a comment.
 */

/* set CircularXX as the basic sans serif font */
@font-face { font-weight: 300; font-family: 'CircularXX-Web'; src: url("/fonts/66ba0780bf98e604403abbdf_CircularXX-Light.otf") format('opentype') }
@font-face { font-weight: 400; font-family: 'CircularXX-Web'; src: url("/fonts/66ba0780eca7497b7d257132_CircularXX-Book.otf") format('opentype') }
@font-face { font-weight: 500; font-family: 'CircularXX-Web'; src: url("/fonts/66ba078013f514e188adb1f6_CircularXX-Medium.otf") format('opentype') }
@font-face { font-weight: 700; font-family: 'CircularXX-Web'; src: url("/fonts/66ba0780f9939310fc9f102b_CircularXX-Bold.otf") format('opentype') }
:root {--bs-font-sans-serif: 'CircularXX-Web'}

/* reduce space between title and subtitle */
hgroup p { margin-bottom: 0.5rem }

/* remove new lines after the last paragraph of a bubble to keep more aligned with the bubble */
.bg-gradient p:last-child { margin-bottom: 0 }

/* Fixes bugs in Bootstrap 6.0@alpha1 where --bs-gap is undefined */
:root {--bs-gap: 1rem}
.check { min-width: var(--bs-gap)}

/* Ensures multi-select enhanced with Tom Select keep the same style as Bootstrap for fields */
.ts-wrapper.plugin-remove_button .item { background: var(--bs-primary-bg-subtle); padding-left: 0.5rem; padding-right: 0.5rem; margin-right: 1rem }
.ts-wrapper input, .ts-wrapper input:focus { border: none; outline: none; background-color: var(--bs-control-bg) }

/* Checkbox-select: layout wrap as a flex row so tags and input sit inline */
.checkbox-select-wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-right: 2rem }
.checkbox-select-input { border: none; outline: none; flex: 1; min-width: 6rem; background: transparent }
.checkbox-select-clear { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); border: none; background: none; font-size: 1.25rem; cursor: pointer; color: var(--bs-secondary) }
/* Checkbox-select: tag pills styled like TomSelect items */
.checkbox-select-tag { background: var(--bs-primary-bg-subtle); padding: 0.15rem 0.5rem; border-radius: 0.25rem; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; margin: 0.1rem 0.15rem }
.checkbox-select-tag button { border: none; background: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0; color: var(--bs-secondary) }
/* Checkbox-select: dropdown menu and items */
.checkbox-select-menu { max-height: 15rem; overflow-y: auto; width: 100% }
.checkbox-select-item { cursor: pointer; display: flex; align-items: center; gap: 0.5rem }

/* CRM page (provider portal): styles below cover the integration cards and the value-prop
 * callout. They use hard-coded hex values because this project's Bootstrap build does not
 * ship --bs-primary, --bs-success-subtle, --bs-dark, etc. */

/* Value-prop callout above the connection card (light blue tint with a dark navy bolt tile). */
.crm-callout { background: #e7f0ff }
.crm-callout-row { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 1rem }
.crm-callout-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: #1f2a44; color: #60a5fa; display: inline-flex; align-items: center; justify-content: center }

/* Connected integration card: forced flex row because the project's Bootstrap build doesn't
 * apply .d-flex utilities reliably on .card-body. */
.crm-card-body { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 1rem }
/* Allow the text column inside the card row to shrink past its intrinsic width so flexbox
 * truncation works (otherwise long franchise names push the Active pill off the card). */
.crm-card-text { min-width: 0 }

/* "Active" / "Connected" pill (green-on-green). Hard-coded because bg-success-subtle doesn't
 * resolve in this project's Bootstrap build. */
.crm-pill-success { background: #dcfce7; color: #16a34a }
.crm-pill-success .crm-pill-dot { color: #16a34a }

