/*
Theme Name: Cowboy Bail Bonds Portal
Description: Portal-only theme for portal.cowboybail.com. Owned by RazorVision.
Author: RazorVision
Author URI: https://www.razorvision.net/
Version: 0.2.0
Requires at least: 6.3
Requires PHP: 8.4
License: Proprietary
Text Domain: cowboybail-portal
*/

/* The brand font, served from this theme (no request to Google). One variable
   file covers weights 400 to 700. Latin characters only, which includes the
   accented letters Spanish names need; anything else falls back to the system
   font. It is also preloaded in the page head (functions.php), so keep the
   file name in step with that. */
@font-face {
	font-family: "Google Sans Flex";
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url("assets/fonts/google-sans-flex-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens taken from the Skyline React site (cowboy-bail-2026.vercel.app). */
:root {
	--r: 16px; /* the marketing site's rem: 16px, then 1vw from 1400px up (see the header section) */
	--cb-night: #0a192f;
	--cb-ink: #131e2e;
	--cb-navy-dark: #14253f;
	--cb-navy: #1b3357;
	--cb-blue: #33527d;
	--cb-blue-light: #4a6fa5;
	--cb-blue-lighter: #c9d4e2;
	--cb-silver: #dce3eb;
	--cb-cream: #eef0f3;
	--cb-page: #eef0f3; /* the page background; --cb-cream is for tinted surfaces on top of it */
	--cb-white: #fff;
	--cb-gray-500: #6a7282;
	--cb-gray-700: #364153;
	--cb-line: #e5e7eb;
	--cb-error: #fb2c36;
	--cb-error-text: #c10007; /* the darker red for small text on white (4.5:1) */
	--cb-warning: #e17100;
	--cb-success: #00a63e;
	--cb-font: "Google Sans Flex", system-ui, sans-serif;
}

@media (min-width: 1400px) {
	:root { --r: 1vw; }
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--cb-font);
	color: var(--cb-ink);
	background: var(--cb-page);
	line-height: 1.5;
}


/* ==========================================================================
   Header. Matches the marketing site's header (cowboy-bail-2026).
   Sizes use --r, that site's rem: 16px up to 1399px, then 1vw (14px at 1400, 14.4px at 1440).
   Breakpoints: 768 (wider gutters, bigger logo), 992 (utility bar), 1200 (bigger
   logo), 1250 (full menu instead of the drawer; the marketing site switches at
   1200, but its buttons run off the page until about 1249), 1400 (fluid scale,
   wider gaps and buttons).
   ========================================================================== */
.cb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	font-size: var(--r);
	line-height: 1.625;
	color: var(--cb-white);
}
@media (min-width: 992px) {
	/* With the utility bar on, it scrolls away and the main bar stays. The
	   offset is the bar's height: a 1.5r language box, .625r padding above and
	   below, and a 1px border. */
	.cb-header--topbar { top: calc(-1 * (var(--r) * 2.75 + 1px)); }
}
.cb-header a, .cb-header button { font-family: inherit; }
.cb-header button { padding: 0; border: 0; background: none; cursor: pointer; }
.cb-header ul { list-style: none; margin: 0; padding: 0; }
.cb-header a:focus-visible, .cb-header button:focus-visible { outline: 2px solid var(--cb-blue-lighter); outline-offset: 2px; }
.cb-drawer a:focus-visible, .cb-drawer button:focus-visible, .cb-submenu a:focus-visible { outline-color: var(--cb-blue); }

.cb-wrap, .cb-container, #top .container { width: 100%; max-width: calc(100% - var(--r) * 3); margin-inline: auto; }
@media (min-width: 768px) { .cb-wrap, .cb-container, #top .container { max-width: calc(100% - var(--r) * 6); } }
@media (min-width: 992px) { .cb-wrap, .cb-container, #top .container { max-width: calc(100% - var(--r) * 8); } }

/* Utility bar (992px and up): two squares on the left and a centered message. Content: see header.php. */
.cb-topbar { display: none; background: var(--cb-night); border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 992px) { .cb-topbar { display: block; } }
.cb-topbar__inner { display: flex; align-items: center; gap: calc(var(--r) * 1.5); padding-block: calc(var(--r) * .625); }
.cb-topbar__msg {
	flex: 1; margin: 0; text-align: center; text-transform: uppercase;
	font-size: calc(var(--r) * .875); line-height: 1.4286; color: var(--cb-blue-lighter);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 1200px) { .cb-topbar__msg { overflow: visible; text-overflow: clip; white-space: normal; } }
/* Outside production: which copy of the portal this is (header.php). */
.cb-topbar__env {
	flex: none; padding: calc(var(--r) * .125) calc(var(--r) * .625); border-radius: 9999px;
	font-size: calc(var(--r) * .75); font-weight: 600; line-height: 1.5; letter-spacing: .03em; text-transform: uppercase; color: var(--cb-white);
}
.cb-topbar__env--sandbox { background: var(--cb-warning); }
.cb-topbar__env--local { background: var(--cb-success); }

.cb-lang, .cb-topbar__tools { display: flex; gap: calc(var(--r) * .25); }
.cb-lang a, .cb-topbar__tools a, .cb-topbar__badge {
	display: flex; align-items: center; justify-content: center;
	width: calc(var(--r) * 1.5); height: calc(var(--r) * 1.5);
	font-size: calc(var(--r) * .7); font-weight: 400; line-height: 1; text-transform: uppercase; text-decoration: none;
	border: 1px solid rgba(255, 255, 255, .3); color: var(--cb-blue-lighter);
	transition: color .2s, background-color .2s, border-color .2s;
}
.cb-lang a:hover, .cb-topbar__tools a:hover { border-color: var(--cb-white); color: var(--cb-white); }
.cb-lang a[aria-current], .cb-topbar__badge { border: 0; background: var(--cb-white); color: var(--cb-navy-dark); }
.cb-topbar__tools svg { width: calc(var(--r) * .875); height: calc(var(--r) * .875); }
.cb-lang--light a { border-color: var(--cb-line); color: var(--cb-gray-500); }
.cb-lang--light a:hover { border-color: var(--cb-navy-dark); color: var(--cb-navy-dark); }
.cb-lang--light a[aria-current] { background: var(--cb-navy-dark); color: var(--cb-white); }

/* Main bar: logo, menu, buttons. */
.cb-bar { background: var(--cb-night); }
.cb-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--r); padding-block: calc(var(--r) * .75); }
@media (min-width: 992px) { .cb-bar__inner { padding-block: calc(var(--r) * 1.25); } }

