/*
 * 詢價入口（zz-atonkevin-inquiry.php）：全站固定「要報價」按鈕、短表單面板、文章文末詢價句。
 * 顏色沿用 site.css 變數；白字壓深紫→深粉漸層，兩端對比皆 ≥ 4.5（同 site.css 按鈕）。
 * 桌機：右下角一顆；手機（≤ 640px）：貼在底部的一條，body 底部留出同高的空間，不蓋到頁尾與內文。
 */

.ak-quote-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 1.4em;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ak-btn-from), var(--ak-btn-to));
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.ak-quote-fab:hover,
.ak-quote-fab:focus-visible {
	filter: brightness(1.12);
	color: #fff !important;
}
.ak-quote-on .ak-quote-fab {
	visibility: hidden;
}

.ak-quote-panel {
	position: fixed;
	inset: 0;
	z-index: 9995;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 20px;
	background: rgba(8, 6, 16, .6);
}
.ak-quote-panel[hidden] {
	display: none;
}
.ak-quote-box {
	position: relative;
	width: min(420px, 100%);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	padding: 22px 22px 16px;
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius);
	background: var(--ak-surface-2);
	color: var(--ak-text);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}
.ak-quote-title {
	margin: 0 2em .2em 0;
	color: var(--ak-heading);
	font-size: 1.25rem;
	font-weight: 700;
}
.ak-quote-lead {
	margin: 0 0 1em;
	color: var(--ak-muted);
	font-size: .92rem;
}
.ak-quote-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--ak-muted);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}
.ak-quote-close:hover,
.ak-quote-close:focus-visible {
	color: var(--ak-heading);
}
.ak-quote .wpcf7 label {
	display: block;
	margin-bottom: .2em;
	color: var(--ak-text);
	font-size: .92rem;
}
.ak-quote .wpcf7 input:not([type=submit]),
.ak-quote .wpcf7 select,
.ak-quote .wpcf7 textarea {
	width: 100%;
	background: var(--ak-surface);
	border: 1px solid var(--ak-border);
	color: var(--ak-text);
	border-radius: 10px;
}
.ak-quote .wpcf7 p {
	margin: 0 0 .8em;
}
.ak-quote .wpcf7 input[type=submit] {
	width: 100%;
	min-height: 46px;
	background: linear-gradient(90deg, var(--ak-btn-from), var(--ak-btn-to));
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-weight: 600;
}

/* 文章文末一句話加按鈕（排在作者欄之前） */
.ak-quote-cta {
	margin-top: 2.4em !important;
	padding: 1em 1.2em;
	border: 1px solid var(--ak-border);
	border-radius: var(--ak-radius);
	background: var(--ak-surface);
	color: var(--ak-text);
}
.ak-quote-cta .ak-quote-cta-btn {
	display: inline-block;
	margin-left: .4em;
	padding: .35em 1.2em;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ak-btn-from), var(--ak-btn-to));
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}

@media (max-width: 640px) {
	body {
		padding-bottom: 56px;
	}
	.ak-quote-fab {
		right: 0;
		bottom: 0;
		left: 0;
		min-height: 52px;
		padding-bottom: env(safe-area-inset-bottom, 0);
		border-radius: 0;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .4);
	}
	.ak-quote-panel {
		align-items: stretch;
		padding: 0;
	}
	.ak-quote-box {
		width: 100%;
		max-height: none;
		border-radius: 0;
		border: 0;
	}
	.ak-quote-cta .ak-quote-cta-btn {
		display: block;
		margin: .6em 0 0;
		text-align: center;
	}
}
