/**
 * 全站「獲取報價」彈窗：背景淡入 + 內容縮放（從觸發按鈕方向，類似 macOS 最小化/還原的感覺）
 */
.eazypcb-quote-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.eazypcb-quote-modal.eazypcb-quote-modal--open {
	display: flex;
}

.eazypcb-quote-modal__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(15, 32, 48, 0.52);
	opacity: 0;
	transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.eazypcb-quote-modal--open .eazypcb-quote-modal__backdrop {
	opacity: 1;
}

.eazypcb-quote-panel {
	position: relative;
	z-index: 1;
	margin: auto;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	will-change: transform, opacity;
	transform: scale(0.9) translate3d(0, 14px, 0);
	opacity: 0;
	filter: blur(0);
	transition:
		transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.38s cubic-bezier(0.2, 1, 0.2, 1);
}

.eazypcb-quote-modal--open .eazypcb-quote-panel {
	transform: scale(1) translate3d(0, 0, 0);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.eazypcb-quote-modal__backdrop,
	.eazypcb-quote-panel {
		transition: none;
	}
	.eazypcb-quote-modal--open .eazypcb-quote-panel {
		transform: none;
	}
}
