/* AGM battery inquiry widget. */
#agm-inq {
	--inq-red: #c50237;
	--inq-red-dark: #a3002d;
	--inq-ink: #11151c;
	--inq-muted: #66717f;
	--inq-line: #dfe5ee;
	--inq-soft: #f6f8fb;
	font-family: inherit;
	color: var(--inq-ink);
}

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

#agm-inq [hidden] {
	display: none !important;
}

#agm-inq .agm-inq-launcher {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 56px;
	margin: 0;
	padding: 0 22px 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--inq-red);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: 0 14px 30px rgba(197, 2, 55, .38);
	cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}

#agm-inq .agm-inq-launcher:hover,
#agm-inq .agm-inq-launcher:focus-visible {
	background: var(--inq-red-dark);
	color: #fff;
	transform: translateY(-2px);
}

#agm-inq .agm-inq-launcher:focus-visible {
	outline: 3px solid rgba(197, 2, 55, .35);
	outline-offset: 3px;
}

#agm-inq .agm-inq-launcher__icon {
	display: block;
	width: 24px;
	height: 24px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3Cpath d='M12.5 6.5 10 11h4l-2.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3Cpath d='M12.5 6.5 10 11h4l-2.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

#agm-inq.is-open .agm-inq-launcher {
	visibility: hidden;
}

#agm-inq .agm-inq-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99991;
	background: rgba(15, 18, 24, .45);
}

#agm-inq .agm-inq-panel {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99992;
	display: flex;
	flex-direction: column;
	width: min(440px, calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 30px 70px rgba(15, 18, 24, .35);
	animation: agmInqIn .18s ease-out;
}

@keyframes agmInqIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

#agm-inq .agm-inq-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 20px 18px;
	background:
		radial-gradient(360px 160px at 100% 0%, rgba(197, 2, 55, .5), transparent 70%),
		linear-gradient(120deg, #101216, #22161a);
	color: #fff;
}

#agm-inq .agm-inq-title {
	margin: 0 0 4px;
	color: inherit;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
}

#agm-inq .agm-inq-sub {
	margin: 0;
	color: rgba(255, 255, 255, .72);
	font-size: 14px;
	line-height: 1.45;
}

#agm-inq .agm-inq-close {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 10px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

#agm-inq .agm-inq-close:hover {
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

#agm-inq .agm-inq-form,
#agm-inq .agm-inq-done {
	display: grid;
	gap: 12px;
	padding: 18px 20px 14px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

#agm-inq .agm-inq-seg {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 4px;
	border: 0;
	border-radius: 12px;
	background: var(--inq-soft);
}

#agm-inq .agm-inq-seg legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

#agm-inq .agm-inq-seg label {
	position: relative;
	margin: 0;
	cursor: pointer;
}

#agm-inq .agm-inq-seg input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

#agm-inq .agm-inq-seg span {
	display: grid;
	place-items: center;
	min-height: 40px;
	padding: 6px 8px;
	border-radius: 9px;
	color: var(--inq-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: background .15s ease, color .15s ease;
}

#agm-inq .agm-inq-seg input:checked + span {
	background: #fff;
	color: var(--inq-red);
	box-shadow: 0 2px 8px rgba(15, 18, 24, .1);
}

#agm-inq .agm-inq-seg input:focus-visible + span {
	outline: 2px solid var(--inq-red);
	outline-offset: 1px;
}

#agm-inq .agm-inq-group {
	display: grid;
	gap: 12px;
}

#agm-inq .agm-inq-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

#agm-inq .agm-inq-row--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

#agm-inq .agm-inq-field {
	display: grid;
	gap: 5px;
	margin: 0;
	min-width: 0;
}

#agm-inq .agm-inq-label {
	color: var(--inq-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

#agm-inq input,
#agm-inq select,
#agm-inq textarea {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--inq-line);
	border-radius: 10px;
	background: #fff;
	color: var(--inq-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.3;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

#agm-inq textarea {
	min-height: 76px;
	resize: vertical;
}

#agm-inq input::placeholder,
#agm-inq textarea::placeholder {
	color: #9aa3b2;
}

#agm-inq input:focus,
#agm-inq select:focus,
#agm-inq textarea:focus {
	border-color: var(--inq-red);
	outline: none;
	box-shadow: 0 0 0 3px rgba(197, 2, 55, .14);
}

#agm-inq [aria-invalid="true"] {
	border-color: #d63638;
	box-shadow: 0 0 0 3px rgba(214, 54, 56, .14);
}

#agm-inq .agm-inq-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

#agm-inq .agm-inq-error {
	padding: 10px 12px;
	border-radius: 10px;
	background: #fdecee;
	color: #a3002d;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

#agm-inq .agm-inq-submit {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: var(--inq-red);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	transition: background .15s ease;
}

#agm-inq .agm-inq-submit:hover,
#agm-inq .agm-inq-submit:focus-visible {
	background: var(--inq-red-dark);
	color: #fff;
}

#agm-inq .agm-inq-submit:disabled {
	opacity: .7;
	cursor: progress;
}

#agm-inq .agm-inq-fine {
	margin: 0;
	color: var(--inq-muted);
	font-size: 12px;
	line-height: 1.45;
}

#agm-inq .agm-inq-fine a,
#agm-inq .agm-inq-foot a {
	color: var(--inq-red);
	font-weight: 700;
	text-decoration: none;
}

#agm-inq .agm-inq-foot {
	padding: 12px 20px 16px;
	border-top: 1px solid var(--inq-line);
	background: var(--inq-soft);
	color: var(--inq-muted);
	font-size: 14px;
	text-align: center;
}

#agm-inq .agm-inq-done {
	justify-items: center;
	padding: 30px 24px 24px;
	text-align: center;
}

#agm-inq .agm-inq-done .agm-inq-title {
	color: var(--inq-ink);
}

#agm-inq .agm-inq-done .agm-inq-sub {
	color: var(--inq-muted);
}

#agm-inq .agm-inq-done__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #1f8a4c;
	color: #fff;
	font-size: 30px;
	font-weight: 800;
}

html.agm-inq-lock,
html.agm-inq-lock body {
	overflow: hidden;
}

@media (min-width: 768px) {
	html.agm-inq-lock,
	html.agm-inq-lock body {
		overflow: visible;
	}

	#agm-inq .agm-inq-backdrop {
		background: transparent;
	}
}

@media (max-width: 767px) {
	#agm-inq .agm-inq-launcher {
		right: 16px;
		bottom: 16px;
		width: 56px;
		padding: 0;
		justify-content: center;
	}

	#agm-inq .agm-inq-launcher__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	#agm-inq .agm-inq-panel {
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 18px 18px 0 0;
	}

	#agm-inq .agm-inq-row--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 340px) {
	#agm-inq .agm-inq-row,
	#agm-inq .agm-inq-row--3 {
		grid-template-columns: 1fr 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	#agm-inq .agm-inq-panel {
		animation: none;
	}

	#agm-inq .agm-inq-launcher,
	#agm-inq .agm-inq-seg span {
		transition: none;
	}
}
