/*
 * Cookie banner — Tracking Rețeaua Medicală PRO BIO.
 * Same tokens as the voucher shop (navy #204289, blue #2b6cf5, 24px panels, pill buttons) and the site's font.
 * Desktop: a card bottom-left, clear of the chat bubble (bottom-right). Phone: a sheet across the bottom.
 */
.pb-consent {
	--pbk-navy: #204289;
	--pbk-navy-hover: #183574;
	--pbk-blue: #2b6cf5;
	--pbk-blue-hover: #1f5ee6;
	--pbk-ink-soft: #4b5d82;
	--pbk-line: #dde6f4;
	--pbk-tint: #f2f6fd;
	--pbk-ease: cubic-bezier(.16, 1, .3, 1);
	--pbk-focus: 0 0 0 3px #fff, 0 0 0 6px rgba(43, 108, 245, .55);
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 100000;
	width: min(452px, calc(100vw - 48px));
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
}

.pb-consent[hidden] {
	display: none !important;
}

.pb-consent__card {
	position: relative;
	box-sizing: border-box;
	max-height: calc(100vh - 48px);
	overflow: auto;
	overscroll-behavior: contain;
	padding: 22px 24px 20px;
	background: #fff;
	color: var(--pbk-navy);
	border: 1px solid var(--pbk-line);
	border-radius: 24px;
	box-shadow: 0 24px 60px -16px rgba(18, 38, 89, .32), 0 2px 8px rgba(18, 38, 89, .08);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .22s ease, transform .32s var(--pbk-ease);
}

.pb-consent.is-in .pb-consent__card {
	opacity: 1;
	transform: none;
}

.pb-consent__title {
	margin: 0 0 8px;
	padding: 0 34px 0 0;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--pbk-navy);
	outline: none;
}

.pb-consent__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--pbk-ink-soft);
}

.pb-consent__link,
.pb-consent__link:visited {
	color: var(--pbk-blue);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.pb-consent__link:hover {
	color: var(--pbk-blue-hover);
}

.pb-consent__link:focus-visible {
	outline: none;
	border-radius: 4px;
	box-shadow: var(--pbk-focus);
}

/* Per-category choice */
.pb-consent__prefs {
	margin-top: 14px;
	border-top: 1px solid var(--pbk-line);
}

.pb-consent__prefs[hidden] {
	display: none;
}

.pb-consent__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 13px 0;
	border-bottom: 1px solid var(--pbk-line);
	cursor: pointer;
}

.pb-consent__opt:first-child {
	cursor: default;
}

.pb-consent__opt-text {
	display: block;
	min-width: 0;
}

.pb-consent__opt-name {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pbk-navy);
}

.pb-consent__opt-desc {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--pbk-ink-soft);
}

.pb-consent__always {
	flex: none;
	padding: 5px 10px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.2;
	color: #3a7d21;
	background: #eef7ea;
	border-radius: 999px;
	white-space: nowrap;
}

.pb-consent__switch {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: none;
	width: 46px;
	height: 28px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: #c9d4e8;
	cursor: pointer;
	transition: background .2s ease;
}

.pb-consent__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(18, 38, 89, .3);
	transition: transform .22s var(--pbk-ease);
}

.pb-consent__switch:checked {
	background: var(--pbk-blue);
}

.pb-consent__switch:checked::after {
	transform: translateX(18px);
}

.pb-consent__switch:focus-visible {
	outline: none;
	box-shadow: var(--pbk-focus);
}

/* Buttons: refusing and accepting look equally like buttons and take one click each. */
.pb-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.pb-consent__btn {
	box-sizing: border-box;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	border: 1.5px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	text-align: center;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.pb-consent__btn[hidden] {
	display: none;
}

.pb-consent__btn:focus-visible {
	outline: none;
	box-shadow: var(--pbk-focus);
}

.pb-consent__btn--ghost {
	margin-right: auto;
	color: var(--pbk-navy);
	background: #fff;
	border-color: var(--pbk-line);
}

.pb-consent__btn--ghost:hover {
	color: var(--pbk-blue);
	border-color: var(--pbk-blue);
}

.pb-consent__btn--solid {
	color: #fff;
	background: var(--pbk-navy);
}

.pb-consent__btn--solid:hover {
	background: var(--pbk-navy-hover);
}

.pb-consent__btn--accent {
	background: var(--pbk-blue);
}

.pb-consent__btn--accent:hover {
	background: var(--pbk-blue-hover);
}

/* In the per-category view "Salvează alegerea" is the main action. */
.pb-consent.is-prefs .pb-consent__actions {
	justify-content: flex-end;
}

.pb-consent.is-prefs [data-pb-consent="save"] {
	margin-right: 0;
	color: #fff;
	background: var(--pbk-navy);
	border-color: transparent;
}

.pb-consent.is-prefs [data-pb-consent="save"]:hover {
	background: var(--pbk-navy-hover);
}

.pb-consent__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: var(--pbk-ink-soft);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.pb-consent__close[hidden] {
	display: none;
}

.pb-consent__close:hover {
	color: var(--pbk-navy);
	background: var(--pbk-tint);
}

.pb-consent__close:focus-visible {
	outline: none;
	box-shadow: var(--pbk-focus);
}

.pb-consent__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

/* Phones: a sheet across the bottom, the two choices side by side, "Setări" underneath. */
@media (max-width: 600px) {
	.pb-consent {
		left: 10px;
		right: 10px;
		bottom: max(10px, env(safe-area-inset-bottom));
		width: auto;
	}

	.pb-consent__card {
		max-height: calc(100vh - 20px);
		max-height: calc(100dvh - 20px);
		padding: 18px 18px 16px;
		border-radius: 20px;
	}

	.pb-consent__title {
		font-size: 16px;
	}

	.pb-consent__text {
		font-size: 13.5px;
	}

	.pb-consent__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		margin-top: 16px;
	}

	.pb-consent__btn {
		padding: 10px 12px;
	}

	.pb-consent__btn--ghost {
		order: 3;
		grid-column: 1 / -1;
		margin: 0;
	}

	.pb-consent.is-prefs .pb-consent__btn {
		order: 0;
		grid-column: 1 / -1;
	}
}

/*
 * While the banner is open on a phone, the chat would cover it: the bubble sits on "Acceptă toate", and the chat that
 * opens by itself on a first visit fills the screen. Both wait, hidden, until the visitor has chosen; the chat's own
 * once-per-12-hours rule is untouched.
 */
@media (max-width: 767px) {
	html.pb-consent-showing .woot-widget-bubble,
	html.pb-consent-showing .woot--bubble-holder,
	html.pb-consent-showing .woot-widget-holder {
		visibility: hidden !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pb-consent__card,
	.pb-consent__switch,
	.pb-consent__switch::after {
		transition: none;
	}
}

/* [probio_setari_cookie] — a text-style button for the cookie policy page. */
button.pb-consent-settings-btn {
	padding: 0;
	font: inherit;
	color: #2b6cf5;
	text-decoration: underline;
	text-underline-offset: 2px;
	background: none;
	border: 0;
	cursor: pointer;
}
