:root {
	--capsco-bam-navy: #071252;
	--capsco-bam-blue: #003959;
	--capsco-bam-red: #c90000;
	--capsco-bam-cyan: #08a8cf;
	--capsco-bam-ink: #07113f;
	--capsco-bam-soft: #f5f7fb;
	--capsco-bam-border: #dce3ee;
}

/* Popup Maker stores a 1020px desktop width. Keep that design while safely
   constraining this specific access popup on smaller screens. */
.capsco-bam-popup-container,
.pum-container:has([data-capsco-bam-gate]) {
	max-width: calc(100vw - 24px) !important;
	width: 1020px !important;
}

.capsco-bam-gate,
.capsco-bam-library {
	color: var(--capsco-bam-ink);
	font-family: inherit;
}

.capsco-bam-step {
	box-sizing: border-box;
	padding: clamp(24px, 5vw, 70px) clamp(20px, 6vw, 90px);
	text-align: center;
}

.capsco-bam-step[hidden] {
	display: none !important;
}

.capsco-bam-eyebrow {
	color: var(--capsco-bam-red);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .18em;
	margin: 0 0 30px;
	text-transform: uppercase;
}

.capsco-bam-step h2,
.capsco-bam-library h1,
.capsco-bam-library h2,
.capsco-bam-library h3 {
	color: var(--capsco-bam-navy);
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 400;
	line-height: 1.12;
	margin: 0;
}

.capsco-bam-step h2 {
	font-size: clamp(34px, 4.2vw, 52px);
}

.capsco-bam-step > p:not(.capsco-bam-eyebrow) {
	font-size: 17px;
	line-height: 1.55;
	margin: 20px auto 32px;
	max-width: 650px;
}

.capsco-bam-actions {
	display: grid;
	gap: 18px;
	margin: 30px auto 0;
	max-width: 760px;
}

.capsco-bam-actions--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capsco-bam-button {
	align-items: center;
	border: 0;
	border-radius: 10px;
	box-sizing: border-box;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 15px;
	font-weight: 700;
	justify-content: center;
	letter-spacing: .12em;
	min-height: 66px;
	padding: 18px 24px;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.capsco-bam-button:hover,
.capsco-bam-button:focus-visible {
	box-shadow: 0 14px 28px rgba(7, 18, 82, .18);
	color: #fff !important;
	transform: translateY(-2px);
}

.capsco-bam-button:focus-visible,
.capsco-bam-back:focus-visible,
.capsco-bam-field input:focus-visible {
	outline: 3px solid rgba(8, 168, 207, .35);
	outline-offset: 3px;
}

.capsco-bam-button:disabled {
	cursor: wait;
	opacity: .7;
	transform: none;
}

.capsco-bam-gate .capsco-bam-button--red {
	background-color: var(--capsco-bam-red) !important;
	background-image: none !important;
}

.capsco-bam-gate .capsco-bam-button--navy {
	background-color: var(--capsco-bam-navy) !important;
	background-image: none !important;
}
.capsco-bam-button--full { width: 100%; }

.capsco-bam-form {
	background: var(--capsco-bam-soft);
	border: 1px solid var(--capsco-bam-border);
	border-radius: 16px;
	box-sizing: border-box;
	margin: 30px auto 0;
	max-width: 620px;
	padding: clamp(20px, 4vw, 34px);
	text-align: left;
}

.capsco-bam-field label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 9px;
}

.capsco-bam-field input {
	appearance: none;
	background: #fff;
	border: 1px solid #aeb9ca;
	border-radius: 10px;
	box-sizing: border-box;
	color: var(--capsco-bam-ink);
	font-size: 17px;
	height: 58px;
	padding: 12px 16px;
	width: 100%;
}

.capsco-bam-field input:focus {
	border-color: var(--capsco-bam-cyan);
	box-shadow: 0 0 0 4px rgba(8, 168, 207, .12);
}

