/* Talking Picture — front-end (shortcode) styles. */

.tp-render {
	position: relative;
	width: 100%;
}

.tp-render * {
	box-sizing: border-box;
}

.tp-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	display: block;
}

.tp-img {
	display: block;
	width: 100%;
	height: auto;
}

.tp-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 10;
}

.tp-node {
	position: absolute;
	width: 7%;
	aspect-ratio: 1 / 1;
	min-width: 34px;
	max-width: 56px;
	transform: translate(-50%, -50%);
	border-radius: 9999px;
	background: #0856c9;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	z-index: 20;
}

.tp-node .tp-mic {
	width: 55%;
	height: 55%;
	pointer-events: none;
}

.tp-order {
	position: absolute;
	top: -8%;
	right: -8%;
	width: 44%;
	max-width: 20px;
	aspect-ratio: 1 / 1;
	background: #660000;
	color: #fff;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(9px, 1.5vw, 12px);
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.tp-tooltip {
	position: absolute;
	display: none;
	background: #0856c9;
	color: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: clamp(16px, 2.4vw, 20px);
	line-height: 1.4;
	max-width: min(280px, 90vw);
	width: max-content;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	z-index: 100;
	pointer-events: none;
}

.tp-tooltip::after {
	content: "";
	position: absolute;
	left: var(--tp-arrow-x, 50%);
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-style: solid;
}

.tp-tooltip:not(.below)::after {
	bottom: -7px;
	border-width: 7px 7px 0 7px;
	border-color: #0856c9 transparent transparent transparent;
}

.tp-tooltip.below::after {
	top: -7px;
	border-width: 0 7px 7px 7px;
	border-color: transparent transparent #0856c9 transparent;
}

.tp-fs-btn {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 120;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 8px;
	background: rgba(8, 86, 201, 0.9);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.tp-fs-btn:hover {
	background: #0856c9;
}

/* Fullscreen presentation */
.tp-render:fullscreen,
.tp-render:-webkit-full-screen {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	background: #000;
}

.tp-render:fullscreen .tp-wrap,
.tp-render:-webkit-full-screen .tp-wrap {
	width: auto;
	height: auto;
	max-width: 100vw;
	max-height: 100vh;
}

.tp-render:fullscreen .tp-img,
.tp-render:-webkit-full-screen .tp-img {
	width: auto;
	height: auto;
	max-width: 100vw;
	max-height: 100vh;
}
