/**
 * Google Drive PDF Viewer Lite — front styles (minimal).
 */

.gdpv-wrap {
	box-sizing: border-box;
	max-width: 100%;
	margin: 1em 0;
}

.gdpv-wrap *,
.gdpv-wrap *::before,
.gdpv-wrap *::after {
	box-sizing: inherit;
}

/* ——— Popup: শুধু বাটন, মাঝখানে ——— */
.gdpv-mode-popup .gdpv-trigger-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	text-align: center;
}

.gdpv-open-btn {
	display: inline-block;
	margin: 0;
	padding: 0.55em 1.35em;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	border: none;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.gdpv-open-btn:hover,
.gdpv-open-btn:focus {
	background: #135e96;
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	outline: none;
}

.gdpv-open-btn:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.gdpv-credit--trigger {
	text-align: center;
	margin-top: 0.5em;
}

/* ——— Modal ——— */
.gdpv-modal[hidden] {
	display: none !important;
}

.gdpv-modal:not([hidden]) {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 100000;
	padding: env(safe-area-inset-top, 12px) env(safe-area-inset-right, 12px) env(safe-area-inset-bottom, 12px)
		env(safe-area-inset-left, 12px);
}

.gdpv-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.gdpv-modal-panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	max-width: min(1100px, 100%);
	max-height: calc(100vh - 24px);
	margin: 0 auto;
	top: 50%;
	transform: translateY(-50%);
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.gdpv-modal-toolbar {
	flex: 0 0 auto;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 6px 8px;
	background: #f0f0f1;
	border-bottom: 1px solid #dcdcde;
}

.gdpv-modal-close {
	margin: 0;
	padding: 0 10px;
	min-width: 40px;
	height: 36px;
	font-size: 24px;
	line-height: 1;
	border: none;
	background: transparent;
	color: #1d2327;
	cursor: pointer;
	border-radius: 4px;
}

.gdpv-modal-close:hover,
.gdpv-modal-close:focus {
	background: #dcdcde;
	outline: none;
}

.gdpv-modal-close:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.gdpv-modal-frame {
	flex: 1 1 auto;
	min-height: 200px;
	border-radius: 0;
	border-left: none;
	border-right: none;
	border-bottom: none;
}

.gdpv-actions--modal {
	flex: 0 0 auto;
	padding: 12px 16px 16px;
	text-align: center;
	background: #fff;
	border-top: 1px solid #f0f0f1;
}

html.gdpv-scroll-locked,
html.gdpv-scroll-locked body {
	overflow: hidden;
}

/* ——— Inline iframe ——— */
.gdpv-frame-shell {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #f6f7f7;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gdpv-frame-shell .gdpv-iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.gdpv-actions {
	margin: 0.75em 0 0;
}

.gdpv-download.button {
	display: inline-block;
	padding: 0.45em 1em;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	border-radius: 4px;
	background: #2271b1;
	color: #fff !important;
	border: none;
	cursor: pointer;
}

.gdpv-download.button:hover,
.gdpv-download.button:focus {
	background: #135e96;
	color: #fff !important;
}

.gdpv-credit {
	margin: 0.35em 0 0;
	opacity: 0.65;
}

.gdpv-error {
	padding: 0.75em 1em;
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	color: #1d2327;
}

@media print {
	body.gdpv-print-suppressed .gdpv-wrap {
		display: none !important;
	}
}
