/**
 * InetSolution speedbump — BayFirst site styles.
 * Matches live Kentico: no header, green continue + orange cancel.
 */

#speedbump.inet-modal {
	--bf-speedbump-green: var(--wp--preset--color--ti-accent, #02461b);
	--bf-speedbump-orange: var(--wp--preset--color--ti-accent-secondary, #f68521);
	--bf-speedbump-ink: #221f20;
}

#speedbump .inet-modal-dialog {
	max-width: 640px;
}

#speedbump .inet-modal-content {
	border: 0;
	border-radius: 0;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

/* Live site has no modal header / close X */
#speedbump .inet-modal-header {
	display: none !important;
}

#speedbump .inet-modal-body {
	padding: 2rem 2rem 1rem;
	color: var(--bf-speedbump-ink);
	font-family: "Open Sans", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
}

#speedbump .inet-modal-body p {
	margin: 0;
}

#speedbump .inet-modal-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: 1rem 2rem 2rem;
	background: transparent;
	border-top: 0;
}

/* Match live order: I Understand (left) then Cancel (right) */
#speedbump .inet-modal-footer #carryOn {
	order: 1;
}

#speedbump .inet-modal-footer #cancel {
	order: 2;
}

#speedbump .inet-modal-footer .btn,
#speedbump .inet-modal-footer button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 8px 34px;
	border: 1px solid transparent;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	font-family: Metropolis, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Continue / I Understand — brand green */
#speedbump #carryOn,
#speedbump .inet-modal-footer .btn-primary {
	color: #fff !important;
	background-color: var(--bf-speedbump-green) !important;
	border-color: var(--bf-speedbump-green) !important;
}

#speedbump #carryOn:hover,
#speedbump #carryOn:focus-visible,
#speedbump .inet-modal-footer .btn-primary:hover,
#speedbump .inet-modal-footer .btn-primary:focus-visible {
	color: #fff !important;
	background-color: var(--bf-speedbump-orange) !important;
	border-color: var(--bf-speedbump-orange) !important;
	outline: none;
}

/* Cancel — brand orange */
#speedbump #cancel,
#speedbump .inet-modal-footer .btn-secondary {
	color: #fff !important;
	background-color: var(--bf-speedbump-orange) !important;
	border-color: var(--bf-speedbump-orange) !important;
}

#speedbump #cancel:hover,
#speedbump #cancel:focus-visible,
#speedbump .inet-modal-footer .btn-secondary:hover,
#speedbump .inet-modal-footer .btn-secondary:focus-visible {
	color: #fff !important;
	background-color: var(--bf-speedbump-green) !important;
	border-color: var(--bf-speedbump-green) !important;
	outline: none;
}

@media (max-width: 575.98px) {
	#speedbump .inet-modal-body {
		padding: 1.5rem 1.25rem 0.75rem;
	}

	#speedbump .inet-modal-footer {
		flex-direction: column-reverse;
		align-items: stretch;
		padding: 0.75rem 1.25rem 1.5rem;
	}

	#speedbump .inet-modal-footer .btn,
	#speedbump .inet-modal-footer button {
		width: 100%;
	}
}
