/* WCQ 購物車「採購訂單」區塊 */
.wcq-po-box {
	margin: 0 0 20px;
	padding: 16px 18px;
	border: 1px solid #dbe6e6;
	border-radius: 10px;
	background: #f6fbfb;
}

.wcq-po-question {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: #0f4c5c;
}

.wcq-po-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wcq-po-btn {
	flex: 1 1 0;
	min-width: 130px;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.wcq-po-btn--primary {
	background: #0f4c5c;
	border-color: #0f4c5c;
	color: #ffffff;
}

.wcq-po-btn--primary:hover,
.wcq-po-btn--primary:focus {
	background: #0c4a4d;
	border-color: #0c4a4d;
	color: #ffffff;
}

.wcq-po-btn--ghost {
	background: #ffffff;
	border-color: #0f4c5c;
	color: #0f4c5c;
}

.wcq-po-btn--ghost:hover,
.wcq-po-btn--ghost:focus {
	background: #eaf4f4;
	color: #0f4c5c;
}

.wcq-po-btn--block {
	display: block;
	width: 100%;
	flex: 0 0 auto;
}

.wcq-po-btn[disabled],
.wcq-po-btn.is-busy {
	opacity: .6;
	cursor: default;
}

.wcq-po-note {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #4a5a5a;
}

.wcq-po-note.is-ok {
	color: #1a7f5a;
}

.wcq-po-note.is-error {
	color: #c0392b;
}

.wcq-po-hint {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #6b7a7a;
}

/* 彈窗
   自 0.2.5 起由頁尾（wp_footer）輸出，已脫離 .cart_totals 的堆疊脈絡；
   z-index 需高於主題頁首（Blocksy 最高 100000）才能完整蓋住頁面。 */
.wcq-po-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.wcq-po-modal[hidden] {
	display: none !important;
}

.wcq-po-modal__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(12, 32, 36, .45);
}

.wcq-po-modal__panel {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 88vh;
	overflow-y: auto;
	padding: 24px 22px;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.wcq-po-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #6b7a7a;
	cursor: pointer;
}

.wcq-po-modal__close:hover {
	color: #0f4c5c;
}

.wcq-po-modal__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	color: #0f4c5c;
}

.wcq-po-field {
	display: block;
	margin-bottom: 12px;
}

.wcq-po-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	color: #33474a;
}

.wcq-po-label em {
	font-style: normal;
	color: #c0392b;
}

.wcq-po-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cfdcdc;
	border-radius: 8px;
	background: #ffffff;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.3;
	color: #1f2937;
}

.wcq-po-field input:focus {
	outline: none;
	border-color: #0f4c5c;
	box-shadow: 0 0 0 3px rgba(15, 76, 92, .12);
}

.wcq-po-form-note {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #1a7f5a;
}

.wcq-po-form-note.is-error {
	color: #c0392b;
}

.wcq-po-or {
	position: relative;
	margin: 18px 0;
	text-align: center;
}

.wcq-po-or::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #e6eeee;
}

.wcq-po-or span {
	position: relative;
	display: inline-block;
	padding: 0 10px;
	background: #ffffff;
	font-size: 12px;
	color: #8b9a9a;
}

.wcq-po-now-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
	color: #4a5a5a;
	text-align: center;
}

.wcq-po-now-mail {
	color: #0f4c5c;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	word-break: break-all;
}

.wcq-po-now-mail:hover,
.wcq-po-now-mail:focus {
	color: #0c4a4d;
}

html.wcq-po-modal-open,
html.wcq-po-modal-open body {
	overflow: hidden;
}

@media (max-width: 480px) {
	.wcq-po-buttons {
		flex-direction: column;
	}

	.wcq-po-btn {
		width: 100%;
	}
}
