/* Noga Talk Popup – frontend
   Geometry taken from the reference design at 800px panel width.
   Selectors are scoped to .tpop-root so theme rules don't win. */

.tpop-root {
	--tpop-bg: #290157;
	--tpop-bg2: #190043;
	--tpop-accent: #d3114b;
	--tpop-accent2: #b3034d;
	--tpop-text: #ffffff;
	--tpop-width: 800px;
	--tpop-font: 'Assistant', 'Heebo', 'Rubik', 'Segoe UI', Arial, sans-serif;

	position: fixed;
	bottom: 0;
	z-index: 99990;
	font-family: var(--tpop-font);
	line-height: 1.5;
}

.tpop-root,
.tpop-root * {
	box-sizing: border-box;
}

.tpop-root.tpop-pos-right { right: 0; }
.tpop-root.tpop-pos-left  { left: 0; }

/* ---------- floating bar ---------- */

.tpop-root .tpop-bar {
	display: flex;
	gap: 21px;
	margin: 0;
	padding: 0 0 20px;
	flex-wrap: wrap;
}

.tpop-root.tpop-pos-right .tpop-bar { justify-content: flex-end; }
.tpop-root.tpop-pos-left  .tpop-bar { justify-content: flex-start; }

.tpop-root .tpop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	min-width: 180px;
	width: auto;
	height: 50px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 10px;
	background: var(--tpop-bg);
	color: #fff;
	font-family: inherit;
	font-size: 21px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: filter .15s ease;
}

.tpop-root .tpop-btn:hover,
.tpop-root .tpop-btn:focus-visible {
	filter: brightness(1.15);
	color: #fff;
	text-decoration: none;
	box-shadow: none;
}

.tpop-root .tpop-btn--accent { background: var(--tpop-accent); }

.tpop-root .tpop-btn--white {
	background: #fff;
	color: var(--tpop-bg);
	border: 2px solid var(--tpop-accent);
}

.tpop-root .tpop-btn svg {
	height: 18px;
	width: auto;
	flex: 0 0 auto;
	display: block;
}

.tpop-btn--inline {
	position: static;
	margin: 6px 0;
}

/* ---------- panel ---------- */

.tpop-root .tpop-panel {
	position: absolute;
	bottom: calc(100% + 16px);
	width: min(var(--tpop-width), calc(100vw - 20px));
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	margin: 0;
	padding: 70px 57px 94px;
	border: 0;
	border-radius: 0;
	background: linear-gradient(to bottom left, var(--tpop-bg), var(--tpop-bg2));
	color: var(--tpop-text);
	text-align: start;
	z-index: 99991;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}

.tpop-root.tpop-pos-right .tpop-panel { right: 0; }
.tpop-root.tpop-pos-left  .tpop-panel { left: 0; }

.tpop-root .tpop-panel[hidden] { display: none; }
.tpop-root .tpop-panel:not([hidden]) { display: block; }

.tpop-root .tpop-panel.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.tpop-root .tpop-close {
	position: absolute;
	bottom: 52px;
	inset-inline-end: 45px;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--tpop-accent);
	font-family: inherit;
	font-size: 19px;
	font-weight: 400;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.tpop-root .tpop-close:hover {
	background: none;
	opacity: .75;
}

.tpop-root .tpop-panel__title {
	margin: 0 0 37px;
	padding: 0;
	border: 0;
	font-family: inherit;
	font-size: 48px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--tpop-text);
	text-align: center;
	letter-spacing: normal;
	text-transform: none;
}

.tpop-root .tpop-panel__body {
	display: flex;
	align-items: flex-start;
	gap: 26px;
}

.tpop-root .tpop-panel__media { flex: 0 0 165px; }

.tpop-root .tpop-panel__media img {
	width: 165px;
	height: 165px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	box-shadow: none;
}

.tpop-root .tpop-panel__text {
	flex: 1 1 auto;
	font-size: 16px;
	line-height: 35px;
	color: var(--tpop-text);
	text-align: start;
}

