/* Polygon Quotes — off-canvas slide-in panel */

/* Trigger button (placed in page content via the quote-trigger block) */
.polygon-quote-trigger {
	appearance: none;
	display: inline-block;
	border: 0;
	background: #f08a24;
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	padding: 14px 28px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

.polygon-quote-trigger:hover,
.polygon-quote-trigger:focus-visible {
	background: #d9760f;
	color: #fff;
	outline: none;
}

.polygon-quote-trigger:active {
	transform: translateY(1px);
}


.polygon-quote-overlay {
	position: fixed;
	inset: 0;
	background: rgba(11, 61, 102, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 99998;
}

.polygon-quote-overlay.is-open {
	opacity: 1;
}

.polygon-quote-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 480px;
	max-width: 100%;
	background: #fff;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
	z-index: 99999;
	display: flex;
	flex-direction: column;
}

.polygon-quote-panel.is-open {
	transform: translateX(0);
}

.polygon-quote-panel__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.polygon-quote-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #e7eef4;
	flex: 0 0 auto;
}

.polygon-quote-panel__title {
	margin: 0;
	font-size: 1.25rem;
	color: #0b3d66;
}

.polygon-quote-panel__close {
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	color: #0b3d66;
	padding: 0 6px;
}

.polygon-quote-panel__close:hover,
.polygon-quote-panel__close:focus-visible {
	color: #f08a24;
	outline: none;
}

.polygon-quote-panel__body {
	padding: 24px;
	overflow-y: auto;
	flex: 1 1 auto;
	-webkit-overflow-scrolling: touch;
}

.polygon-quote-chooser {
	display: grid;
	gap: 12px;
	margin-bottom: 8px;
}

.polygon-quote-card {
	appearance: none;
	border: 1px solid #cfe0ef;
	background: #f3f7fb;
	border-radius: 8px;
	padding: 18px 16px;
	font-size: 1.05rem;
	font-weight: 600;
	color: #0b3d66;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.polygon-quote-card:hover,
.polygon-quote-card:focus-visible {
	border-color: #f08a24;
	background: #fff;
	outline: none;
}

/* Prevent background scroll when the panel is open */
body.polygon-quote-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.polygon-quote-panel {
		width: 100%;
	}

	.polygon-quote-panel__header,
	.polygon-quote-panel__body {
		padding-left: 16px;
		padding-right: 16px;
	}
}
