/* =============================================================
   Product Tech Spec Widget
   ============================================================= */

.ae-pts-wrap {
	background-color: #f4f4f4;
	width: 100%;
	box-sizing: border-box;
}

/* ── Inner two-column grid ─────────────────────────────────── */
.ae-pts-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	max-width: 100%;
	box-sizing: border-box;
	padding: 60px 40px;
}
button.ae-pts-guide--pdf{
	padding: 0px !important;
	border: none !important;
}
button.ae-pts-guide--pdf:hover{
	background: unset !important;
	color:unset !important;
}
/* Reverse: image left, text right */
.ae-pts-inner--reverse .ae-pts-text  { order: 2; }
.ae-pts-inner--reverse .ae-pts-image { order: 1; }

/* ── Text column ───────────────────────────────────────────── */
.ae-pts-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Eyebrow label */
.ae-pts-eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #c41020;
	margin-bottom: 12px;
	line-height: 1.4;
}

/* Product title */
.ae-pts-title {
	font-size: clamp(28px, 3vw, 46px);
	font-weight: 700;
	line-height: 1.15;
	color: #1a1a1a;
	margin: 0 0 16px;
}

/* Description */
.ae-pts-desc {
	font-size: 15px;
	line-height: 1.7;
	color: #555;
	margin-bottom: 24px;
}

.ae-pts-desc p {
	margin: 0 0 12px;
}

.ae-pts-desc p:last-child {
	margin-bottom: 0;
}

/* Quickstart guide link */
.ae-pts-guide {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #c41020;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.ae-pts-guide:hover {
	opacity: 0.75;
	text-decoration: none;
}

.ae-pts-guide__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background-color: #c41020;
	border-radius: 6px;
	flex-shrink: 0;
}

.ae-pts-guide__icon svg {
	display: block;
}

/* ── Image column ──────────────────────────────────────────── */
.ae-pts-image {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ae-pts-image img,
.ae-pts-img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.ae-pts-image--placeholder {
	width: 100%;
	min-height: 200px;
	background: #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
	font-size: 13px;
	border-radius: 4px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.ae-pts-inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 40px 24px;
	}

	/* Always show image above text on tablet/mobile */
	.ae-pts-text  { order: 2; }
	.ae-pts-image { order: 1; }

	/* Override reverse layout on small screens — keep image on top */
	.ae-pts-inner--reverse .ae-pts-text  { order: 2; }
	.ae-pts-inner--reverse .ae-pts-image { order: 1; }

	.ae-pts-image {
		justify-content: center;
	}

	.ae-pts-image img {
		max-width: 480px;
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.ae-pts-inner {
		padding: 32px 20px;
		gap: 24px;
	}

	.ae-pts-title {
		font-size: 28px;
	}
}

/* =============================================================
   PDF Modal
   ============================================================= */

body.ae-pdf-modal-open {
	overflow: hidden;
}

/* Root — hidden by default, flex when open */
.ae-pdf-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.ae-pdf-modal.is-open {
	display: flex;
}

/* Overlay */
.ae-pdf-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

/* Dialog */
.ae-pdf-modal__dialog {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	width: calc(100% - 32px);
	max-width: 900px;
	max-height: 90vh;
	overflow: hidden;
}

/* Header */
.ae-pdf-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #e0e0e0;
	flex-shrink: 0;
	background: #f8f8f8;
}

.ae-pdf-modal__title {
	font-size: 15px;
	font-weight: 600;
	color: #222;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	min-width: 0;
}

/* Window control buttons group */
.ae-pdf-modal__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.ae-pdf-modal__minimize,
.ae-pdf-modal__fullscreen {
	width: 28px;
	height: 28px;
	border: none;
	background: none;
	cursor: pointer;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s;
	padding: 0;
	line-height: 1;
}

.ae-pdf-modal__minimize:hover,
.ae-pdf-modal__fullscreen:hover {
	background: #e8e8e8;
	color: #222;
}

.ae-pdf-modal__close {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 22px;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.15s;
	padding: 0;
	line-height: 1;
}

.ae-pdf-modal__close:hover {
	background: #e8e8e8;
	color: #222;
}

/* Body — scrollable, dark bg like a PDF reader */
.ae-pdf-modal__body {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px;
	background: #525659;
	min-height: 200px;
}

.ae-pdf-canvas {
	display: block;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
	max-width: 100%;
	height: auto;
}

/* Loader */
.ae-pdf-modal__loader {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 200px;
	width: 100%;
}

.ae-pdf-modal__spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ae-pdf-spin 0.7s linear infinite;
}

@keyframes ae-pdf-spin {
	to { transform: rotate(360deg); }
}

/* Footer — navigation */
.ae-pdf-modal__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-top: 1px solid #e0e0e0;
	flex-shrink: 0;
	background: #f8f8f8;
}

.ae-pdf-nav {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ae-pdf-nav__prev,
.ae-pdf-nav__next {
	width: 36px;
	height: 36px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 24px;
	color: #444;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	padding: 0;
	line-height: 1;
}

.ae-pdf-nav__prev:hover:not(:disabled),
.ae-pdf-nav__next:hover:not(:disabled) {
	background: #c41020;
	border-color: #c41020;
	color: #fff;
}

.ae-pdf-nav__prev:disabled,
.ae-pdf-nav__next:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.ae-pdf-nav__current,
.ae-pdf-nav__total {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	min-width: 20px;
	text-align: center;
}

.ae-pdf-nav__sep {
	font-size: 14px;
	color: #999;
}

/* ── Fullscreen state ──────────────────────────────────────── */
.ae-pdf-modal--fullscreen .ae-pdf-modal__overlay {
	display: none;
}

.ae-pdf-modal--fullscreen .ae-pdf-modal__dialog {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	border-radius: 0;
}

/* ── Minimized state ───────────────────────────────────────── */
.ae-pdf-modal--minimized {
	pointer-events: none;
	align-items: flex-end;
	justify-content: flex-end;
	padding-right: 20px;
}

.ae-pdf-modal--minimized .ae-pdf-modal__overlay {
	display: none;
}

.ae-pdf-modal--minimized .ae-pdf-modal__dialog {
	pointer-events: all;
	width: 300px;
	max-width: 300px;
	max-height: none;
	height: auto;
	border-radius: 8px 8px 0 0;
}

.ae-pdf-modal--minimized .ae-pdf-modal__body,
.ae-pdf-modal--minimized .ae-pdf-modal__footer {
	display: none;
}

@media (max-width: 600px) {
	.ae-pdf-modal__dialog {
		max-height: 95vh;
		border-radius: 6px;
	}

	.ae-pdf-modal__body {
		padding: 8px;
	}
}
