/* PlastiQuote Portal Widget — styling matched to the PlastiQuote portal look & feel */

.plqw-widget {
	--plqw-orange: #f2650d;
	--plqw-orange-dark: #d8560a;
	--plqw-blue: #3b6ef6;
	--plqw-dark: #14161a;
	--plqw-gray: #5b6472;
	--plqw-border: #e4e8ef;
	--plqw-bg: #ffffff;
	--plqw-radius: 18px;
	--plqw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--plqw-scale: 1;
	--plqw-text-align: left;
	--plqw-justify: flex-start;
	--plqw-max-width: 300px;

	position: fixed;
	bottom: 20px;
	z-index: 999990;
	box-sizing: border-box;
	width: calc(100vw - 40px);
	max-width: var(--plqw-max-width);
	background: var(--plqw-bg);
	border: 1px solid var(--plqw-border);
	border-radius: var(--plqw-radius);
	box-shadow: 0 10px 30px rgba(20, 22, 26, 0.12), 0 2px 8px rgba(20, 22, 26, 0.06);
	padding: 18px 20px 20px;
	font-family: var(--plqw-font);
	text-align: var(--plqw-text-align);
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
	pointer-events: none;
}

.plqw-widget * {
	box-sizing: border-box;
}

.plqw-widget.plqw-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
	animation: plqw-attention 1.6s ease-out 0.6s 2;
}

.plqw-widget.plqw-hide {
	opacity: 0;
	transform: translateY(10px) scale(0.98);
}

.plqw-pos-bottom-left {
	left: 20px;
}

.plqw-pos-bottom-right {
	right: 20px;
}

@keyframes plqw-attention {
	0% {
		box-shadow: 0 10px 30px rgba(20, 22, 26, 0.12), 0 2px 8px rgba(20, 22, 26, 0.06),
			0 0 0 0 rgba(242, 101, 13, 0.35);
	}
	70% {
		box-shadow: 0 10px 30px rgba(20, 22, 26, 0.12), 0 2px 8px rgba(20, 22, 26, 0.06),
			0 0 0 14px rgba(242, 101, 13, 0);
	}
	100% {
		box-shadow: 0 10px 30px rgba(20, 22, 26, 0.12), 0 2px 8px rgba(20, 22, 26, 0.06),
			0 0 0 0 rgba(242, 101, 13, 0);
	}
}

.plqw-close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: none;
	background: transparent;
	color: var(--plqw-gray);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
}

.plqw-close:hover,
.plqw-close:focus-visible {
	color: var(--plqw-dark);
	background: rgba(0, 0, 0, 0.05);
}

.plqw-brand {
	display: flex;
	align-items: center;
	justify-content: var(--plqw-justify);
	margin-bottom: 8px;
}

.plqw-logo {
	height: 20px;
	width: auto;
	display: block;
}

.plqw-heading {
	margin: 0 0 2px;
	font-size: calc(15px * var(--plqw-scale));
	font-weight: 700;
	color: var(--plqw-dark);
	line-height: 1.3;
}

.plqw-subheading {
	margin: 0 0 10px;
	font-size: calc(12px * var(--plqw-scale));
	font-weight: 500;
	color: var(--plqw-gray);
	line-height: 1.3;
}

.plqw-eyebrow {
	margin: 0 0 4px;
	font-size: calc(12.5px * var(--plqw-scale));
	font-weight: 600;
	color: var(--plqw-blue);
}

.plqw-discount {
	margin: 0 0 14px;
	font-size: calc(14.5px * var(--plqw-scale));
	font-weight: 600;
	color: var(--plqw-dark);
	line-height: 1.35;
}

.plqw-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: var(--plqw-orange);
	color: #fff !important;
	font-weight: 700;
	font-size: calc(14px * var(--plqw-scale));
	text-decoration: none;
	padding: 11px 18px;
	border-radius: 999px;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 4px 10px rgba(242, 101, 13, 0.35);
}

.plqw-button:hover,
.plqw-button:focus-visible {
	background: var(--plqw-orange-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(242, 101, 13, 0.4);
}

.plqw-button:active {
	transform: translateY(0);
}

.plqw-footer {
	margin: 10px 0 0;
	font-size: calc(11px * var(--plqw-scale));
	color: var(--plqw-gray);
	line-height: 1.4;
}

.plqw-footer-email {
	color: var(--plqw-blue);
	font-weight: 600;
	text-decoration: none;
}

.plqw-footer-email:hover,
.plqw-footer-email:focus-visible {
	text-decoration: underline;
}

@media (max-width: 420px) {
	.plqw-widget {
		bottom: 14px;
		padding: 16px 18px 18px;
	}
	.plqw-pos-bottom-left {
		left: 12px;
	}
	.plqw-pos-bottom-right {
		right: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.plqw-widget {
		transition: none;
	}
	.plqw-widget.plqw-visible {
		animation: none;
	}
}