.capsco-bam-honeypot {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.capsco-bam-message {
	font-size: 14px;
	line-height: 1.45;
	margin: 12px 0;
	min-height: 20px;
}

.capsco-bam-message.is-error { color: #a40000; }

.capsco-bam-back {
	background: transparent;
	border: 0;
	color: var(--capsco-bam-navy);
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	margin-top: 36px;
	padding: 12px 16px;
}

.capsco-bam-library {
	margin: 0 auto;
	max-width: 1180px;
	padding: clamp(40px, 7vw, 90px) 20px;
}

.capsco-bam-library__header {
	margin: 0 auto 48px;
	max-width: 760px;
	text-align: center;
}

.capsco-bam-library__header h1 {
	font-size: clamp(40px, 5vw, 64px);
}

.capsco-bam-library__header > p:last-child {
	font-size: 17px;
	line-height: 1.6;
}

.capsco-bam-library__header .capsco-bam-library__security-note {
	color: #52607a;
	font-size: 14px;
	margin: 10px 0 0;
}

.capsco-bam-library__grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capsco-bam-video,
.capsco-bam-library__empty {
	background: #fff;
	border: 1px solid var(--capsco-bam-border);
	border-radius: 16px;
	box-shadow: 0 18px 45px rgba(7, 18, 82, .1);
	overflow: hidden;
}

.capsco-bam-video.is-requested {
	box-shadow: 0 0 0 3px var(--capsco-bam-cyan), 0 18px 45px rgba(7, 18, 82, .16);
}

.capsco-bam-video__frame {
	background: #000;
	padding-top: 56.25%;
	position: relative;
}

.capsco-bam-video__launch {
	background: #02071d;
	border: 0;
	bottom: 0;
	cursor: pointer;
	left: 0;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
}

.capsco-bam-video__launch img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease, opacity .35s ease;
	width: 100%;
}

.capsco-bam-video__shade {
	background: linear-gradient(180deg, rgba(3, 11, 48, .08) 35%, rgba(3, 11, 48, .68) 100%);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.capsco-bam-video__play {
	background: var(--capsco-bam-red);
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
	height: 62px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: background-color .2s ease, transform .2s ease;
	width: 62px;
}

.capsco-bam-video__play::after {
	border-bottom: 10px solid transparent;
	border-left: 16px solid #fff;
	border-top: 10px solid transparent;
	content: '';
	left: 25px;
	position: absolute;
	top: 18px;
}

.capsco-bam-video__duration {
	background: rgba(3, 11, 48, .9);
	border-radius: 5px;
	bottom: 12px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	padding: 6px 9px;
	position: absolute;
	right: 12px;
}

.capsco-bam-video__launch:hover img,
.capsco-bam-video__launch:focus-visible img {
	opacity: .88;
	transform: scale(1.025);
}

.capsco-bam-video__launch:hover .capsco-bam-video__play,
.capsco-bam-video__launch:focus-visible .capsco-bam-video__play {
	background: #a90000;
	transform: translate(-50%, -50%) scale(1.08);
}

.capsco-bam-video__launch:focus-visible {
	outline: 4px solid var(--capsco-bam-cyan);
	outline-offset: -4px;
}

.capsco-bam-video__frame iframe {
	border: 0;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.capsco-bam-video__content { padding: 22px 24px 26px; }
.capsco-bam-library .capsco-bam-video__content h3 { font-size: 34px !important; line-height: 1.2; }
.capsco-bam-video__content p { margin-bottom: 0; }

.capsco-bam-library__empty {
	margin: 0 auto;
	max-width: 720px;
	padding: 50px 30px;
	text-align: center;
}

.capsco-bam-library__empty h2 { font-size: 34px; }
.capsco-bam-editor-notice { padding: 24px; text-align: center; }

@media (max-width: 767px) {
	.capsco-bam-popup-container,
	.pum-container:has([data-capsco-bam-gate]) {
		width: calc(100vw - 24px) !important;
	}

	.capsco-bam-actions--two,
	.capsco-bam-library__grid {
		grid-template-columns: 1fr;
	}

	.capsco-bam-step {
		padding: 35px 18px 42px;
	}

	.capsco-bam-step h2 { font-size: 34px; }
	.capsco-bam-library .capsco-bam-video__content h3 { font-size: 24px !important; }
	.capsco-bam-button { min-height: 58px; }
	.capsco-bam-eyebrow { margin-bottom: 20px; }
}