.cb-brand { flex-shrink: 0; display: block; line-height: 0; }
.cb-brand img { display: block; width: calc(var(--r) * 9); height: auto; }
@media (min-width: 768px) { .cb-brand img { width: calc(var(--r) * 10); } }
@media (min-width: 992px) { .cb-brand img { width: calc(var(--r) * 11.5); } }
@media (min-width: 1200px) { .cb-brand img { width: calc(var(--r) * 13.5); } }

.cb-nav { display: none; align-items: center; gap: calc(var(--r) * 1.25); }
@media (min-width: 1250px) { .cb-nav { display: flex; } }
@media (min-width: 1400px) { .cb-nav { gap: calc(var(--r) * 2.5); } }
.cb-nav__link, .cb-footer__link {
	display: inline; width: fit-content; color: var(--cb-white); font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer;
	background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 .05em;
	transition: background-size .3s cubic-bezier(.4, 0, .2, 1);
}
.cb-nav__link:hover, .cb-nav__link:focus-visible, .cb-footer__link:hover, .cb-footer__link:focus-visible { background-size: 100% .05em; }
/* the footer's column links are regular weight */
.cb-footer__link { font-weight: 400; }

.cb-nav__item--menu { position: relative; }
.cb-nav__row { display: flex; align-items: center; gap: calc(var(--r) * .375); }
.cb-nav__toggle { display: flex; align-items: center; color: var(--cb-white); }
.cb-chevron { width: var(--r); height: var(--r); transition: transform .2s; }
.cb-submenu {
	position: absolute; z-index: 50; left: 0; top: 100%; padding-top: calc(var(--r) * .75);
	opacity: 0; pointer-events: none; transition: opacity .2s;
}
.cb-submenu ul {
	width: max-content; min-width: calc(var(--r) * 12); overflow: hidden;
	border-radius: calc(var(--r) * .5); background: var(--cb-white);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}
.cb-submenu li + li { border-top: 1px solid var(--cb-line); }
.cb-submenu a {
	display: block; padding: calc(var(--r) * .75) calc(var(--r) * 1.25);
	font-size: calc(var(--r) * .875); line-height: 1.4286; font-weight: 600; white-space: nowrap; text-decoration: none;
	color: var(--cb-blue); transition: background-color .2s;
}
.cb-submenu a:hover, .cb-submenu a:focus-visible { background: var(--cb-cream); }
.cb-nav__item--menu:hover .cb-submenu, .cb-nav__item--menu:focus-within .cb-submenu, .cb-nav__item--menu.is-open .cb-submenu { opacity: 1; pointer-events: auto; }
.cb-nav__item--menu:hover .cb-chevron, .cb-nav__item--menu.is-open .cb-chevron { transform: rotate(180deg); }

/* Buttons. */
.cb-cta { display: none; align-items: center; gap: calc(var(--r) * .625); flex-shrink: 0; }
@media (min-width: 1250px) { .cb-cta { display: flex; } }
@media (min-width: 1400px) { .cb-cta { gap: calc(var(--r) * .75); } }
.cb-btn {
	display: inline-flex; align-items: center; justify-content: center; height: calc(var(--r) * 3.125);
	padding-inline: calc(var(--r) * 1.5); border-radius: 9999px;
	font-size: calc(var(--r) * .875); line-height: 1.4286; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; text-decoration: none;
	transition: color .2s, background-color .2s, border-color .2s;
}
@media (min-width: 1400px) { .cb-cta .cb-btn { padding-inline: calc(var(--r) * 2); } }
.cb-btn--outline { border: 1px solid rgba(255, 255, 255, .4); color: var(--cb-white); }
.cb-btn--outline:hover { background: var(--cb-white); color: var(--cb-navy-dark); }
.cb-btn--silver { background: var(--cb-silver); color: var(--cb-navy-dark); box-shadow: 0 0 calc(var(--r) * .75) 0 #dce4ee4d; }
.cb-btn--silver:hover { background: var(--cb-white); }
.cb-btn--navy { background: var(--cb-navy-dark); color: var(--cb-white); padding-inline: var(--r); }
.cb-btn--navy:hover { background: var(--cb-blue); }
.cb-btn--cream { background: var(--cb-cream); color: var(--cb-navy-dark); padding-inline: var(--r); }
.cb-btn--cream:hover { background: var(--cb-blue); color: var(--cb-white); }

/* Menu button (below 1250px). */
.cb-burger {
	display: flex; flex-direction: column; justify-content: center; gap: calc(var(--r) * .375);
	width: calc(var(--r) * 1.875); min-height: 44px; flex-shrink: 0;
}
.cb-burger span { display: block; width: 100%; height: 2px; background: var(--cb-white); }
@media (min-width: 1250px) { .cb-burger { display: none; } }

/* Drawer (below 1250px). */
.cb-backdrop {
	position: fixed; inset: 0; z-index: 60; background: rgba(10, 25, 47, .5);
	opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.cb-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.cb-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column;
	width: calc(var(--r) * 35); max-width: 100%; background: var(--cb-white); color: var(--cb-ink);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
	transform: translateX(100%); visibility: hidden; transition: transform .3s ease-out, visibility 0s .3s;
}
.cb-drawer.is-open { transform: none; visibility: visible; transition: transform .3s ease-out; }
@media (min-width: 1250px) { .cb-drawer, .cb-backdrop { display: none; } }
html.cb-menu-open { overflow: hidden; }

.cb-drawer__head {
	display: flex; align-items: center; justify-content: space-between; gap: var(--r);
	padding: var(--r) calc(var(--r) * 1.25); border-bottom: 1px solid var(--cb-line);
}
.cb-drawer .cb-brand img { width: calc(var(--r) * 8); }
.cb-drawer__tools { display: flex; align-items: center; gap: calc(var(--r) * .75); }
.cb-drawer__close {
	display: flex; align-items: center; justify-content: flex-end; width: calc(var(--r) * 2.25); height: calc(var(--r) * 2.25);
	color: var(--cb-navy-dark);
}
.cb-drawer__close svg { width: calc(var(--r) * 1.25); height: calc(var(--r) * 1.25); }
.cb-drawer__nav { flex: 1; overflow-y: auto; }
.cb-drawer__nav > ul > li + li { border-top: 1px solid var(--cb-line); }
.cb-drawer__row { display: flex; align-items: center; }
.cb-drawer__row a {
	display: flex; flex: 1; align-items: center; padding: var(--r) calc(var(--r) * 1.25);
	color: var(--cb-blue); font-weight: 600; text-decoration: none; transition: background-color .2s;
}
.cb-drawer__toggle {
	display: flex; align-items: center; justify-content: center; align-self: stretch; width: calc(var(--r) * 3.5);
	color: var(--cb-blue); transition: background-color .2s;
}
.cb-drawer__toggle .cb-chevron { width: calc(var(--r) * 1.25); height: calc(var(--r) * 1.25); }
.cb-drawer__toggle[aria-expanded="true"] .cb-chevron { transform: rotate(180deg); }
.cb-drawer__row a:hover, .cb-drawer__toggle:hover, .cb-drawer__sub a:hover { background: #f3f4f6; }
.cb-drawer__sub { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s, visibility 0s .3s; }
.cb-drawer__sub.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s; }
.cb-drawer__sub ul { min-height: 0; overflow: hidden; background: var(--cb-cream); }
.cb-drawer__sub a {
	display: flex; align-items: center; padding: calc(var(--r) * .75) calc(var(--r) * 1.25) calc(var(--r) * .75) calc(var(--r) * 2.25);
	font-size: calc(var(--r) * .875); color: var(--cb-blue); text-decoration: none; transition: background-color .2s;
}
.cb-drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: calc(var(--r) * 1.25); padding: calc(var(--r) * 1.25); border-top: 1px solid var(--cb-line); }
.cb-drawer__buttons { display: flex; flex-direction: column; gap: calc(var(--r) * .625); }
@media (min-width: 480px) {
	.cb-drawer__buttons { flex-direction: row; gap: calc(var(--r) * .25); }
	.cb-drawer__buttons .cb-btn { flex: 1; }
}
.cb-social { display: flex; align-items: center; justify-content: center; gap: calc(var(--r) * 1.5); margin-top: calc(var(--r) * .5); }
.cb-social a { display: flex; color: var(--cb-blue); transition: color .2s; }
.cb-social a:hover { color: var(--cb-navy-dark); }
.cb-social svg { width: var(--r); height: var(--r); }

