/**
 * Vizuálny stav + bočný panel „Zistiť viac“ (ticket 06).
 * Hodnoty podľa React ProductVisualState (Chakra): 1rem = 10px.
 * Panel sa v JS presúva do <body> (ako Chakra portal), preto má vlastný koreň .wa-pa-vs-drawer
 * a dedí font-size z body (Chakra Drawer md = max-width 32em, záhlavie 1.25em).
 */

/* Box */
.wa-pa__vs {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-top: 1rem;
	padding: 0.9rem 1.2rem;
	background: #F6F6F6;
	border-radius: 0.5rem;
}

@media (min-width: 480px) {
	.wa-pa__vs {
		flex-direction: row;
		align-items: center;
	}
}

.wa-pa__vs-label {
	display: flex;
	align-items: center;
}

.wa-pa__vs-icon {
	display: block;
	flex-shrink: 0;
	width: 2.4rem;
	height: 2.4rem;
	margin-right: 0.5rem;
	fill: currentColor;
	color: inherit;
}

.wa-pa__vs-prefix {
	display: block;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--wa-pa-gray-900);
}

.wa-pa__vs-name {
	display: block;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--wa-pa-gray-900);
}

.wa-pa .wa-pa__vs-more {
	all: unset;
	box-sizing: border-box;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0.375em;
	background: none;
	font-family: inherit;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: normal;
	color: var(--base, #292929);
	text-decoration: underline;
	cursor: pointer;
	white-space: nowrap;
}

.wa-pa .wa-pa__vs-more:hover {
	background: none;
	color: var(--base, #292929);
}

.wa-pa .wa-pa__vs-more:focus-visible {
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.6);
	outline: none;
}

/* Panel (Chakra Drawer placement=right size=md) */
.wa-pa-vs-drawer[hidden] {
	display: none !important;
}

.wa-pa-vs-drawer {
	position: fixed;
	inset: 0;
	z-index: 1400;
	color: #000;
	line-height: 1.3;
	text-align: left;
}

.wa-pa-vs-drawer *,
.wa-pa-vs-drawer *::before,
.wa-pa-vs-drawer *::after {
	box-sizing: border-box;
}

.wa-pa-vs-drawer__overlay {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(0, 0, 0, 0.48);
	opacity: 0;
	transition: opacity 0.2s cubic-bezier(0, 0, 0.2, 1);
}

.wa-pa-vs-drawer__panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1400;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 32em;
	height: 100%;
	max-height: 100dvh;
	background: #fff;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	outline: none;
	transform: translateX(100%);
	transition: transform 0.2s cubic-bezier(0, 0, 0.2, 1);
}

.wa-pa-vs-drawer.is-open .wa-pa-vs-drawer__overlay {
	opacity: 1;
}

.wa-pa-vs-drawer.is-open .wa-pa-vs-drawer__panel {
	transform: translateX(0);
}

.wa-pa-vs-drawer.is-closing .wa-pa-vs-drawer__overlay {
	transition-duration: 0.1s;
	transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.wa-pa-vs-drawer.is-closing .wa-pa-vs-drawer__panel {
	transition-duration: 0.1s;
	transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

@media (prefers-reduced-motion: reduce) {
	.wa-pa-vs-drawer__overlay,
	.wa-pa-vs-drawer__panel {
		transition: none;
	}
}

.wa-pa-vs-drawer__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.6rem 2rem;
	background: var(--primary-ultra-light, #F0FBFF);
	font-size: 1.25em;
	font-weight: 600;
	line-height: 1.3;
}

.wa-pa-vs-drawer__heading {
	font-weight: 900;
	color: #292929;
}

.wa-pa-vs-drawer .wa-pa-vs-drawer__close {
	all: unset;
	box-sizing: border-box;
	position: relative;
	top: 0;
	right: -1rem;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2em;
	height: 2em;
	padding: 0;
	border: 0;
	border-radius: 0.375em;
	background: transparent;
	font-size: 0.75em;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s;
}

.wa-pa-vs-drawer .wa-pa-vs-drawer__close:hover {
	background: rgba(0, 0, 0, 0.06);
}

.wa-pa-vs-drawer .wa-pa-vs-drawer__close:active {
	background: rgba(0, 0, 0, 0.08);
}

.wa-pa-vs-drawer .wa-pa-vs-drawer__close:focus-visible {
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.6);
	outline: none;
}

.wa-pa-vs-drawer__close svg {
	display: block;
	width: 1em;
	height: 1em;
}

.wa-pa-vs-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1.6rem 2rem;
}

.wa-pa-vs-drawer__body::-webkit-scrollbar {
	width: 5px;
	background: var(--shade-light);
}

.wa-pa-vs-drawer__body::-webkit-scrollbar-thumb {
	background: var(--primary);
	border-radius: var(--radius-m);
}

.wa-pa-vs-drawer__image {
	display: block;
	width: 100%;
	height: auto;
}

.wa-pa-vs-drawer__title {
	font-weight: 700;
	color: #292929;
}

.wa-pa-vs-drawer__title span {
	color: currentColor;
}

.wa-pa-vs-drawer__title--color {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem;
	border-radius: 0.5rem;
	color: var(--white, #fff);
}

.wa-pa-vs-drawer__title-icon {
	display: block;
	flex-shrink: 0;
	width: 1.6rem;
	height: 1.6rem;
	margin-right: 0.5rem;
	fill: currentColor;
}

.wa-pa-vs-drawer__text {
	margin: 1em 0;
	color: #292929;
}

/* Zamknutie scrollu stránky (bez posunu: šírka scrollbaru sa doplní ako padding v JS) */
html.wa-pa-vs-lock,
html.wa-pa-vs-lock body {
	overflow: hidden !important;
}