.tpop-root .tpop-panel__text p {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.tpop-root .tpop-panel__highlight {
	margin: 25px 0 0;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 35px;
	color: var(--tpop-text);
	text-align: center;
}

/* ---------- form ---------- */

.tpop-root .tpop-form { margin: 0; }

.tpop-root .tpop-fields {
	display: flex;
	gap: 14px;
	margin-top: 41px;
}

.tpop-root .tpop-field {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.tpop-root .tpop-field--full { margin-top: 20px; }

.tpop-root .tpop-form input[type="text"],
.tpop-root .tpop-form input[type="tel"],
.tpop-root .tpop-form input[type="email"],
.tpop-root .tpop-form textarea {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0 11px 16px 0;
	border: 0;
	border-bottom: 1px solid #fff;
	border-radius: 0;
	background: transparent;
	color: var(--tpop-text);
	font-family: inherit;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.2;
	text-align: start;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.tpop-root:not(.tpop-rtl) .tpop-form input[type="text"],
.tpop-root:not(.tpop-rtl) .tpop-form input[type="tel"],
.tpop-root:not(.tpop-rtl) .tpop-form input[type="email"] {
	padding: 0 0 16px 11px;
}

.tpop-root .tpop-form textarea {
	border: 1px solid #fff;
	padding: 10px 11px;
	font-size: 17px;
	line-height: 1.6;
	resize: vertical;
}

.tpop-root .tpop-form input::placeholder,
.tpop-root .tpop-form textarea::placeholder {
	color: #fff;
	opacity: 1;
}

.tpop-root .tpop-form input:focus,
.tpop-root .tpop-form textarea:focus {
	border-color: var(--tpop-accent);
	background: transparent;
	color: var(--tpop-text);
	box-shadow: none;
	outline: none;
}

.tpop-root .tpop-field.has-error input,
.tpop-root .tpop-field.has-error textarea { border-color: #ff9db8; }

.tpop-root .tpop-field__error {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.4;
	color: #ffb7cc;
}

.tpop-root .tpop-submit {
	display: block;
	width: 160px;
	min-width: 0;
	height: 50px;
	margin: 14px 0 0;
	margin-inline-start: auto;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: linear-gradient(to left, var(--tpop-accent), var(--tpop-accent2));
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 50px;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: filter .15s ease;
}

.tpop-root .tpop-submit:hover { filter: brightness(1.1); }
.tpop-root .tpop-submit[disabled] { opacity: .65; cursor: default; }

.tpop-root .tpop-consent {
	margin: 11px 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 35px;
	color: var(--tpop-text);
	text-align: center;
}

.tpop-root .tpop-consent a {
	color: var(--tpop-accent);
	text-decoration: none;
	box-shadow: none;
}

.tpop-root .tpop-consent a:hover { text-decoration: underline; }

.tpop-root .tpop-response {
	margin: 10px 0 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

.tpop-root .tpop-response.is-error { color: #ffb7cc; }
.tpop-root .tpop-response.is-success { color: #b6f5c8; }

.tpop-root .tpop-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- tablet ---------- */

@media (max-width: 900px) {
	.tpop-root .tpop-panel { padding: 46px 32px 70px; }
	.tpop-root .tpop-panel__title { font-size: 36px; margin-bottom: 26px; }
	.tpop-root .tpop-panel__text { line-height: 30px; }
	.tpop-root .tpop-panel__media { flex-basis: 130px; }
	.tpop-root .tpop-panel__media img { width: 130px; height: 130px; }
	.tpop-root .tpop-panel__highlight { line-height: 28px; margin-top: 18px; }
	.tpop-root .tpop-fields { margin-top: 28px; }
	.tpop-root .tpop-consent { line-height: 26px; }
	.tpop-root .tpop-close { bottom: 32px; inset-inline-end: 28px; }
}

/* ---------- mobile ---------- */

@media (max-width: 640px) {
	.tpop-root.tpop-pos-right,
	.tpop-root.tpop-pos-left { right: 0; left: 0; }

	.tpop-root .tpop-bar {
		justify-content: center;
		gap: 10px;
		padding: 0 10px 10px;
	}

	.tpop-root .tpop-btn {
		flex: 1 1 auto;
		min-width: 0;
		gap: 12px;
		font-size: 17px;
	}

	.tpop-root .tpop-panel {
		right: 10px;
		left: 10px;
		width: auto;
		bottom: calc(100% + 10px);
		padding: 30px 20px 56px;
		max-height: calc(100vh - 100px);
	}

	.tpop-root .tpop-panel__title { font-size: 28px; margin-bottom: 18px; }

	.tpop-root .tpop-panel__body {
		flex-direction: column;
		align-items: center;
		gap: 14px;
	}

	.tpop-root .tpop-panel__text { font-size: 15px; line-height: 26px; text-align: center; }
	.tpop-root .tpop-panel__media { flex: 0 0 auto; }
	.tpop-root .tpop-panel__media img { width: 110px; height: 110px; }
	.tpop-root .tpop-panel__highlight { font-size: 15px; line-height: 24px; margin-top: 16px; }

	.tpop-root .tpop-fields {
		flex-direction: column;
		gap: 14px;
		margin-top: 20px;
	}

	.tpop-root .tpop-form input { font-size: 17px; padding-bottom: 10px; }

	.tpop-root .tpop-submit { width: 100%; margin-top: 18px; }
	.tpop-root .tpop-consent { font-size: 13px; line-height: 20px; margin-top: 14px; }
	.tpop-root .tpop-close { bottom: 18px; inset-inline-end: 18px; font-size: 18px; }
}

.tpop-hide-mobile { display: block; }

@media (max-width: 640px) {
	.tpop-hide-mobile { display: none; }
}

/* ---------- rich text coming from the editor ---------- */

.tpop-root .tpop-panel__text a,
.tpop-root .tpop-panel__highlight a {
	color: var(--tpop-accent);
	text-decoration: underline;
}

.tpop-root .tpop-panel__text p + p { margin-top: 16px; }

.tpop-root .tpop-panel__text ul,
.tpop-root .tpop-panel__text ol {
	margin: 8px 0;
	padding-inline-start: 22px;
}

.tpop-root .tpop-consent p {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	text-align: inherit;
}

.tpop-root .tpop-consent p + p { margin-top: 6px; }