@media (prefers-reduced-motion: reduce) {
	.cb-header *, .cb-header *::before, .cb-header *::after { transition-duration: .01ms !important; }
}

.cb-main { padding-block: 0 2rem; min-height: 60vh; }
.cb-main > .cb-container { padding-top: 2rem; }
.cb-main:focus { outline: none; }

/* Hidden from sight, still read by screen readers (headings the design does not show). */
.screen-reader-text, .sr-only {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Skip link: first thing a keyboard user tabs to. */
.cb-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1.25rem; border-radius: .5rem; background: var(--cb-white); color: var(--cb-navy-dark); font-weight: 600; text-decoration: none; }
.cb-skip:focus { top: 1rem; outline: 2px solid var(--cb-blue); outline-offset: 2px; }

/* 404 page */
.cb-notfound p:last-child { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.5rem; }

/* Homepage: the lead form in a column of a readable width, help beside it. */
.cb-lead { display: grid; gap: 2rem; }
.cb-lead__aside { padding: calc(var(--r) * 1.5); border-radius: calc(var(--r) * .5); background: var(--cb-white); }
.cb-lead__aside p { margin: 0 0 var(--r); }
@media (min-width: 992px) {
	.cb-lead { grid-template-columns: minmax(0, 40rem) minmax(0, 22rem); gap: calc(var(--r) * 4); align-items: start; }
}

/* Gravity Forms shows the form from a script a moment after the page first
   paints; until then the form is 0px tall. On any page with a form, keep the
   footer below the first screen so it is not on display when the form appears
   and pushes it down (this was a 0.14 layout shift on the homepage). */
.cb-main:has(.gform_wrapper) { min-height: 100svh; }

/* Reserve the reCAPTCHA box's height (304x78) so the fields below it do not jump when it loads. */
.gform_wrapper .ginput_container.ginput_recaptcha { min-height: 78px; }

/* ==========================================================================
   Footer (footer.php). Matches the marketing site's footer: the logo and
   tagline, the link columns and a call box; a line; contact, phone, hours and
   offices; a line; the copyright, legal links and social links.
   ========================================================================== */
.cb-footer { padding-block: calc(var(--r) * 2); background: var(--cb-night); color: rgba(255, 255, 255, .8); line-height: 1.625; }
@media (min-width: 768px) { .cb-footer { padding-block: calc(var(--r) * 3.5); } }
@media (min-width: 1280px) { .cb-footer { padding-block: calc(var(--r) * 4); } }
.cb-footer ul { list-style: none; margin: 0; padding: 0; }
.cb-footer p { margin: 0; }
.cb-footer a { color: var(--cb-white); text-decoration: none; }
.cb-footer a:focus-visible { outline: 2px solid var(--cb-blue-lighter); outline-offset: 2px; }

.cb-footer__top { display: flex; flex-direction: column; justify-content: space-between; gap: calc(var(--r) * 1.5); }
@media (min-width: 640px) { .cb-footer__top { flex-direction: row; } }
@media (max-width: 767px) { .cb-footer__top { flex-wrap: wrap; } }
.cb-footer__brand { display: flex; flex-direction: column; align-items: center; gap: var(--r); }
@media (max-width: 767px) { .cb-footer__brand { width: 100%; margin-bottom: var(--r); } }
@media (min-width: 768px) { .cb-footer__brand { align-items: flex-start; } }
.cb-footer__brand img { display: block; width: calc(var(--r) * 10); height: auto; }
@media (min-width: 640px) { .cb-footer__brand img { width: calc(var(--r) * 12.5); } }
@media (min-width: 1280px) { .cb-footer__brand img { width: calc(var(--r) * 15); } }
.cb-footer__brand p { max-width: calc(var(--r) * 14); color: var(--cb-blue-lighter); font-size: calc(var(--r) * .875); line-height: 1.4286; text-align: center; }
@media (min-width: 768px) { .cb-footer__brand p { text-align: left; } }

.cb-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--r) * 2.5); }
@media (min-width: 640px) { .cb-footer__nav { display: flex; } }
@media (min-width: 1024px) { .cb-footer__nav { gap: calc(var(--r) * 3.5); } }
@media (min-width: 1280px) { .cb-footer__nav { gap: calc(var(--r) * 7.5); } }

.cb-footer .cb-footer__call {
	display: flex; flex-direction: column; align-items: center; height: fit-content; padding: var(--r) calc(var(--r) * 1.5);
	border-radius: calc(var(--r) * .375); background: var(--cb-navy-dark); color: var(--cb-silver); transition: background-color .2s;
}
@media (min-width: 640px) { .cb-footer .cb-footer__call { align-items: flex-end; justify-content: center; text-align: right; } }
@media (min-width: 1280px) { .cb-footer .cb-footer__call { padding-inline: calc(var(--r) * 2); } }
.cb-footer .cb-footer__call:hover { background: var(--cb-blue); }
.cb-footer__call-title { color: var(--cb-white); font-size: calc(var(--r) * 1.125); line-height: 1.5556; font-weight: 700; }
@media (min-width: 1280px) { .cb-footer__call-title { font-size: calc(var(--r) * 1.25); line-height: 1.4; } }

