:root {
	--pgg-menu-bg: #07141e;
	--pgg-menu-panel: #091a26;
	--pgg-menu-line: rgba(134, 166, 190, .22);
	--pgg-menu-gold: #ffd900;
	--pgg-menu-muted: #9fb1c1;
}

.pgg-custom-menu-element,
.pgg-custom-menu-element *,
.pgg-user-element,
.pgg-user-element * {
	box-sizing: border-box;
}

.pgg-custom-menu-element {
	position: relative;
	min-width: 0;
	color: var(--pgg-menu-top-color, #f4f7fa);
}

.pgg-custom-menu-element[data-element-width="full"] {
	width: 100%;
	flex: 1 1 100%;
}

.pgg-custom-menu-inner,
.pgg-custom-menu-site {
	width: 100%;
	min-width: 0;
}

.pgg-custom-menu-list,
.pgg-custom-menu-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pgg-custom-menu-list {
	display: flex;
	align-items: stretch;
	height: 100%;
}

.pgg-custom-menu-list > li {
	position: static;
	display: flex;
	align-items: stretch;
}

.pgg-custom-menu-top-link {
	display: flex;
	align-items: center;
	min-height: 48px;
}

.pgg-custom-menu-top-link > a {
	display: flex;
	align-items: center;
	height: 100%;
	padding-inline: var(--pgg-menu-top-spacing, 11px);
	color: var(--pgg-menu-top-color, #f4f7fa);
	text-decoration: none;
	white-space: nowrap;
	transition: color .18s ease, background-color .18s ease;
}

.pgg-custom-menu-top-link > a,
.pgg-custom-mega-title,
.pgg-custom-mega-group li > a,
.pgg-user-trigger,
.pgg-user-summary strong,
.pgg-user-guest-copy strong,
.pgg-user-panel a,
.pgg-user-section-trigger {
	font-family: var(--theme-font-family, inherit);
	font-size: var(--theme-font-size, inherit);
	font-weight: var(--theme-font-weight, inherit);
	font-style: var(--theme-font-style, normal);
	line-height: var(--theme-line-height, normal);
	letter-spacing: var(--theme-letter-spacing, normal);
	text-transform: var(--theme-text-transform, none);
	text-decoration: var(--theme-text-decoration, none);
}

.pgg-custom-menu-top-link > a:hover {
	color: var(--pgg-menu-top-hover, #ffd900);
}

.pgg-custom-menu-list > .current-menu-item > .pgg-custom-menu-top-link > a,
.pgg-custom-menu-list > .current-menu-parent > .pgg-custom-menu-top-link > a,
.pgg-custom-menu-list > .current-menu-ancestor > .pgg-custom-menu-top-link > a {
	color: var(--pgg-menu-top-active, #ffd900);
}

.pgg-custom-submenu-trigger,
.pgg-custom-menu-mobile-trigger,
.pgg-custom-mega-close,
.pgg-user-trigger,
.pgg-user-section-trigger {
	appearance: none;
	border: 0;
	cursor: pointer;
}

.pgg-custom-submenu-trigger,
.pgg-custom-menu-mobile-trigger,
.pgg-custom-mega-close {
	font: inherit;
}

.pgg-custom-submenu-trigger {
	display: grid;
	place-items: center;
	width: 28px;
	height: 36px;
	margin-left: calc(var(--pgg-menu-top-spacing, 11px) * -.65);
	padding: 0;
	background: transparent;
	color: var(--pgg-menu-muted);
}

.pgg-custom-submenu-trigger:hover,
.pgg-custom-menu-depth-0.is-open .pgg-custom-submenu-trigger {
	color: var(--pgg-menu-top-hover, #ffd900);
}

.pgg-custom-icon {
	display: block;
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pgg-custom-submenu-trigger .pgg-custom-icon,
.pgg-user-trigger > .pgg-custom-icon,
.pgg-user-section-trigger .pgg-custom-icon {
	width: 14px;
	height: 14px;
	transition: transform var(--pgg-menu-duration, 220ms) ease;
}

.pgg-custom-menu-depth-0.is-open .pgg-custom-submenu-trigger .pgg-custom-icon,
.pgg-user-element.is-open .pgg-user-trigger > .pgg-custom-icon,
.pgg-user-section.is-open .pgg-user-section-trigger .pgg-custom-icon {
	transform: rotate(90deg);
}

.pgg-custom-mega {
	position: absolute;
	z-index: 99990;
	top: calc(100% + var(--pgg-menu-dropdown-y, 0px));
	left: 0;
	width: 100%;
	padding: var(--pgg-menu-padding, 22px);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	background: var(--pgg-menu-dropdown-bg, rgba(7, 20, 30, .99));
	border: var(--pgg-menu-border, 1px solid rgba(255, 217, 0, .42));
	border-radius: var(--pgg-menu-radius, 0);
	box-shadow: var(--pgg-menu-shadow, 0 18px 48px rgba(0, 0, 0, .62));
	transform-origin: top center;
	transition: opacity var(--pgg-menu-duration, 220ms) ease, transform var(--pgg-menu-duration, 220ms) ease, clip-path var(--pgg-menu-duration, 220ms) ease, visibility 0s linear var(--pgg-menu-duration, 220ms);
}

.pgg-custom-menu-element[data-dropdown-width="full"] .pgg-custom-mega {
	left: var(--pgg-menu-anchor-left, 0px);
	width: var(--pgg-menu-anchor-width, 100%);
}

.pgg-custom-menu-element[data-dropdown-width="custom"] .pgg-custom-mega {
	width: min(var(--pgg-menu-dropdown-width, 760px), calc(100vw - 24px));
}

.pgg-custom-menu-element[data-dropdown-align="center"] .pgg-custom-mega {
	left: 50%;
	translate: calc(-50% + var(--pgg-menu-dropdown-x, 0px)) 0;
}

.pgg-custom-menu-element[data-dropdown-align="right"] .pgg-custom-mega {
	left: auto;
	right: calc(var(--pgg-menu-dropdown-x, 0px) * -1);
}

.pgg-custom-menu-element[data-dropdown-align="left"] .pgg-custom-mega {
	left: var(--pgg-menu-dropdown-x, 0px);
}

.pgg-custom-menu-element[data-dropdown-width="full"] .pgg-custom-mega {
	translate: 0 0;
	right: auto;
}

.pgg-custom-menu-element[data-animation="slide"] .pgg-custom-mega {
	transform: translateY(-12px);
}

.pgg-custom-menu-element[data-animation="scale"] .pgg-custom-mega {
	transform: scale(.96);
}

.pgg-custom-menu-element[data-animation="curtain"] .pgg-custom-mega {
	clip-path: inset(0 0 100% 0);
}

.pgg-custom-menu-element[data-animation="none"] .pgg-custom-mega {
	transition-duration: 0s;
}

.pgg-custom-menu-depth-0.is-open > .pgg-custom-mega,
.pgg-custom-menu-element[data-interaction="hover"] .pgg-custom-menu-depth-0:hover > .pgg-custom-mega,
.pgg-custom-menu-element[data-interaction="hover"] .pgg-custom-menu-depth-0:focus-within > .pgg-custom-mega {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: none;
	clip-path: inset(0);
	transition-delay: 0s;
}

.pgg-custom-mega-head {
	display: none;
}

.pgg-custom-mega-grid {
	display: grid;
	grid-template-columns: repeat(var(--pgg-menu-columns, 5), minmax(0, 1fr));
	gap: var(--pgg-menu-column-gap, 24px);
}

.pgg-custom-mega-group {
	min-width: 0;
}

.pgg-custom-mega-title {
	display: block;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--pgg-menu-divider, rgba(255, 217, 0, .35));
	color: var(--pgg-menu-heading, #ffd900);
	text-decoration: none;
}

.pgg-custom-mega-group li + li {
	margin-top: 2px;
}

.pgg-custom-mega-group li > a {
	display: flex;
	align-items: center;
	gap: 7px;
	min-height: 31px;
	padding: 5px 7px;
	border-radius: 4px;
	color: var(--pgg-menu-item-color, #dce5ec);
	text-decoration: none;
	transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.pgg-custom-mega-group li > a::before {
	content: '';
	width: 5px;
	height: 5px;
	flex: 0 0 auto;
	border-right: 1px solid var(--pgg-menu-heading, #ffd900);
	border-bottom: 1px solid var(--pgg-menu-heading, #ffd900);
	transform: rotate(-45deg);
}

.pgg-custom-mega-group li > a:hover,
.pgg-custom-mega-group .current-menu-item > a {
	color: var(--pgg-menu-item-hover, #fff);
	background: var(--pgg-menu-hover-bg, rgba(255, 255, 255, .06));
	transform: translateX(2px);
}

.pgg-custom-mega-group li > a small {
	margin-left: auto;
	color: #42db86;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.pgg-custom-menu-mobile-trigger {
	display: none;
}

.pgg-custom-menu-empty {
	padding: 8px 12px;
	border: 1px dashed rgba(255, 217, 0, .55);
	color: var(--pgg-menu-muted);
	font-size: 12px;
}

/* Dynamic user element. */
.pgg-user-element {
	position: relative;
	color: var(--pgg-user-trigger-color, #f4f7fa);
}

.pgg-user-member,
.pgg-user-alerts {
	display: flex;
	align-items: center;
	gap: 5px;
}

.pgg-user-alert {
	position: relative;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--pgg-user-line, rgba(134, 166, 190, .22));
	border-radius: 5px;
	color: var(--pgg-menu-muted);
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.pgg-user-alert:hover {
	border-color: var(--pgg-user-trigger-hover, #ffd900);
	background: var(--pgg-user-hover-bg, rgba(255, 255, 255, .055));
	color: var(--pgg-user-trigger-hover, #ffd900);
}

.pgg-user-alert b,
.pgg-user-quick-links b {
	display: grid;
	place-items: center;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: #d83743;
	color: #fff;
	font-size: 9px;
	font-weight: 900;
	line-height: 1;
}

.pgg-user-alert > b {
	position: absolute;
	top: -6px;
	right: -6px;
}

.pgg-user-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 3px 9px 3px 4px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: var(--pgg-user-trigger-color, #f4f7fa);
	text-align: left;
	transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.pgg-user-trigger:hover,
.pgg-user-element.is-open .pgg-user-trigger {
	border-color: var(--pgg-user-line, rgba(134, 166, 190, .22));
	background: var(--pgg-user-hover-bg, rgba(255, 255, 255, .055));
	color: var(--pgg-user-trigger-hover, #ffd900);
}

.pgg-user-avatar,
.pgg-user-summary-avatar {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}

.pgg-user-avatar,
.pgg-user-avatar img,
.pgg-user-avatar .pg-avatar-composite,
.pgg-user-avatar .pg-avatar-base,
.pgg-user-avatar .pg-avatar-border-overlay {
	width: 38px;
	height: 38px;
}

.pgg-user-avatar img,
.pgg-user-summary-avatar img {
	display: block;
	border-radius: 50%;
	object-fit: cover;
}

.pgg-user-trigger-copy {
	display: grid;
	gap: 2px;
}

.pgg-user-trigger-copy strong {
	color: currentColor;
	line-height: 1.1;
}

.pgg-user-trigger-copy small,
.pgg-user-summary small {
	color: var(--pgg-menu-muted);
	font-size: 9px;
	line-height: 1.1;
}

.pgg-user-panel {
	position: absolute;
	z-index: 100000;
	top: calc(100% + var(--pgg-user-y, 8px));
	right: calc(var(--pgg-user-x, 0px) * -1);
	width: min(var(--pgg-user-width, 390px), calc(100vw - 24px));
	padding: var(--pgg-user-padding, 12px);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	background: var(--pgg-user-panel-bg, rgba(7, 20, 30, .99));
	border: var(--pgg-user-border, 1px solid rgba(255, 217, 0, .45));
	border-radius: var(--pgg-user-radius, 0);
	box-shadow: var(--pgg-user-shadow, 0 18px 45px rgba(0, 0, 0, .52));
	transform-origin: top center;
	transition: opacity var(--pgg-user-duration, 220ms) ease, transform var(--pgg-user-duration, 220ms) ease, clip-path var(--pgg-user-duration, 220ms) ease, visibility 0s linear var(--pgg-user-duration, 220ms);
}

.pgg-user-element[data-dropdown-align="left"] .pgg-user-panel {
	left: var(--pgg-user-x, 0px);
	right: auto;
}

.pgg-user-element[data-dropdown-align="center"] .pgg-user-panel {
	left: 50%;
	right: auto;
	translate: calc(-50% + var(--pgg-user-x, 0px)) 0;
}

.pgg-user-element[data-animation="slide"] .pgg-user-panel {
	transform: translateY(-10px);
}

.pgg-user-element[data-animation="scale"] .pgg-user-panel {
	transform: scale(.96);
}

.pgg-user-element[data-animation="curtain"] .pgg-user-panel {
	clip-path: inset(0 0 100% 0);
}

.pgg-user-element[data-animation="none"] .pgg-user-panel {
	transition-duration: 0s;
}

.pgg-user-element.is-open .pgg-user-panel {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: none;
	clip-path: inset(0);
	transition-delay: 0s;
}

.pgg-user-summary {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 4px 4px 12px;
	border-bottom: 1px solid var(--pgg-user-line, rgba(134, 166, 190, .22));
}

.pgg-user-summary-avatar,
.pgg-user-summary-avatar img,
.pgg-user-summary-avatar .pg-avatar-composite,
.pgg-user-summary-avatar .pg-avatar-base,
.pgg-user-summary-avatar .pg-avatar-border-overlay {
	width: 54px;
	height: 54px;
}

.pgg-user-summary > div,
.pgg-user-guest-copy {
	display: grid;
	gap: 3px;
}

.pgg-user-summary strong,
.pgg-user-guest-copy strong {
	color: var(--pgg-user-heading, #fff);
}

.pgg-user-summary a {
	color: var(--pgg-user-link-hover, #ffd900);
	font-size: 10px;
	text-decoration: none;
}

.pgg-user-quick-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 5px;
	padding: 10px 0;
}

.pgg-user-element[data-columns="1"] .pgg-user-quick-links {
	grid-template-columns: 1fr;
}

.pgg-user-quick-links a,
.pgg-user-logout,
.pgg-user-section-links a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 37px;
	padding: 7px 9px;
	border-radius: 4px;
	color: var(--pgg-user-link-color, #dce5ec);
	text-decoration: none;
	transition: color .16s ease, background-color .16s ease;
}

.pgg-user-quick-links a:hover,
.pgg-user-logout:hover,
.pgg-user-section-links a:hover {
	color: var(--pgg-user-link-hover, #ffd900);
	background: var(--pgg-user-hover-bg, rgba(255, 255, 255, .055));
}

.pgg-user-quick-links .pgg-custom-icon,
.pgg-user-logout .pgg-custom-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.pgg-user-quick-links b {
	margin-left: auto;
}

.pgg-user-sections {
	border-top: 1px solid var(--pgg-user-line, rgba(134, 166, 190, .22));
}

.pgg-user-section {
	border-bottom: 1px solid var(--pgg-user-line, rgba(134, 166, 190, .22));
}

.pgg-user-section-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 40px;
	padding: 0 8px;
	background: transparent;
	color: var(--pgg-user-link-color, #dce5ec);
	text-align: left;
}

.pgg-user-section-trigger:hover,
.pgg-user-section.is-open .pgg-user-section-trigger {
	color: var(--pgg-user-link-hover, #ffd900);
}

.pgg-user-section-links {
	display: block;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height var(--pgg-user-duration, 220ms) ease, opacity var(--pgg-user-duration, 220ms) ease;
}

.pgg-user-section.is-open .pgg-user-section-links {
	max-height: 420px;
	opacity: 1;
}

.pgg-user-section-links a {
	min-height: 34px;
	padding-left: 18px;
}

.pgg-user-logout {
	margin-top: 10px;
	color: #ff9aa1;
}

.pgg-user-guest-trigger {
	padding-inline: 10px;
}

.pgg-user-guest-copy {
	padding: 4px 4px 13px;
}

.pgg-user-guest-copy span {
	color: var(--pgg-menu-muted);
	font-size: 11px;
	line-height: 1.45;
}

.pgg-user-guest-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.pgg-user-guest-actions a {
	display: grid;
	place-items: center;
	min-height: 39px;
	border: 1px solid var(--pgg-user-line, rgba(134, 166, 190, .22));
	border-radius: 4px;
	color: var(--pgg-user-link-color, #dce5ec);
	text-decoration: none;
}

.pgg-user-guest-actions .pgg-user-primary {
	border-color: var(--pgg-menu-gold);
	background: var(--pgg-menu-gold);
	color: #071019;
}

/* Native Blocksy off-canvas placement: render content directly, without nesting another drawer. */
.pgg-custom-menu-offcanvas,
.pgg-user-offcanvas {
	width: 100%;
}

.pgg-custom-menu-offcanvas .pgg-custom-menu-inner,
.pgg-user-offcanvas .pgg-user-panel {
	position: static;
	display: block;
	width: 100%;
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	translate: none;
	transform: none;
	clip-path: none;
}

.pgg-user-offcanvas .pgg-user-member {
	display: block;
}

.pgg-user-offcanvas .pgg-user-panel {
	border: var(--pgg-user-border, 1px solid rgba(255, 217, 0, .45));
	box-shadow: none;
}

.pgg-custom-menu-offcanvas .pgg-custom-menu-list {
	display: block;
	height: auto;
}

.pgg-custom-menu-offcanvas .pgg-custom-menu-list > li {
	display: block;
	border-bottom: 1px solid var(--pgg-menu-line);
}

.pgg-custom-menu-offcanvas .pgg-custom-menu-top-link > a {
	flex: 1 1 auto;
}

.pgg-custom-menu-offcanvas .pgg-custom-submenu-trigger {
	width: 48px;
	height: 48px;
	margin: 0;
	border-left: 1px solid var(--pgg-menu-line);
}

.pgg-custom-menu-offcanvas .pgg-custom-mega {
	position: static;
	width: 100%;
	height: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	box-shadow: none;
	background: var(--pgg-menu-dropdown-bg, rgba(7, 20, 30, .99));
}

.pgg-custom-menu-offcanvas .pgg-custom-menu-depth-0.is-open > .pgg-custom-mega {
	height: auto;
	padding: var(--pgg-menu-padding, 16px);
}

.pgg-custom-menu-offcanvas .pgg-custom-mega-grid {
	grid-template-columns: 1fr;
}

@media (max-width: 999px) {
	.pgg-custom-menu-element:not(.pgg-custom-menu-offcanvas) {
		display: flex;
		justify-content: flex-end;
	}

	.pgg-custom-menu-mobile-trigger {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		min-height: 42px;
		padding: 0 12px;
		border: 1px solid var(--pgg-menu-line);
		border-radius: 5px;
		background: var(--pgg-menu-bg);
		color: var(--pgg-menu-top-color, #fff);
		font-size: 11px;
		font-weight: 850;
		text-transform: uppercase;
	}

	.pgg-custom-menu-element:not(.pgg-custom-menu-offcanvas) .pgg-custom-menu-inner {
		position: absolute;
		z-index: 100000;
		top: calc(100% + 8px);
		right: 0;
		display: none;
		width: min(460px, calc(100vw - 24px));
		max-height: min(78vh, 720px);
		overflow-y: auto;
		overscroll-behavior: contain;
		border: var(--pgg-menu-border, 1px solid rgba(255, 217, 0, .42));
		background: var(--pgg-menu-dropdown-bg, rgba(7, 20, 30, .99));
		box-shadow: var(--pgg-menu-shadow, 0 18px 48px rgba(0, 0, 0, .62));
	}

	.pgg-custom-menu-element.is-menu-open .pgg-custom-menu-inner {
		display: block;
	}

	.pgg-custom-menu-element:not(.pgg-custom-menu-offcanvas) .pgg-custom-menu-list {
		display: block;
		height: auto;
	}

	.pgg-custom-menu-element:not(.pgg-custom-menu-offcanvas) .pgg-custom-menu-list > li {
		display: block;
		border-bottom: 1px solid var(--pgg-menu-line);
	}

	.pgg-custom-menu-top-link > a {
		flex: 1 1 auto;
		min-width: 0;
	}

	.pgg-custom-menu-element:not(.pgg-custom-menu-offcanvas) .pgg-custom-submenu-trigger {
		width: 48px;
		height: 48px;
		margin: 0;
		border-left: 1px solid var(--pgg-menu-line);
	}

	.pgg-custom-menu-element:not(.pgg-custom-menu-offcanvas) .pgg-custom-mega {
		position: static;
		width: 100%;
		height: 0;
		padding: 0;
		overflow: hidden;
		border: 0;
		box-shadow: none;
		translate: none;
	}

	.pgg-custom-menu-element:not(.pgg-custom-menu-offcanvas) .pgg-custom-menu-depth-0.is-open > .pgg-custom-mega {
		height: auto;
		padding: var(--pgg-menu-padding, 16px);
	}

	.pgg-custom-mega-grid {
		grid-template-columns: 1fr;
	}

	.pgg-custom-mega-group {
		border: 1px solid var(--pgg-menu-line);
		background: rgba(255, 255, 255, .025);
	}

	.pgg-custom-mega-title {
		margin: 0;
		padding: 12px;
	}

	.pgg-custom-mega-group ul {
		padding: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pgg-custom-mega,
	.pgg-user-panel,
	.pgg-user-section-links,
	.pgg-custom-icon {
		transition-duration: 0s;
	}
}
