/* Club Hub website chat (72.7) */
.ych-chat {
	--c-red: var(--npv-red, #C2151B);
	--c-red-dk: var(--npv-red-dk, #7A0D11);
	--c-ink: var(--npv-ink, #101010);
	--c-line: #E3E3E3;
	--c-soft: #F4F4F4;
	--c-muted: #5F5F5F;
	position: fixed; bottom: 20px; z-index: 99990; font-family: inherit; font-size: 15px; line-height: 1.45; color: var(--c-ink);
	display: flex; flex-direction: column; gap: 12px;
}
.ych-chat[hidden] { display: none !important; }
.ych-chat.is-left { left: 20px; align-items: flex-start; }
.ych-chat.is-right { right: 20px; align-items: flex-end; }
.ych-chat *, .ych-chat *::before, .ych-chat *::after { box-sizing: border-box; }

.ych-chat__btn {
	position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	background: var(--c-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 2px #fff, 0 10px 28px rgba(0,0,0,.32); transition: transform .2s ease, background .2s ease;
}
.ych-chat__btn:hover, .ych-chat__btn:focus-visible { background: #2A2A2A; transform: translateY(-2px); }
.ych-chat__btn:focus-visible, .ych-chat button:focus-visible, .ych-chat a:focus-visible, .ych-chat input:focus-visible, .ych-chat textarea:focus-visible { outline: 3px solid var(--c-red); outline-offset: 2px; }
.ych-chat.is-open .ych-chat__btn svg { display: none; }
.ych-chat.is-open .ych-chat__btn::before { content: ""; width: 18px; height: 18px; background: linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%); }
.ych-chat__badge { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-red); border: 3px solid #fff; }

.ych-chat__panel {
	width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 140px)); background: #fff; border-radius: 20px; overflow: hidden;
	box-shadow: 0 24px 60px rgba(0,0,0,.28); display: flex; flex-direction: column; border: 1px solid var(--c-line);
}
.ych-chat__panel[hidden] { display: none; }
.ych-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--c-ink); color: #fff; border-bottom: 4px solid var(--c-red); }
.ych-chat__logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.ych-chat__htext { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ych-chat__title { font-size: 16px; font-weight: 800; line-height: 1.2; }
.ych-chat__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #D6D6D6; }
.ych-chat__dot { width: 9px; height: 9px; border-radius: 50%; background: #9A9A9A; flex: none; }
.ych-chat__dot.is-on { background: #2BB673; box-shadow: 0 0 0 3px rgba(43,182,115,.25); }
.ych-chat__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ych-chat__close:hover { background: rgba(255,255,255,.12); }

.ych-chat__log { list-style: none; margin: 0; padding: 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--c-soft); }
.ych-chat__msg { max-width: 85%; margin: 0; padding: 10px 13px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line); align-self: flex-start; }
.ych-chat__msg.is-bot { border-bottom-left-radius: 6px; }
.ych-chat__msg.is-team { border-bottom-left-radius: 6px; border-color: #D0D0D0; }
.ych-chat__msg.is-me { align-self: flex-end; background: var(--c-red); border-color: var(--c-red); color: #fff; border-bottom-right-radius: 6px; }
.ych-chat__who { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--c-muted); margin-bottom: 2px; }
.ych-chat__msg.is-me .ych-chat__who { color: rgba(255,255,255,.85); }
.ych-chat__text { margin: 0; overflow-wrap: anywhere; }
.ych-chat__link { display: inline-block; margin-top: 8px; font-weight: 800; color: var(--c-red); text-decoration: underline; text-underline-offset: 3px; }

.ych-chat__quick { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--c-line); background: #fff; }
.ych-chat__quick[hidden] { display: none; }
.ych-chat__quick::-webkit-scrollbar { display: none; }
.ych-chat__chip { flex: none; white-space: nowrap; }
.ych-chat__chip { border: 1.5px solid var(--c-ink); background: #fff; color: var(--c-ink); border-radius: 999px; min-height: 38px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ych-chat__chip:hover { background: var(--c-ink); color: #fff; }
.ych-chat__chip.is-talk { border-style: dashed; }

.ych-chat__foot { padding: 12px 16px 14px; border-top: 1px solid var(--c-line); background: #fff; }
.ych-chat__form { display: grid; gap: 8px; margin: 0; }
.ych-chat__intro { margin: 0; font-size: 13px; color: var(--c-muted); }
.ych-chat__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ych-chat input[type="text"], .ych-chat input[type="email"], .ych-chat textarea {
	width: 100%; min-height: 44px; border: 1.5px solid #CFCFCF; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--c-ink); background: #fff; margin: 0; box-shadow: none;
}
.ych-chat textarea { resize: none; display: block; min-height: 46px; max-height: 120px; }
.ych-chat input:focus, .ych-chat textarea:focus { border-color: var(--c-ink); }
.ych-chat__compose { display: flex; gap: 8px; align-items: flex-end; }
.ych-chat__send { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--c-red); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ych-chat__send:hover { background: var(--c-red-dk); }
.ych-chat__form.is-busy { opacity: .6; }
.ych-chat__note { margin: 0; font-size: 12px; color: var(--c-muted); }
.ych-chat__note a { color: inherit; text-decoration: underline; }
.ych-chat__err { margin: 0; padding: 8px 10px; border-radius: 10px; background: #FBE9EA; color: #7A0D11; font-size: 13px; font-weight: 700; }
.ych-chat__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }

@media (max-width: 767.98px) {
	.ych-chat { bottom: 14px; }
	.ych-chat.is-left { left: 14px; }
	.ych-chat.is-right { right: 14px; }
	.ych-chat__btn { width: 54px; height: 54px; }
	.ych-chat.is-open { top: 0; left: 0; right: 0; bottom: 0; gap: 0; }
	.ych-chat.is-open .ych-chat__panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
	.ych-chat.is-open .ych-chat__btn { display: none; }
	.ych-chat__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ych-chat__btn { transition: none; } }
@media print { .ych-chat { display: none !important; } }