/* The two lines are the borders of the info row */
.cb-footer__info {
	display: grid; gap: calc(var(--r) * 2); margin-top: calc(var(--r) * 2); padding-block: calc(var(--r) * 1.5);
	border-block: 1px solid var(--cb-blue);
}
@media (min-width: 640px) { .cb-footer__info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .cb-footer__info { margin-top: calc(var(--r) * 3); } }
@media (min-width: 1024px) { .cb-footer__info { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cb-footer__block { display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--r) * .5); }
.cb-footer__label { color: var(--cb-silver); font-size: calc(var(--r) * .875); line-height: 1.4286; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; }
.cb-footer__label--gap { margin-top: calc(var(--r) * .75); }
.cb-footer address { font-style: normal; }
.cb-footer address span { display: block; }
.cb-footer__name { color: var(--cb-white); }
.cb-footer a.cb-footer__muted { color: var(--cb-silver); }
.cb-footer__block a { overflow-wrap: anywhere; }

.cb-footer__bottom { display: flex; flex-direction: column-reverse; justify-content: space-between; gap: calc(var(--r) * 1.5); margin-top: calc(var(--r) * 1.5); }
@media (min-width: 768px) { .cb-footer__bottom { flex-direction: row; align-items: center; } }
.cb-footer__copy { color: rgba(255, 255, 255, .5); font-size: calc(var(--r) * .75); line-height: 1.3333; }
.cb-footer__end, .cb-footer__legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: calc(var(--r) * 1.5); row-gap: calc(var(--r) * .75); }
.cb-footer__legal { row-gap: calc(var(--r) * .5); }
.cb-footer .cb-footer__legal a { color: rgba(255, 255, 255, .7); font-size: calc(var(--r) * .75); line-height: 1.3333; }
.cb-footer .cb-social { margin: 0; gap: var(--r); }
.cb-footer .cb-social a:hover { color: var(--cb-blue-lighter); }
.cb-footer .cb-social svg { width: calc(var(--r) * 1.3125); height: calc(var(--r) * 1.3125); }

/* ==========================================================================
   Page title banner (template-parts/page-title.php). Matches the title section
   on the marketing site's inner pages: gradient, breadcrumb, title, skyline.
   ========================================================================== */
.cb-title {
	position: relative; overflow: clip; color: var(--cb-white);
	background: linear-gradient(95deg, var(--cb-night), var(--cb-blue));
	background: linear-gradient(95deg in oklab, var(--cb-night), var(--cb-blue));
}
.cb-title__inner { position: relative; z-index: 2; padding-block: calc(var(--r) * 2.5); }
@media (min-width: 992px) {
	.cb-title__inner { padding-block: calc(var(--r) * 3.5); }
	.cb-title__text { max-width: 83.3333%; }
}

.cb-crumbs { margin-bottom: calc(var(--r) * .75); }
@media (min-width: 992px) { .cb-crumbs { margin-bottom: var(--r); } }
.cb-crumbs ol {
	display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--r) * .375); margin: 0; padding: 0; list-style: none;
	font-size: calc(var(--r) * .75); line-height: var(--r); color: rgba(255, 255, 255, .7);
}
.cb-crumbs li { display: flex; align-items: center; gap: calc(var(--r) * .375); }
.cb-crumbs__sep { width: calc(var(--r) * .75); height: calc(var(--r) * .75); color: rgba(255, 255, 255, .4); }
.cb-crumbs [aria-current] { color: var(--cb-white); font-weight: 600; }

.cb-title__intro { margin: var(--r) 0 0; max-width: 40rem; color: var(--cb-blue-lighter); font-size: calc(var(--r) * .875); line-height: 1.625; }
@media (min-width: 992px) { .cb-title__intro { margin-top: calc(var(--r) * 1.5); font-size: var(--r); max-width: min(30rem, calc(38vw - 6rem)); } }

.cb-title__heading {
	margin: 0; color: var(--cb-white); font-size: calc(var(--r) * 1.5); line-height: calc(var(--r) * 2); font-weight: 600; letter-spacing: -.025em;
	text-box: trim-both cap alphabetic;
}
@media (min-width: 640px) { .cb-title__heading { font-size: calc(var(--r) * 1.875); line-height: calc(var(--r) * 2.25); } }
@media (min-width: 992px) { .cb-title__heading { font-size: calc(var(--r) * 2.25); line-height: calc(var(--r) * 2.5); } }

/* The skyline sits behind the text, anchored top right, wider on small screens. */
.cb-title__sky {
	position: absolute; top: 0; right: 0; z-index: 0; width: 130%; aspect-ratio: 3587.6 / 661.2; pointer-events: none;
	background: url("assets/images/skyline.svg") no-repeat top right / 100% auto;
}
@media (min-width: 640px) { .cb-title__sky { width: 95%; } }
@media (min-width: 992px) { .cb-title__sky { width: 62%; } }
/* With an intro paragraph the banner is taller than the drawing: bottom-align the skyline.
   Below 1200px the text would run across it, so it moves under the text instead. */
.cb-title--intro .cb-title__sky { top: auto; bottom: 0; }
@media (max-width: 1199.98px) {
	.cb-title--intro .cb-title__inner { padding-bottom: calc(var(--r) * 1.5); }
	.cb-title--intro .cb-title__intro { max-width: 40rem; }
	.cb-title--intro .cb-title__sky { position: relative; width: 100%; }
}

/* ==========================================================================
   Portal pages. The page templates (page-*.php) were ported from the old
   theme with their markup unchanged, because the portal scripts and Gravity
   Forms bind to its IDs and classes. That markup was styled by the old site's
   stylesheet (Bootstrap-style grid, its own fonts), which this theme does not
   have, and the plugin's stylesheet still expects the old fixed header. These
   rules style the same markup with this theme's design tokens.
   ========================================================================== */

/* The plugin (cowboy-sales-portal/css/style.css) sets the old site's fonts on
   `.portal-pages h1/h2/h3/p/div` (the p and div ones !important); the brand font
   replaces them. If a plugin update changes those rules, this is what to check.
   Every descendant, not just the elements the plugin restyles: buttons, links,
   labels and form fields would otherwise fall back to the browser's own font. */
section#top.portal-pages, section#top.portal-pages * { font-family: var(--cb-font) !important; }

#top { padding-block: 2rem 3rem; }

/* The old grid. Columns become left-aligned blocks of a readable width. */
#top .row { display: block; }
#top .col-lg-6, #top .col-lg-8, #top .col-lg-12 { width: 100%; margin-inline: 0; }
#top .col-lg-6 { max-width: 36rem; }
#top .col-lg-8 { max-width: 44rem; }
#top .col-lg-12 { max-width: 60rem; }
/* Left aligned, like the marketing site. The plugin centers some of these and
   some inline styles in the templates do too, hence the !important. */
