/*
 * 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'}

/* Hide "See more" after it's been clicked on */
[data-bs-toggle="collapse"][aria-expanded="true"] { visibility: hidden }

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

/* only display the textarea under the "Other" radio button when the button is checked */
label:has(input[type=radio]) textarea { display: none !important; }
label:has(input[type=radio]:checked) textarea { display: block !important; }

/* 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 }
