/**
 * IdeaWeb Woo Product QR Manual — single product document block.
 *
 * @package Ideaweb_Woo_Product_QR_Manual
 */

.ideaweb-product-documents-wrap.ideaweb-product-display-mode {
	margin: 1.5em 0 0;
	padding: 1.25em 0 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	clear: both;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-button-wrap {
	margin: 0 0 1.25em;
	/* 避免主題 p 的 line-height 在錨點旁產生多餘行高，讓按鈕看起來偏上 */
	line-height: 0;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-updated-line {
	font-size: 0.875rem;
	line-height: 1.4;
	color: #555;
	margin: 0 0 1em;
}

/**
 * PDF 下載按鈕：僅限本 plugin 區塊內，不使用 .button 以免套用 Woo／主題按鈕樣式。
 * 以 inline-flex 做真正的垂直／水平置中，不依賴 line-height 假置中。
 */
.ideaweb-product-documents-wrap .ideaweb-product-manual-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.7em 1.75em;
	min-height: 2.75em;
	line-height: 1.25;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	color: #ffffff;
	background-color: #ec6618;
	border: 0 solid transparent;
	border-radius: 30px;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-button:hover,
.ideaweb-product-documents-wrap .ideaweb-product-manual-button:focus {
	color: #ffffff;
	background-color: #d85914;
	text-decoration: none;
	border-color: transparent;
	box-shadow: none;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-button:active {
	color: #ffffff;
	background-color: #c24e12;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-button:focus-visible {
	outline: 2px solid #ec6618;
	outline-offset: 2px;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-support-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35em 0;
	margin: 0 0 1.25em;
	padding: 0;
	font-size: 16px;
	line-height: 1.4;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-support-links .bold-title {
	margin: 0 1em 0 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-support-link {
	display: inline-block;
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	color: #004280;
	text-decoration: none;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-support-link::after {
	content: "|";
	display: inline-block;
	margin: 0 1em;
	color: #004280;
	text-decoration: none;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-support-link:last-child::after {
	content: "";
	margin: 0;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-support-link:hover,
.ideaweb-product-documents-wrap .ideaweb-product-manual-support-link:focus {
	color: #004280;
	text-decoration: underline;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-support-link:hover::after,
.ideaweb-product-documents-wrap .ideaweb-product-manual-support-link:focus::after {
	text-decoration: none;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-qr {
	margin: 0;
	padding: 0;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-qr-img {
	margin: 0 0 0.35em;
	padding: 0;
	line-height: 0;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-qr-img img {
	display: block;
	max-width: 180px;
	height: auto;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 2px;
	padding: 4px;
	background: #fff;
	box-sizing: border-box;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-qr-hint {
	font-size: 0.875rem;
	line-height: 1.4;
	color: #555;
	margin: 0;
	letter-spacing: 0.01em;
}

.ideaweb-product-documents-wrap .ideaweb-product-manual-empty {
	font-size: 0.875rem;
	color: #666;
	margin: 0;
}
