/* PT Psychic Chat: badge, sales panel and room. Uses the theme's colours and fonts. */

.pt-live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgb(61 220 132 / 0.6); animation: pt-live-pulse 2s ease-out infinite; flex: none; }
.pt-live-dot.is-away, [data-online="0"] .pt-live-dot { background: #8d8399; box-shadow: none; animation: none; }
@keyframes pt-live-pulse { 0% { box-shadow: 0 0 0 0 rgb(61 220 132 / 0.55); } 70% { box-shadow: 0 0 0 9px rgb(61 220 132 / 0); } 100% { box-shadow: 0 0 0 0 rgb(61 220 132 / 0); } }

/* Show the right words for the state. */
[data-online="1"] .pt-live-badge__off, [data-online="0"] .pt-live-badge__on,
[data-online="1"] .pt-live__pill-off, [data-online="0"] .pt-live__pill-on,
[data-online="1"] .pt-live__state--off, [data-online="0"] .pt-live__state--on { display: none !important; }

/* Header badge */
.pt-live-badge[hidden] { display: none; }
.pt-live-badge {
	display: inline-flex; align-items: center; gap: 0.45rem; height: 40px; padding: 0 0.85rem; border-radius: 999px; text-decoration: none; white-space: nowrap; flex: none;
	color: var(--pt-muted, #ccc); font: 700 0.72rem/1 var(--pt-body, system-ui, sans-serif); letter-spacing: 0.12em; text-transform: uppercase;
	box-shadow: inset 0 0 0 1px rgb(201 163 245 / 0.25); transition: box-shadow 0.3s ease, color 0.3s ease;
}
.pt-live-badge[data-online="1"] { color: #eafff2; box-shadow: inset 0 0 0 1px rgb(61 220 132 / 0.55), 0 0 18px rgb(61 220 132 / 0.25); }
.pt-live-badge:hover, .pt-live-badge:focus-visible { outline: none; color: #fff; box-shadow: inset 0 0 0 1px var(--pt-lilac, #c9a3f5), 0 0 16px rgb(190 115 251 / 0.5); }
/* Tight headers: just the glowing dot (the label is still read out by screen readers). */
@media (max-width: 1400px) {
	.pt-live-badge { width: 40px; padding: 0; justify-content: center; }
	.pt-live-badge span:not(.pt-live-dot) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	[data-online="1"].pt-live-badge .pt-live-badge__off, [data-online="0"].pt-live-badge .pt-live-badge__on { display: none !important; }
}
.pt-live-status { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }

/* Floating pill + panel (bottom left: pop-ups use the right, the cookie notice clears first) */
.pt-live[hidden] { display: none; }
/* While the Live List is up, the chat steps aside so viewers focus on grabbing a spot. */
.pt-live-list-on .pt-live:not(.is-open) { display: none; }
.pt-live { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 9970; font-family: var(--pt-body, system-ui, sans-serif); }
.pt-live__pill {
	display: inline-flex; align-items: center; gap: 0.55rem; min-height: 46px; padding: 0 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
	color: #fff; font: 700 0.8rem/1 var(--pt-body, system-ui, sans-serif); letter-spacing: 0.06em;
	background: #12060f; box-shadow: 0 0 0 1px rgb(201 163 245 / 0.35), 0 12px 30px rgb(0 0 0 / 0.5);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pt-live[data-online="1"] .pt-live__pill { background: var(--pt-btn-grad, linear-gradient(110deg, #4a2bc4, #7a3ad8, #a145c9)); background-size: 200% 100%; box-shadow: var(--pt-btn-glow, 0 0 0 1px #c9a3f5, 0 0 18px rgb(190 115 251 / 0.6)); animation: pt-live-sheen 6s ease-in-out infinite; }
@keyframes pt-live-sheen { 50% { background-position: 100% 0; } }
.pt-live__pill:hover, .pt-live__pill:focus-visible { outline: none; transform: translateY(-2px); box-shadow: var(--pt-btn-glow-strong, 0 0 0 2px #eadbff, 0 0 24px rgb(190 115 251 / 0.9)); }
.pt-live.is-open .pt-live__pill { display: none; }

.pt-live__panel, .pt-live-inline {
	position: relative; display: grid; gap: 0.8rem; padding: 1.4rem 1.3rem 1.2rem; border-radius: 20px; color: var(--pt-text, #f8ecd9);
	background: radial-gradient(ellipse 90% 60% at 0% 0%, rgb(122 58 216 / 0.3), transparent 70%), #12060f;
	box-shadow: 0 0 0 1px rgb(201 163 245 / 0.35), 0 0 60px rgb(190 115 251 / 0.2), 0 30px 70px rgb(0 0 0 / 0.65);
}
.pt-live__panel { width: min(400px, calc(100vw - 2rem)); max-height: calc(100dvh - 2.5rem); overflow: auto; animation: pt-live-in 0.45s cubic-bezier(.2, .9, .25, 1.1); }
.pt-live__panel[hidden] { display: none; }
@keyframes pt-live-in { from { opacity: 0; translate: 0 18px; scale: 0.97; } }
.pt-live-inline { max-width: 560px; margin-inline: auto; box-shadow: 0 0 0 1px rgb(201 163 245 / 0.3); }
.pt-live__state { display: grid; gap: 0.75rem; }
.pt-live__close { position: absolute; top: 0.7rem; right: 0.7rem; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--pt-text, #f8ecd9); background: rgb(255 255 255 / 0.06); }
.pt-live__close:hover, .pt-live__close:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--pt-lilac, #c9a3f5), 0 0 12px rgb(190 115 251 / 0.5); }
.pt-live__eyebrow { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--pt-lilac, #c9a3f5); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.pt-live__title { margin: 0; font: 700 clamp(1.4rem, 4vw, 1.75rem)/1.1 var(--pt-banner, Georgia, serif) !important; text-transform: uppercase; letter-spacing: 0.03em; color: var(--pt-text, #f8ecd9); }
.pt-live__text { margin: 0; color: #e1d3c1; line-height: 1.5; }
.pt-live__offer { margin: 0; padding: 0.6rem 0.8rem; border-radius: 12px; color: #fff; background: rgb(190 115 251 / 0.12); box-shadow: inset 0 0 0 1px rgb(201 163 245 / 0.35); font-weight: 600; }
.pt-live__offer span { color: var(--pt-lilac, #c9a3f5); }
.pt-live__fine { margin: 0; color: var(--pt-muted, #bbb); font-size: 0.75rem; line-height: 1.45; }

/* Packages */
.pt-live-packages { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.pt-live-pkg {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.85rem; padding: 0.7rem 0.9rem; border-radius: 14px; text-decoration: none !important;
	color: var(--pt-text, #f8ecd9) !important; background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px rgb(201 163 245 / 0.3);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.pt-live-pkg:hover, .pt-live-pkg:focus-visible { outline: none; transform: translateY(-2px); background: rgb(190 115 251 / 0.12); box-shadow: inset 0 0 0 1px var(--pt-lilac, #c9a3f5), 0 0 22px rgb(190 115 251 / 0.35); }
.pt-live-pkg.is-featured { background: rgb(190 115 251 / 0.1); box-shadow: inset 0 0 0 1px rgb(201 163 245 / 0.65), 0 0 18px rgb(190 115 251 / 0.2); }
.pt-live-pkg__min { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; font: 700 1.2rem/1 var(--pt-banner, Georgia, serif); background: var(--pt-btn-grad, linear-gradient(110deg, #4a2bc4, #7a3ad8, #a145c9)); }
.pt-live-pkg__min small { display: block; margin-top: -0.6rem; font: 700 0.55rem/1 var(--pt-body, sans-serif); letter-spacing: 0.1em; text-transform: uppercase; }
.pt-live-pkg__name { display: grid; gap: 0.15rem; font-weight: 700; }
.pt-live-pkg__name small, .pt-live-pkg__price small { color: var(--pt-muted, #bbb); font-size: 0.72rem; font-weight: 400; }
.pt-live-pkg__price { display: grid; justify-items: end; font: 700 1.15rem/1.1 var(--pt-body, sans-serif); }

/* ---------- The room ---------- */
.pt-room { display: grid; grid-template-rows: auto 1fr auto auto auto auto; gap: 0.6rem; max-width: 760px; height: min(78dvh, 820px); margin: 0 auto 2rem; padding: 1rem; border-radius: 22px; background: #12060f; box-shadow: 0 0 0 1px rgb(201 163 245 / 0.35), 0 0 60px rgb(190 115 251 / 0.15); color: var(--pt-text, #f8ecd9); }
.pt-room__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.4rem 0.4rem 0.8rem; border-bottom: 1px solid rgb(201 163 245 / 0.2); }
.pt-room__who { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: 700; }
.pt-room__status { margin: 0.2rem 0 0; color: var(--pt-muted, #bbb); font-size: 0.85rem; }
.pt-room__timer { display: grid; justify-items: center; min-width: 88px; padding: 0.45rem 0.8rem; border-radius: 14px; background: rgb(190 115 251 / 0.12); box-shadow: inset 0 0 0 1px rgb(201 163 245 / 0.4); }
.pt-room__timer span { font: 700 1.5rem/1 var(--pt-body, sans-serif); font-variant-numeric: tabular-nums; }
.pt-room__timer small { color: var(--pt-muted, #bbb); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; }
.pt-room.is-low .pt-room__timer { background: rgb(255 61 127 / 0.15); box-shadow: inset 0 0 0 1px rgb(255 61 127 / 0.6); }
.pt-room__log { display: flex; flex-direction: column; gap: 0.6rem; min-height: 0; margin: 0; padding: 0.4rem; overflow-y: auto; list-style: none; scroll-behavior: smooth; }
.pt-room__msg { max-width: 82%; margin: 0; padding: 0.6rem 0.85rem; border-radius: 16px; line-height: 1.5; animation: pt-live-in 0.3s ease; }
.pt-room__msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-room__by { display: block; margin-bottom: 0.15rem; color: var(--pt-lilac, #c9a3f5); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pt-room__msg.is-client { align-self: flex-end; background: linear-gradient(120deg, #4a2bc4, #7a3ad8); color: #fff; border-bottom-right-radius: 4px; }
.pt-room__msg.is-client .pt-room__by { color: #e6d8ff; }
.pt-room__msg.is-reader { align-self: flex-start; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(201 163 245 / 0.25); border-bottom-left-radius: 4px; }
.pt-room__msg.is-system { align-self: center; max-width: 92%; padding: 0.35rem 0.8rem; color: var(--pt-muted, #bbb); font-size: 0.82rem; text-align: center; background: transparent; }
.pt-room__typing { margin: 0 0.5rem; color: var(--pt-lilac, #c9a3f5); font-size: 0.8rem; font-style: italic; }
.pt-room__extend { text-align: center; }
.pt-room__extend-btn { display: inline-block; padding: 0.7rem 1.4rem; border-radius: 999px; color: #fff !important; font-weight: 700; text-decoration: none !important; background: var(--pt-btn-grad, linear-gradient(110deg, #4a2bc4, #7a3ad8, #a145c9)); box-shadow: var(--pt-btn-glow, 0 0 18px rgb(190 115 251 / 0.6)); }
.pt-room__form { display: flex; gap: 0.5rem; align-items: flex-end; }
.pt-room__form textarea { flex: 1; min-height: 48px; max-height: 160px; padding: 0.75rem 0.9rem; border: 0; border-radius: 14px; resize: none; color: var(--pt-text, #f8ecd9); font: inherit; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(201 163 245 / 0.35); }
.pt-room__form textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--pt-lilac, #c9a3f5), 0 0 0 3px rgb(190 115 251 / 0.25); }
.pt-room__form button { min-height: 48px; padding: 0 1.3rem; border: 0; border-radius: 14px; cursor: pointer; color: #fff; font-weight: 700; background: var(--pt-btn-grad, linear-gradient(110deg, #4a2bc4, #7a3ad8, #a145c9)); }
.pt-room__form :disabled { opacity: 0.45; cursor: not-allowed; }
.pt-room__fine { margin: 0; color: var(--pt-muted, #999); font-size: 0.72rem; text-align: center; }

@media (max-width: 600px) {
	.pt-live { left: 0.75rem; bottom: 0.75rem; }
	.pt-live__panel { width: calc(100vw - 1.5rem); }
	.pt-room { height: calc(100dvh - 7rem); padding: 0.6rem; border-radius: 16px; }
	.pt-room__msg { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) { .pt-live-dot, .pt-live__pill, .pt-live__panel, .pt-room__msg { animation: none !important; } }
