.gcp-pdf-tabs,
.gcp-pdf-shell,
.gcp-pdf-viewer {
	--gcp-bg: #11161c;
	--gcp-panel: #161c24;
	--gcp-line: rgba(255, 255, 255, 0.1);
	--gcp-text: #f3f6f8;
	--gcp-muted: #9aa7b3;
	--gcp-accent: #2bb3a8;
	--gcp-accent-soft: rgba(43, 179, 168, 0.16);
	--gcp-paper: #ececec;
	--gcp-radius: 12px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.gcp-pdf-tabs *,
.gcp-pdf-shell *,
.gcp-pdf-viewer * {
	box-sizing: border-box;
}

.gcp-pdf-tabs {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gcp-pdf-tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gcp-pdf-tabs .gcp-pdf-tab {
	all: unset;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--gcp-line) !important;
	background: var(--gcp-panel) !important;
	color: var(--gcp-muted) !important;
	border-radius: 999px !important;
	padding: 9px 14px !important;
	min-height: 0 !important;
	min-width: 0 !important;
	font: inherit !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

.gcp-pdf-tabs .gcp-pdf-tab.is-active,
.gcp-pdf-tabs .gcp-pdf-tab[aria-selected="true"] {
	background: var(--gcp-accent-soft) !important;
	border-color: rgba(43, 179, 168, 0.45) !important;
	color: var(--gcp-text) !important;
}

.gcp-pdf-shell {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	height: var(--gcp-height, 85dvh);
	min-height: 0;
}

.gcp-pdf-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-shrink: 0;
	padding: 4px 2px 14px;
	background: #fff;
	color: #3a3f45;
}

.gcp-pdf-heading-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.gcp-pdf-heading-ico {
	position: relative;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.gcp-pdf-heading-ico::before,
.gcp-pdf-heading-ico::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: #4b5560;
}

.gcp-pdf-heading-ico::before {
	width: 7px;
	height: 7px;
	top: 1px;
	left: 5px;
	box-shadow:
		-5px 8px 0 #4b5560,
		6px 8px 0 #4b5560;
}

.gcp-pdf-heading-ico::after {
	width: 2px;
	height: 8px;
	top: 6px;
	left: 8px;
	border-radius: 1px;
	transform: rotate(-55deg);
	box-shadow: 5px 1px 0 #4b5560;
}

.gcp-pdf-heading-name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #3a3f45;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gcp-pdf-shell .gcp-pdf-download {
	all: unset;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	height: auto !important;
	min-height: 36px !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	padding: 7px 14px !important;
	margin: 0 !important;
	border: 1px solid #d7dbe0 !important;
	border-radius: 6px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #3a3f45 !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	cursor: pointer;
	flex-shrink: 0;
}

.gcp-pdf-shell .gcp-pdf-download:hover,
.gcp-pdf-shell .gcp-pdf-download:focus-visible {
	background: #f7f8f9 !important;
	border-color: #c5ccd3 !important;
	outline: none !important;
}

.gcp-pdf-download-ico {
	position: relative;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

.gcp-pdf-download-ico::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 0;
	width: 2px;
	height: 9px;
	background: currentColor;
}

.gcp-pdf-download-ico::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 5px;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.gcp-pdf-viewer {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	flex: 1 1 auto;
	min-height: 0;
	background: var(--gcp-panel);
	border: 1px solid var(--gcp-line);
	border-radius: var(--gcp-radius);
	color: var(--gcp-text);
}

.gcp-pdf-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	padding: 10px 14px;
	background: var(--gcp-bg);
	border-bottom: 1px solid var(--gcp-line);
	flex-shrink: 0;
}

.gcp-pdf-title {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	flex: 1 1 auto;
}

.gcp-pdf-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 8px;
	flex: 0 0 auto;
}

.gcp-pdf-toolgroup {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
}

.gcp-pdf-viewer .gcp-pdf-btn {
	all: unset;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	max-width: 34px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--gcp-text) !important;
	text-decoration: none !important;
	line-height: 0 !important;
	font-size: 0 !important;
	cursor: pointer;
}

.gcp-pdf-viewer .gcp-pdf-btn:hover,
.gcp-pdf-viewer .gcp-pdf-btn:focus-visible {
	background: var(--gcp-accent-soft) !important;
	outline: none !important;
}

.gcp-pdf-viewer .gcp-pdf-btn[aria-disabled="true"] {
	opacity: 0.35;
	pointer-events: none;
	cursor: default;
}