html body #top .center, html body #top .center-container-desktop, html body #top .center-container-mobile,
html body #top .bond-premium-container, html body #top .bond-amount-title, html body #top .bond-amount-value,
html body #top .id-title { text-align: left !important; justify-content: flex-start !important; }
#top .content-area > #grant, #top .front-id-card, #top .back-id-card { margin-inline: 0 !important; }

/* Notices: one look for every message box (payment results, the missing contract and the
   signing instructions, the check-in boxes, Gravity Forms' error summary). A white card like
   the example cards, a status bar on the left (blue instruction by default, red error, amber
   warning, green success), a semibold title and gray text. The plugin and Gravity Forms style
   some of these with ids; the body/#top prefixes outrank those. No display: the scripts
   show and hide these boxes with inline styles or the hidden attribute. */
#top .cb-notice, #top .payment-result, body #camera-instructions, body #photo-accepted, body #geo-status.confirmed, body .gform_wrapper .gform_validation_errors {
	box-sizing: border-box; max-width: 32rem; margin: var(--r) 0; padding: var(--r) calc(var(--r) * 1.25);
	border: 1px solid var(--cb-line); border-left: 4px solid var(--cb-notice, var(--cb-blue)); border-radius: calc(var(--r) * .75);
	background: var(--cb-white); box-shadow: none; color: var(--cb-gray-700);
	font-size: calc(var(--r) * .875); line-height: 1.5714; text-align: left;
}
.cb-notice--error, .payment-result.pr-error, .gform_validation_errors { --cb-notice: var(--cb-error); }
.payment-result.pr-warning { --cb-notice: var(--cb-warning); }
.payment-result.pr-success, #photo-accepted, #geo-status.confirmed { --cb-notice: var(--cb-success); }
#top .cb-notice p, #top .payment-result p { margin: 0 0 calc(var(--r) * .5); }
#top .cb-notice p:last-child, #top .payment-result p:last-child { margin-bottom: 0; }
#top .cb-notice .cb-notice__title, #top .payment-result h2, body #camera-instructions > p:first-child,
#top .gform_validation_errors .gform_submission_error, body .gform_wrapper .gform_validation_errors .gform_submission_error {
	margin: 0 0 calc(var(--r) * .25); color: var(--cb-ink); font: 600 var(--r) / 1.5 var(--cb-font); letter-spacing: -.01em; text-align: left;
}
/* #top beats the portal's `#top h2`; the body version covers the homepage form, which has no #top */
#top .gform_validation_errors .gform_submission_error, body .gform_wrapper .gform_validation_errors .gform_submission_error { margin: 0; }
#top .payment-result strong { color: var(--cb-ink); }
#top #payment-retry { display: inline-block; margin-top: calc(var(--r) * .75); }
/* the one-line success messages read as a title */
body #photo-accepted, body #geo-status.confirmed { color: var(--cb-ink); }
/* The red bar marks the error, so Gravity Forms' own circled icon goes. The box is focused on load
   (so screen readers announce it); the outline and border colour that focus draws doubled the border. */
body .gform_wrapper .gform_validation_errors .gform-icon { display: none !important; }
body .gform_wrapper .gform_validation_errors:focus { outline: none !important; border-color: var(--cb-line); border-left-color: var(--cb-error); }
/* the message under each invalid field: red text, without Gravity Forms' box */
body .gform_wrapper .gfield_validation_message, body .gform_wrapper .validation_message {
	margin-top: calc(var(--r) * .375) !important; padding: 0 !important; border: 0 !important; background: none !important;
	color: var(--cb-error-text) !important; font-size: calc(var(--r) * .8125) !important; font-weight: 500; line-height: 1.5;
}

/* Step heading on the ID and selfie pages: the marketing site's section heading (a small
   uppercase label over a semibold blue title), then the instruction in its body gray.
   The ", " before the name appears only once the script has filled the name in. */
#top .cb-step { padding-block: var(--r) calc(var(--r) * .5); }
#top .cb-step__eyebrow { margin: 0; }
#top .cb-step__eyebrow, body .example-container div[style*="font-size: 18px"] { color: var(--cb-blue); font-size: calc(var(--r) * .75); line-height: 1.3333; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
#top .cb-step__title, #top .gfield_html h2 { margin: calc(var(--r) * .75) 0 0; color: var(--cb-blue); font-size: calc(var(--r) * 1.5); line-height: 1.3333; font-weight: 600; letter-spacing: -.025em; }
@media (min-width: 640px) { #top .cb-step__title, #top .gfield_html h2 { font-size: calc(var(--r) * 1.875); line-height: 1.2; } }
.cb-step__title .cosigner-name:not(:empty)::before { content: ", "; }
#top .cb-step__lead { margin: calc(var(--r) * 1.5) 0 var(--r); color: var(--cb-gray-700); font-size: calc(var(--r) * 1.125); line-height: 1.5556; font-weight: 500; }

/* Headings inside the Gravity Forms (co-signer). Their markup lives in the
   forms in the database, so only CSS can restyle it. The form h2s are typed in capitals
   ("CO-SIGNER CONTACT INFORMATION"); they get the step title above, in sentence case.
   Section breaks take the marketing site's card heading, the h4 sub-labels a smaller navy one.
   The !important on padding beats the inline padding-top in the form HTML. */
#top .gfield_html h2 { padding-top: 0 !important; text-transform: lowercase; }
#top .gfield_html h2::first-letter { text-transform: uppercase; }
#top .gsection { margin-top: calc(var(--r) * 1.5); padding: 0; }
/* .gsection_title and .cb-subhead (the permission page) share the legal pages' subtitle, below */
#top .gsection_title { margin: 0; }
#top .cb-subhead { margin: calc(var(--r) * 2) 0 calc(var(--r) * .5); }
/* font-weight needs !important: the plugin sets `.gform-body h4 { font-weight: 400 !important }` */
#top .gfield_html h4 {
	margin: calc(var(--r) * .5) 0 0; padding-top: 0 !important; color: var(--cb-navy-dark);
	font-size: calc(var(--r) * 1.125); line-height: 1.5556; font-weight: 600 !important;
}
/* Section titles typed into HTML fields take the section-break look (the subtitle below, a line under
   it): the New Lead form's <p class="title-small"> on the homepage (outside #top, hence body) and the
   co-signer form's one h4, "Your vehicle information", which heads its own page section. */
body .gform_wrapper .gfield_html .title-small, #top #gform_3 .gfield_html h4 { margin: calc(var(--r) * .75) 0 0; padding: 0 !important; }
body .gform_wrapper .gfield_html:first-child .title-small { margin-top: 0; }
/* The line under every form section title: the section breaks and the HTML-field titles above */
#top .gsection, body .gform_wrapper .gfield_html .title-small, #top #gform_3 .gfield_html h4 {
	padding-bottom: calc(var(--r) * .5) !important; border-bottom: 1px solid var(--cb-line);
}

