.thaxam-pco-button,
.thaxam-pco-overlay,
.thaxam-pco-panel {
	--thaxam-pco-bg: linear-gradient(145deg, #f4f8fb 0%, #eaf2f7 100%);
	--thaxam-pco-card: rgba(255, 255, 255, 0.82);
	--thaxam-pco-text: #203040;
	--thaxam-pco-muted: #5c6b78;
	--thaxam-pco-border: #d7e2ea;
	--thaxam-pco-accent: #0f5d9d;
	--thaxam-pco-accent-hover: #0b4a7c;
	--thaxam-pco-button-bg: #ffffff;
	--thaxam-pco-button-bg-hover: #f0f6fc;
	--thaxam-pco-button-border: #d0d7de;
	--thaxam-pco-button-text: #2271b1;
	--thaxam-pco-shadow: 0 18px 45px rgba(15, 93, 157, 0.12);
	--thaxam-pco-speed: 0.22s;
	box-sizing: border-box;
}

.thaxam-pco-panel *,
.thaxam-pco-panel *::before,
.thaxam-pco-panel *::after,
.thaxam-pco-loader *,
.thaxam-pco-loader *::before,
.thaxam-pco-loader *::after {
	box-sizing: border-box;
}

a.thaxam-pco-button,
.thaxam-pco-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 34px !important;
	padding: 5px 12px !important;
	border-radius: 6px !important;
	background: var(--thaxam-pco-button-bg) !important;
	color: var(--thaxam-pco-button-text) !important;
	border: 1px solid var(--thaxam-pco-button-border) !important;
	text-decoration: none !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
	transition: background var(--thaxam-pco-speed) ease, border-color var(--thaxam-pco-speed) ease, color var(--thaxam-pco-speed) ease, box-shadow var(--thaxam-pco-speed) ease !important;
	cursor: pointer !important;
}

a.thaxam-pco-button:hover,
a.thaxam-pco-button:focus,
.thaxam-pco-button:hover,
.thaxam-pco-button:focus {
	background: var(--thaxam-pco-button-bg-hover) !important;
	border-color: #c4d3df !important;
	color: var(--thaxam-pco-accent-hover) !important;
	box-shadow: 0 4px 14px rgba(15, 93, 157, 0.08) !important;
	outline: none !important;
}

.thaxam-pco-overlay[hidden],
.thaxam-pco-loader[hidden] {
	display: none !important;
}

.thaxam-pco-overlay {
	position: fixed;
	inset: 0;
	background: rgba(32, 48, 64, 0.18);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0.22s ease;
	z-index: 99998;
}

.thaxam-pco-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.thaxam-pco-loader {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(244, 248, 251, 0.86);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, visibility 0.18s ease;
}

.thaxam-pco-loader.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.thaxam-pco-loader__content {
	min-width: 280px;
	max-width: min(92vw, 420px);
	padding: 22px 24px;
	border: 1px solid var(--thaxam-pco-border);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
	text-align: center;
}

.thaxam-pco-loader__spinner {
	display: inline-block;
	width: 34px;
	height: 34px;
	border: 3px solid #c7d6e2;
	border-top-color: var(--thaxam-pco-accent);
	border-radius: 50%;
	animation: thaxam-pco-loader-spin 0.8s linear infinite;
}

.thaxam-pco-loader__text {
	margin: 12px 0 0;
	color: var(--thaxam-pco-text);
	font-size: 12px;
	line-height: 1.4;
}

.thaxam-pco-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: min(640px, 96vw);
	max-width: 100%;
	height: 100dvh;
	background: var(--thaxam-pco-bg);
	color: var(--thaxam-pco-text);
	transform: translate3d(100%, 0, 0);
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.26s ease, visibility 0s linear 0.26s;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	box-shadow: var(--thaxam-pco-shadow);
	overscroll-behavior: contain;
}

.thaxam-pco-panel.is-open {
	transform: translate3d(0, 0, 0);
	visibility: visible;
	pointer-events: auto;
	transition: transform 0.26s ease;
}

.thaxam-pco-header {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 10px;
	align-items: center;
	padding: 10px 14px 8px;
	border-bottom: 1px solid var(--thaxam-pco-border);
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(10px);
}

.thaxam-pco-kicker {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--thaxam-pco-accent);
}

.thaxam-pco-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.15;
	font-weight: 700;
	color: inherit;
}

.thaxam-pco-close {
	grid-column: 2 / 3;
	grid-row: 1 / span 2;
	width: 32px;
	height: 32px;
	border: 1px solid var(--thaxam-pco-button-border);
	border-radius: 8px;
	background: #fff;
	color: var(--thaxam-pco-accent);
	cursor: pointer;
	font-size: 21px;
	line-height: 1;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.thaxam-pco-body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 8px 14px 12px;
}

.thaxam-pco-intro {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}

.thaxam-pco-shop-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 4px 10px;
	border-radius: 6px;
	background: #fff;
	color: var(--thaxam-pco-button-text);
	border: 1px solid var(--thaxam-pco-button-border);
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
}

.thaxam-pco-nav {
	display: block;
}

.thaxam-pco-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.thaxam-pco-column {
	min-width: 0;
}

.thaxam-pco-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.thaxam-pco-list-primary {
	display: grid;
	gap: 6px;
}

.thaxam-pco-item {
	margin: 0;
	padding: 5px 0 0;
	border-top: 1px solid rgba(215, 226, 234, 0.85);
	background: transparent;
	box-shadow: none;
}

.thaxam-pco-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.thaxam-pco-link,
.thaxam-pco-sublink {
	display: block;
	text-decoration: none;
	color: inherit;
	overflow-wrap: anywhere;
}

.thaxam-pco-link {
	padding: 0;
	color: var(--thaxam-pco-text);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
}

.thaxam-pco-link:hover,
.thaxam-pco-link:focus {
	color: var(--thaxam-pco-accent-hover);
}

.thaxam-pco-list-children {
	margin-top: 3px;
	padding-left: 0;
	display: grid;
	gap: 1px;
}

.thaxam-pco-section {
	padding: 8px 10px;
	border: 1px solid var(--thaxam-pco-border);
	border-radius: 10px;
	background: var(--thaxam-pco-card);
}

.thaxam-pco-column-secondary {
	display: grid;
	gap: 8px;
}

.thaxam-pco-section-title {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--thaxam-pco-accent);
}

.thaxam-pco-section-link {
	color: inherit;
	text-decoration: none;
}

.thaxam-pco-list-section {
	display: grid;
	gap: 1px;
}

.thaxam-pco-subitem {
	margin: 0;
}

.thaxam-pco-sublink {
	padding: 1px 0;
	color: var(--thaxam-pco-muted);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.22;
}

.thaxam-pco-sublink:hover,
.thaxam-pco-sublink:focus {
	color: var(--thaxam-pco-accent);
}

.thaxam-pco-empty {
	margin: 0;
	color: var(--thaxam-pco-muted);
	font-size: 12px;
}

html.thaxam-pco-lock,
body.thaxam-pco-lock {
	overflow: hidden !important;
}

@keyframes thaxam-pco-loader-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 640px) {
	.thaxam-pco-panel {
		width: 100vw;
	}

	.thaxam-pco-body {
		padding: 8px 12px 12px;
	}

	.thaxam-pco-layout {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thaxam-pco-button,
	.thaxam-pco-overlay,
	.thaxam-pco-panel,
	.thaxam-pco-loader {
		transition: none !important;
	}

	.thaxam-pco-loader__spinner {
		animation: none !important;
	}
}