.gcp-pdf-ico {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.gcp-pdf-ico::before,
.gcp-pdf-ico::after {
	content: "";
	position: absolute;
	box-sizing: border-box;
	border-color: currentColor;
}

.gcp-pdf-ico-prev::before,
.gcp-pdf-ico-next::before {
	top: 3px;
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.gcp-pdf-ico-prev::before {
	left: 6px;
	transform: rotate(-135deg);
}

.gcp-pdf-ico-next::before {
	left: 1px;
	transform: rotate(45deg);
}

.gcp-pdf-ico-zoom-out::before,
.gcp-pdf-ico-zoom-in::before,
.gcp-pdf-ico-zoom-in::after {
	left: 2px;
	top: 7px;
	width: 12px;
	height: 0;
	border-top: 2px solid currentColor;
}

.gcp-pdf-ico-zoom-in::after {
	left: 7px;
	top: 2px;
	width: 0;
	height: 12px;
	border-top: 0;
	border-left: 2px solid currentColor;
}

.gcp-pdf-ico-fit::before {
	inset: 1px;
	border: 2px solid currentColor;
	border-radius: 2px;
}

.gcp-pdf-ico-download {
	background: linear-gradient(currentColor, currentColor) 50% 1px / 2px 8px no-repeat;
}

.gcp-pdf-ico-download::before {
	left: 3px;
	top: 4px;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.gcp-pdf-ico-download::after {
	left: 2px;
	bottom: 0;
	width: 12px;
	height: 5px;
	border: 2px solid currentColor;
	border-top: 0;
}

.gcp-pdf-ico-external::before {
	left: 1px;
	top: 5px;
	width: 10px;
	height: 10px;
	border: 2px solid currentColor;
}

.gcp-pdf-ico-external::after {
	right: 1px;
	top: 1px;
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	box-shadow: inset -1px 1px 0 currentColor;
}

.gcp-pdf-page {
	min-width: 48px;
	padding: 0 4px;
	text-align: center;
	font-size: 12px;
	line-height: 34px;
	color: var(--gcp-muted);
	font-variant-numeric: tabular-nums;
}

.gcp-pdf-stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
		var(--gcp-paper);
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x pan-y;
}

.gcp-pdf-canvas {
	display: block;
	margin: 16px auto;
	max-width: none;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 20, 25, 0.18);
}

.gcp-pdf-loading,
.gcp-pdf-fail {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 24px;
	text-align: center;
	background: rgba(236, 236, 236, 0.92);
	color: #24303a;
	z-index: 2;
}

.gcp-pdf-loading[hidden],
.gcp-pdf-fail[hidden] {
	display: none;
}

.gcp-pdf-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid rgba(36, 48, 58, 0.15);
	border-top-color: var(--gcp-accent);
	border-radius: 50%;
	animation: gcp-pdf-spin 0.7s linear infinite;
}

.gcp-pdf-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	background: #0f1419;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.gcp-pdf-error {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff4f2;
	color: #8a2418;
}

@keyframes gcp-pdf-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 720px) {
	.gcp-pdf-toolbar {
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	.gcp-pdf-title {
		flex: 1 1 calc(100% - 56px);
		white-space: nowrap;
		font-size: 12px;
		padding-right: 8px;
	}

	.gcp-pdf-tools {
		flex: 1 1 100%;
		justify-content: space-between;
	}

	.gcp-pdf-hide-sm {
		display: none !important;
	}

	.gcp-pdf-shell {
		height: min(var(--gcp-height, 85dvh), 90dvh);
	}

	.gcp-pdf-heading {
		padding-bottom: 12px;
	}

	.gcp-pdf-heading-name {
		font-size: 15px;
	}

	.gcp-pdf-viewer {
		border-radius: 12px;
	}

	.gcp-pdf-tabs .gcp-pdf-tab {
		flex: 1 1 calc(50% - 8px);
		text-align: center;
	}
}

/*
 * Elementor popup close (X) sits on the top-right of the white dialog.
 * Keep toolbar actions clear of it, and let the X sit in empty space.
 */
.elementor-popup-modal .dialog-widget-content:has(.gcp-pdf-shell),
.elementor-popup-modal .dialog-message:has(.gcp-pdf-shell),
.elementor-popup-modal .dialog-lightbox-message:has(.gcp-pdf-shell),
.elementor-popup-modal .elementor:has(.gcp-pdf-shell),
.elementor-popup-modal .e-con:has(.gcp-pdf-shell),
.elementor-popup-modal .elementor-section:has(.gcp-pdf-shell),
.elementor-popup-modal .elementor-container:has(.gcp-pdf-shell),
.elementor-popup-modal .elementor-widget-wrap:has(.gcp-pdf-shell),
.elementor-popup-modal .elementor-widget:has(.gcp-pdf-shell),
.elementor-popup-modal .elementor-widget-container:has(.gcp-pdf-shell),
.elementor-popup-modal .elementor-shortcode:has(.gcp-pdf-shell),
.elementor-location-popup:has(.gcp-pdf-shell) {
	height: 100% !important;
	min-height: 0 !important;
}

.elementor-popup-modal .gcp-pdf-shell,
.elementor-location-popup .gcp-pdf-shell,
.dialog-widget-content .gcp-pdf-shell {
	height: 100% !important;
	max-height: 100%;
}

.elementor-popup-modal .gcp-pdf-heading,
.elementor-location-popup .gcp-pdf-heading,
.dialog-widget-content .gcp-pdf-heading {
	padding-right: 48px;
	padding-bottom: 10px;
}

.elementor-popup-modal .dialog-close-button,
.elementor-location-popup .dialog-close-button {
	z-index: 20;
}