#top h2 { margin: 1.5rem 0 .5rem; color: var(--cb-navy-dark); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
#top p { margin: 0 0 1rem; }
#top a:not([class]) { color: var(--cb-blue); }

/* Legal pages (template-parts/legal-page.php): the same type as the marketing site's rich text
   (its privacy policy page). Gray text, blue subtitles, blocks 1.5 units apart (2 from 768px)
   and an extra half unit above each subtitle. A unit is --r, so sizes scale like the marketing site. */
.legal-text { display: flex; flex-direction: column; gap: calc(var(--r) * 1.5); font-size: var(--r); color: var(--cb-gray-700); line-height: 1.625; }
@media (min-width: 992px) { .legal-text { max-width: 75%; } }
/* #top: the portal pages' own `#top h2` and `#top p` rules set margins and sizes, so these need the same weight. */
#top .legal-text > * { margin: 0; }
#top .legal-text h2 { margin-top: calc(var(--r) * .5); }
#top .legal-text h2, #top .gsection_title, #top .cb-subhead, body .gform_wrapper .gfield_html .title-small, #top #gform_3 .gfield_html h4 { color: var(--cb-blue); font-size: calc(var(--r) * 1.25); line-height: 1.4; font-weight: 600; letter-spacing: -.025em; }
#top .legal-text h2 + h2 { margin-top: 0; font-size: calc(var(--r) * 1.125); line-height: 1.5556; }
#top .legal-text h2:first-child { margin-top: 0; }
.legal-text ul, .legal-text ol { line-height: 2; }
.legal-text ul { padding-left: calc(var(--r) * .25); list-style: none; }
.legal-text li { margin-bottom: calc(var(--r) * .25); }
.legal-text ul li { position: relative; padding-left: var(--r); }
.legal-text ul li::before { content: ""; position: absolute; top: calc(var(--r) * .875); left: 0; width: calc(var(--r) * .25); height: calc(var(--r) * .25); background: currentColor; }
.legal-text ol { padding-left: calc(var(--r) * 1.25); }
.legal-text ol li { padding-left: calc(var(--r) * .25); }
@media (min-width: 576px) {
	#top .legal-text h2, #top .gsection_title, #top .cb-subhead, body .gform_wrapper .gfield_html .title-small, #top #gform_3 .gfield_html h4 { font-size: calc(var(--r) * 1.5); line-height: 1.3333; }
}
@media (min-width: 768px) { .legal-text { gap: calc(var(--r) * 2); } }
/* Links: the text colour with a 1px underline; on hover or focus a white line sweeps across it
   (same as the marketing site). Drawn as backgrounds on an inline link, so it follows the text
   when the link wraps onto two lines. */
#top .legal-text a:not([class]) { color: inherit; }
#top .legal-text a:not([class]), .cb-footer .cb-line-link {
	text-decoration: none;
	/* the white band is the middle third of a layer three times the link's width: at 100% it sits off the left, at 0 off the right */
	background:
		linear-gradient(90deg, transparent 33.333%, var(--cb-white) 33.333% 66.667%, transparent 66.667%) 100% 100% / 300% 1px no-repeat,
		linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: background-position .6s cubic-bezier(.4, 0, .2, 1);
}
#top .legal-text a:not([class]):hover, #top .legal-text a:not([class]):focus-visible, .cb-footer .cb-line-link:hover, .cb-footer .cb-line-link:focus-visible { background-position: 0 100%, 0 100%; }
.legal-text a:not([class]):focus-visible { outline: 2px solid var(--cb-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { #top .legal-text a:not([class]), .cb-footer .cb-line-link { transition: none; } }

/* ==========================================================================
   Portal buttons and form fields, restyled to the marketing site's.
   Buttons: pill-shaped, text-sm semibold. Primary is the dark navy button
   (hover: medium blue); secondary is the outline button (hover: filled).
   Fields: the exit dialog's input: white, pill-shaped, light blue border.
   The plugin's stylesheet sets the old square look, in places with !important,
   so these are prefixed with `body` (and use !important where the plugin does).
   ========================================================================== */
/* Every Gravity Forms submit, Next and Previous button. Forms 2, 4, 7, 8 and 9 keep their hidden buttons:
   the portal's own buttons click them (see the plugin's js), so they are left out here. */
body .gform_wrapper :is(.gform_button, .gform_next_button, .gform_previous_button):not(#gform_submit_button_2, #gform_submit_button_4, #gform_submit_button_7, #gform_submit_button_8, #gform_submit_button_9),
body .id-button, body .selfie, body #grant, body .return-check-in, body #thank-you-continue {
	display: inline-flex; align-items: center; justify-content: center; min-height: calc(var(--r) * 3);
	padding: calc(var(--r) * .875) calc(var(--r) * 2); border: 1px solid transparent; border-radius: 9999px;
	background: var(--cb-navy-dark); color: var(--cb-white);
	font: 600 calc(var(--r) * .875) / 1.4286 var(--cb-font); letter-spacing: -.025em; text-transform: none; text-decoration: none;
	box-shadow: none; cursor: pointer; transition: color .2s, background-color .2s, border-color .2s;
}
/* the plugin's photo buttons are fixed-width blocks */
body .id-button, body .selfie { display: flex; }
body .return-check-in { display: flex; width: fit-content; }
body .gform_wrapper :is(.gform_button, .gform_next_button, .gform_previous_button):not(#gform_submit_button_2, #gform_submit_button_4, #gform_submit_button_7, #gform_submit_button_8, #gform_submit_button_9):hover,
body .id-button:hover, body .selfie:hover, body #grant:hover, body .return-check-in:hover, body #thank-you-continue:hover { background: var(--cb-blue); color: var(--cb-white); }
body .gform_wrapper :is(.gform_button, .gform_next_button, .gform_previous_button):not(#gform_submit_button_2, #gform_submit_button_4, #gform_submit_button_7, #gform_submit_button_8, #gform_submit_button_9):focus-visible,
body .id-button:focus-visible, body .selfie:focus-visible, body #grant:focus-visible, body .return-check-in:focus-visible, body #thank-you-continue:focus-visible {
	outline: 2px solid var(--cb-blue); outline-offset: 2px;
}
/* Secondary: the other ID type, Re-take, Previous. */
body .id-button.gray-button, body #retake, body #retake2, body .gform_wrapper .gform_previous_button:not(#gform_submit_button_2, #gform_submit_button_4, #gform_submit_button_7, #gform_submit_button_8, #gform_submit_button_9) {
	background: transparent !important; border: 1px solid var(--cb-night) !important; color: var(--cb-night) !important;
}
body .id-button.gray-button:hover, body #retake:hover, body #retake2:hover, body .gform_wrapper .gform_previous_button:not(#gform_submit_button_2, #gform_submit_button_4, #gform_submit_button_7, #gform_submit_button_8, #gform_submit_button_9):hover {
	background: var(--cb-night) !important; color: var(--cb-white) !important;
}
/* Disabled: the border is on every state so a button does not change size when it is enabled. */
body .id-button:disabled, body .selfie:disabled, body #grant:disabled {
	border-color: #9aa3b2; background: #c3cad5; color: #3f4a5c; cursor: not-allowed;
}
body #retake:disabled, body #retake2:disabled, body .gform_previous_button:disabled { opacity: .5; cursor: not-allowed; }
/* The plugin sets these GF buttons with !important. */
body #gform_submit_button_5, body .gform_wrapper :is(.gform_button, .gform_next_button, .gform_previous_button):not(#gform_submit_button_2, #gform_submit_button_4, #gform_submit_button_7, #gform_submit_button_8, #gform_submit_button_9) {
	height: auto !important; line-height: 1.4286 !important; padding: calc(var(--r) * .875) calc(var(--r) * 2) !important; border-radius: 9999px !important;
	font: 600 calc(var(--r) * .875) / 1.4286 var(--cb-font) !important; letter-spacing: -.025em !important; text-transform: none !important;
}
body #gform_submit_button_5, body .gform_wrapper :is(.gform_button, .gform_next_button):not(#gform_submit_button_2, #gform_submit_button_4, #gform_submit_button_7, #gform_submit_button_8, #gform_submit_button_9) { background: var(--cb-navy-dark) !important; }
body #gform_submit_button_5:hover, body .gform_wrapper :is(.gform_button, .gform_next_button):not(#gform_submit_button_2, #gform_submit_button_4, #gform_submit_button_7, #gform_submit_button_8, #gform_submit_button_9):hover { background: var(--cb-blue) !important; }

/* Fields: white pill, light blue border, medium blue border on focus. The old underline-only inputs
   and their !important number-field borders are replaced; the ID code field (#input_5_1) keeps its own look. */
.gform_wrapper.gform-theme--framework { --gf-ctrl-accent-color: var(--cb-blue); }
body .gform_wrapper .gfield :is(input:not([type=radio], [type=checkbox], [type=hidden], [type=submit], [type=button], [type=file]), select, textarea):not(#input_5_1) {
	width: 100%; height: auto; padding: calc(var(--r) * .75) calc(var(--r) * 1.25); border: 1px solid var(--cb-blue-lighter) !important; border-radius: 9999px;
	background-color: var(--cb-white); box-shadow: none; color: var(--cb-night);
	font-size: calc(var(--r) * .875); line-height: 1.4286; transition: border-color .2s, box-shadow .2s;
}
/* :not(#input_5_1) only raises the specificity above the pill rule's */
/* Gravity Forms' red border on an invalid field survives the !important border above */
body .gform_wrapper .gfield.gfield_error .ginput_container :is(input:not([type=radio], [type=checkbox]), select, textarea):not(#input_5_1) { border-color: var(--cb-error) !important; }
body .gform_wrapper .gfield .ginput_container textarea:not(#input_5_1) { border-radius: calc(var(--r) * .75); }
/* the plugin squares number fields with !important */
body .gform_wrapper .gfield input[type=number]:not(#input_5_1) { border-radius: 9999px !important; box-shadow: none !important; }
body .gform_wrapper .gfield select { padding-right: calc(var(--r) * 2.5); }
body .gform_wrapper .gfield :is(input, select, textarea):not(#input_5_1):focus {
	border-color: var(--cb-blue) !important; outline: none; box-shadow: 0 0 0 3px rgba(51, 82, 125, .25);
}
body .gform_wrapper .gfield :is(input[type=radio], input[type=checkbox]) { accent-color: var(--cb-blue); }
/* Money fields (the co-signer's Amount Owed and salary): cosigner.js puts a "$" div right before the
   input, and the plugin positions it for its old 38px underline fields. Here it sits inside the pill,
   at the text's left edge and vertically centred, and the typed amount starts after it. The plugin's
   rules are !important (it already makes the "$" absolute). Any text field the script gives a "$"
   gets the same treatment. */
body .gform_wrapper .ginput_container_text { position: relative; }
body .gform_wrapper .ginput_container_text > .dollar-sign {
	top: 50%; left: calc(var(--r) * 1.25) !important; transform: translateY(-50%);
	color: var(--cb-night) !important; font-size: calc(var(--r) * .875) !important; line-height: 1 !important; pointer-events: none;
}
/* .gfield puts it one class above the pill rule, so it wins wherever it sits in this file */
body .gform_wrapper .gfield .ginput_container_text > .dollar-sign + input:not(#input_5_1) { padding-left: calc(var(--r) * 2.125); }
body #camera-upload::file-selector-button {
	margin-right: var(--r); padding: calc(var(--r) * .5) var(--r); border: 1px solid var(--cb-night); border-radius: 9999px;
	background: transparent; color: var(--cb-night); font: 600 calc(var(--r) * .875) var(--cb-font); cursor: pointer;
}

/* Photo frames (the check-in video and captured photo, the ID cards): rounded corners, and space under the
   live video so "Take photo" is not glued to it. */
body .bordered { border-radius: calc(var(--r) * .75); overflow: hidden; }

/* Check-in page: one left-aligned column, 32rem wide, instead of the plugin's centred 340px camera under
   560px text. The video and photo keep a 4:3 frame (the capture itself is still 320px, set in camera.js). */
body .content-area div[style*="max-width: 560px"] { max-width: 32rem !important; margin-top: 0 !important; line-height: 1.6 !important; font-size: var(--r); }
body #geo-permission-panel, body #geo-status { max-width: 32rem !important; font-size: calc(var(--r) * .875) !important; }
body #geo-permission-panel { border-radius: calc(var(--r) * .75) !important; padding: var(--r) calc(var(--r) * 1.25) !important; }
body #geo-permission-panel { margin: var(--r) 0 !important; text-align: left !important; }
body .content-area .camera-container, body .content-area .check-in-button-container { width: 100%; max-width: 32rem; margin: 0; padding: 0; }
body .camera-container .bordered { display: block; width: 100%; height: auto; max-width: 100%; max-height: none; aspect-ratio: 4 / 3; margin: 0 0 var(--r); object-fit: contain; }
body #output .bordered { margin-bottom: 0; }
body .camera-container .selfie, body .check-in-button-container .selfie { width: 100%; max-width: none; margin: 0 0 6px; }
body .camera-container .photo-actions .selfie { width: auto; }
body #camera .icon { left: calc(50% - 32px); }
/* the plugin pads #camera by 20px and gives #check_in side margins, which pushed them off the column */
body #camera, body #output { padding: 0; }
body #check_in { margin: var(--r) 0 calc(var(--r) * 3) !important; }
/* Grant Access: full width of the column on every page, with the same space above and below (the ID pages set inline margins) */
body .content-area #grant { display: flex; width: 100%; max-width: 32rem !important; margin: var(--r) 0 !important; }

/* ID pages (passport, state ID, selfie): the same left-aligned 32rem column and larger frame as the check-in page.
   The frame is a flex column with the button at the bottom and room around it; the capture stays 320px (the scripts). */
body .front-id-card, body .back-id-card { width: 100%; max-width: 32rem; height: auto; max-height: none; margin: 0 0 var(--r) !important; }
body .front-id-card .external-container, body .back-id-card .external-container {
	display: flex; flex-direction: column; justify-content: flex-end; min-height: 24rem; max-width: 100% !important; margin: 0 !important; padding: var(--r) !important;
}
/* the "Front" / "Back" label sits at the top of the frame, left-aligned */
body .external-container > div[style*="text-align: center"] { margin-bottom: auto; text-align: left !important; font-weight: 600; }
body .external-container video, body .output-container img { display: block; width: 100%; height: auto; max-height: none; border-radius: calc(var(--r) * .5); }
body .external-container .selfie { width: 100%; max-width: none; margin: calc(var(--r) * .5) 0 0; }
body .external-container .icon-id-capture { top: calc(50% - 3.5rem); left: calc(50% - 32px); }
/* The Passport / Selfie example: a white card with a small label and a larger, rounded picture.
   (No display here: the scripts hide the card with an inline style once a photo is taken.) */
body .example-container { box-sizing: border-box; width: 100%; max-width: 32rem; margin: var(--r) 0; padding: calc(var(--r) * 1.25); border-radius: calc(var(--r) * .75); background: var(--cb-white); }
/* the label: the step eyebrow (with the .cb-step rules); the inline 18px and centring need !important */
body .example-container div[style*="font-size: 18px"] { margin: 0 0 calc(var(--r) * .75) !important; text-align: left !important; font-size: calc(var(--r) * .75) !important; }
body .example-container img {
	display: block; width: min(100%, 14rem) !important; max-width: none !important; height: auto !important; margin: 0 auto !important;
	border: 1px solid var(--cb-blue-lighter); border-radius: calc(var(--r) * .5);
}
/* the selfie drawing is a transparent outline: no border, a little smaller */
body .example-container img[src*="selfie-example"] { width: min(100%, 12rem) !important; border: 0; }
body .continue-button-container { padding-top: calc(var(--r) * 2) !important; }
body .continue-button-container .selfie, body #payment-continue { width: 100%; max-width: 32rem; margin: 0; }

/* Pay-premium page: the same left-aligned 32rem column as the check-in and ID pages (its title, value and
   Continue button are in the left-align and continue-button rules above). The plugin centres the amount box
   with margin auto, also on phones; the #top prefix outranks that. The container itself is not capped, so the
   Authorize.net iframe keeps the width its own resizeWindow message sets. */
body #top .bond-premium-container :is(.current-case-box, .case-box, .bond-amount-box) { max-width: 32rem; }
body #top .bond-premium-container .current-case-box { margin-top: 0; }
body #top .bond-premium-container .bond-amount-box { margin: var(--r) 0 calc(var(--r) * 1.5); }

/* The scripts hide and show these with the hidden attribute. The display rules before it would
   otherwise beat the browser's [hidden] rule (the id inside :is() just raises the specificity above them). */
body :is(.selfie, .id-button, #grant, video, img, .bordered, .output-container)[hidden] { display: none; }

/* The theme's capture pages load the theme's navy camera icon directly. Only the check-in shortcode's icon is
   drawn by the plugin, as a black SVG <img> that cannot take a CSS colour: paint it in the dark navy with a mask
   of the theme's copy and push the black picture out of the box. The plugin's file stays untouched, so a plugin
   update does not undo this. */
body img[src*="cowboy-sales-portal/images/camera-fill.svg"] {
	background-color: var(--cb-night); object-position: -200vw 0;
	-webkit-mask: url("assets/images/camera-fill.svg") center / contain no-repeat; mask: url("assets/images/camera-fill.svg") center / contain no-repeat;
}

/* Text colours that assumed a white page, darkened to stay readable on the page background. */
body .gform-body input::placeholder, body .gform-body textarea::placeholder, body select, body .disclosure-sign-contract { color: #5f6673 !important; }
body .gform-theme--framework .gform-field-label { color: #4b5563 !important; }
/* Progress bar (ID pages, co-signer form): a silver pill track with a navy fill and the percentage inside,
   like the buttons. The pages set padding inline, so those need !important. */
body .cbb-progress {
	height: calc(var(--r) * 1.25) !important; padding: 0 !important; margin-bottom: calc(var(--r) * .75);
	border: 1px solid var(--cb-blue-lighter); border-radius: 9999px; background-color: var(--cb-silver);
}
body .cbb-progress-bar {
	min-width: calc(var(--r) * 3); border-radius: 9999px; background-color: var(--cb-navy-dark);
	font: 600 calc(var(--r) * .75) / 1 var(--cb-font); letter-spacing: .02em; transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
@media (prefers-reduced-motion: reduce) { body .cbb-progress-bar { transition: none; } }

/* Loading spinner on the contract page. */
.spinner-border {
	display: inline-block; width: 2rem; height: 2rem; border: .25rem solid var(--cb-blue-lighter); border-top-color: var(--cb-navy-dark);
	border-radius: 50%; animation: cb-spin .8s linear infinite;
}
@keyframes cb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner-border { animation-duration: 3s; } }

/* Contract page: the same left-aligned 32rem column. The plugin centres the contract viewer (margin auto) and
   the 250px "I AGREE" button; the viewer becomes a white card with a line between pages. The signature field
   keeps the plugin's size, outline and rounded corners (its handwriting font is already replaced by the brand
   font through the section#top.portal-pages * rule). */
body #top.sign-contract .col-lg-6 { max-width: 32rem; }
body #top #pdf-js { margin: var(--r) 0; padding: calc(var(--r) * .75); border: 1px solid var(--cb-line); border-radius: calc(var(--r) * .75); background: var(--cb-white); }
body #top #pdf-js > canvas { display: block; border: 1px solid var(--cb-line); }
body #top #pdf-js > canvas + canvas { margin-top: calc(var(--r) * .75); }
body #top :is(#input_5_1, #gform_submit_button_5) { width: 100%; }
body #top .disclosure-sign-contract { margin-top: var(--r); font-size: calc(var(--r) * .75); line-height: 1.5; }
