/* Yen's "Ask Eric" chat. Colors follow the shop pages (slate accent, approved WhatsApp green #137a3e, grey #6b6b70). */
.yc-fab, .yc-panel {
	--yc-ink: #2b2f36;
	--yc-mute: #5f636a;
	--yc-line: #dcd8d3;
	--yc-soft: #f6f5f3;
	--yc-accent: #3e4a5c;
	--yc-accent-hover: #323c4b;
	--yc-wa: #137a3e;
	--yc-fb: #0a5bd6;
	--yc-online: #137a3e;
	--yc-away: #8a5a00;
	--yc-body: Lato, Helvetica, Arial, sans-serif;
	--yc-display: "Marcellus", Georgia, "Times New Roman", serif;
	font-family: var(--yc-body);
	box-sizing: border-box;
}
.yc-panel *, .yc-fab * { box-sizing: border-box; }
.yc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yc-fab[hidden], .yc-panel[hidden], .yc-panel [hidden] { display: none !important; }

/* ---------- bubble ---------- */
/* A small dark circle, like the header's black "Apply" button. "Ask Eric" shows beside it on hover or keyboard focus. */
.yc-fab {
	position: fixed; z-index: 9991;
	right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	display: grid; place-items: center; width: 52px; height: 52px; margin: 0; padding: 0;
	border: 2px solid #fff; border-radius: 50%;
	background: #1d1d1f; color: #fff; font: 700 14px/1.2 var(--yc-body); letter-spacing: 0; text-transform: none;
	box-shadow: 0 6px 18px rgba(20, 24, 32, .28); cursor: pointer;
}
.yc-fab:hover { background: #3e4a5c; }
.yc-fab:focus-visible { outline: 3px solid #1d1d1f; outline-offset: 3px; }
.yc-fab-ic { width: 24px; height: 24px; }
.yc-fab-label {
	position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
	padding: 7px 12px; border-radius: 8px; background: #1d1d1f; color: #fff; white-space: nowrap;
	opacity: 0; pointer-events: none; transition: opacity .15s;
}
.yc-fab:hover .yc-fab-label, .yc-fab:focus-visible .yc-fab-label { opacity: 1; }
.yc-fab[aria-expanded="true"] .yc-fab-label { opacity: 0; }
.yc-fab-new { position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; border-radius: 50%; background: #c8a24e; border: 2px solid #fff; overflow: hidden; color: transparent; font-size: 1px; }
.yens-has-bar .yc-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: no-preference) { .yc-fab { transition: transform .2s ease-out, background-color .15s; } }
/* Pearl Education story: bubble and chat window bottom left, clear of the films' pause buttons (bottom right). */
.yc-on-left .yc-fab { right: auto; left: calc(18px + env(safe-area-inset-left, 0px)); }
.yc-on-left .yc-fab-label { right: auto; left: calc(100% + 10px); }
.yc-on-left .yc-panel { right: auto; left: calc(18px + env(safe-area-inset-left, 0px)); }
@media (max-width: 520px) { .yc-on-left .yc-fab { left: calc(14px + env(safe-area-inset-left, 0px)); } .yc-on-left .yc-panel { left: 0; right: 0; } }
@media (max-width: 520px) { .yc-fab { width: 48px; height: 48px; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } .yc-fab-ic { width: 22px; height: 22px; } }
/* The theme's "scroll to top" arrow shares this corner: lift it above the bubble so neither covers the other. */
.scroll-to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
.yens-has-bar .scroll-to-top { bottom: calc(138px + env(safe-area-inset-bottom, 0px)) !important; }
@media (prefers-reduced-motion: no-preference) {
	.yc-fab.has-new .yc-fab-ic { animation: yc-pulse 1.6s ease-in-out 3; }
	@keyframes yc-pulse { 50% { transform: scale(1.15); } }
}

/* ---------- panel ---------- */
.yc-panel {
	position: fixed; z-index: 99980;
	right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(82px + env(safe-area-inset-bottom, 0px));
	width: min(380px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 110px));
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; color: var(--yc-ink); border: 1px solid var(--yc-line); border-radius: 16px;
	box-shadow: 0 24px 60px rgba(20, 24, 32, .28); font-size: 15px; line-height: 1.45;
}
.yens-has-bar .yc-panel { bottom: calc(142px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 520px) {
	.yc-panel, .yens-has-bar .yc-panel { left: 0; right: 0; bottom: 0; width: auto; max-height: 88vh; max-height: 88dvh; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.yc-panel button, .yc-panel input, .yc-panel textarea { font: inherit; color: inherit; letter-spacing: 0; text-transform: none; margin: 0; }
.yc-panel :focus-visible { outline: 3px solid var(--yc-accent); outline-offset: 2px; }

.yc-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--yc-line); background: var(--yc-soft); }
.yc-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--yc-accent); color: #fff; font: 400 16px/1 var(--yc-display); }
.yc-who b { display: block; font: 400 19px/1.15 var(--yc-display); color: var(--yc-ink); }
.yc-st { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--yc-mute); }
.yc-st::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; background: #9a9ea5; }
.yc-st[data-state="online"] { color: var(--yc-online); font-weight: 700; }
.yc-st[data-state="online"]::before { background: var(--yc-online); }
.yc-st[data-state="away"]::before, .yc-st[data-state="show"]::before { background: #c58a12; }
.yc-st[data-state="closed"]::before { background: #fff; border: 2px solid #8a8e95; }
.yc-x { width: 44px; height: 44px; border: 0 !important; border-radius: 50% !important; background: none !important; font-size: 26px !important; line-height: 1; color: var(--yc-mute) !important; cursor: pointer; padding: 0 !important; }
.yc-x:hover { background: #ebe8e4 !important; }

.yc-body { padding: 14px 16px; overflow-y: auto; display: grid; gap: 10px; align-content: start; min-height: 0; flex: 1 1 auto; }
.yc-body p { margin: 0; }
.yc-lead { color: var(--yc-ink); }
.yc-note { font-size: 13px; color: var(--yc-mute); }
.yc-h { margin: 0; font: 400 21px/1.2 var(--yc-display); color: var(--yc-ink); }
.yc-back { justify-self: start; border: 0 !important; background: none !important; padding: 4px 0 !important; min-height: 32px; color: var(--yc-accent) !important; font-size: 14px !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.yc-opt { display: grid !important; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px !important; border: 1px solid var(--yc-line) !important; border-radius: 12px !important; background: #fff !important; color: var(--yc-ink) !important; text-decoration: none !important; cursor: pointer; }
.yc-opt:hover { border-color: var(--yc-accent) !important; background: var(--yc-soft) !important; }
.yc-opt b { display: block; font-size: 15px; }
.yc-opt small { display: block; font-size: 13px; line-height: 1.35; color: var(--yc-mute); }
.yc-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.yc-ic svg { width: 22px; height: 22px; }
.yc-ic-chat { background: var(--yc-accent); }
.yc-ic-fb { background: var(--yc-fb); }
.yc-ic-wa { background: var(--yc-wa); }
.yc-ic-pc { background: #fff; color: var(--yc-wa); border: 1px solid var(--yc-line); }

.yc-big { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 16px; border-radius: 999px; color: #fff !important; text-decoration: none !important; font-weight: 700; }
.yc-big svg { width: 22px; height: 22px; }
.yc-big-fb { background: var(--yc-fb); }
.yc-big-fb:hover { background: #084bb0; }
.yc-wa-ways { display: grid; gap: 10px; }
.yc-wa-check { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--yc-accent); background: var(--yc-soft); font-size: 14px; }
.yc-phone { border: 1px solid var(--yc-line); border-radius: 12px; padding: 10px 12px; }
.yc-phone summary { cursor: pointer; font-weight: 700; color: var(--yc-accent); min-height: 24px; }
.yc-qr { display: grid; justify-items: center; gap: 8px; padding-top: 10px; text-align: center; }
.yc-qr-img { width: 168px; height: 168px; }
.yc-qr-img svg, .yc-qr-img img { width: 100%; height: 100%; }
.yc-num { font-size: 14px; color: var(--yc-ink); user-select: all; }

/* chat */
.yc-about { font-size: 13px; color: var(--yc-mute); padding: 6px 10px; border-radius: 8px; background: var(--yc-soft); }
.yc-log { display: grid; gap: 8px; align-content: start; }
.yc-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.yc-msg time, .yc-seen { display: block; margin-top: 3px; font-size: 12px; }
.yc-msg.is-me { justify-self: end; background: var(--yc-accent); color: #fff; border-bottom-right-radius: 4px; }
.yc-msg.is-me time, .yc-msg.is-me .yc-seen { color: #e3e7ee; }
.yc-msg.is-eric { justify-self: start; background: var(--yc-soft); border: 1px solid var(--yc-line); border-bottom-left-radius: 4px; }
.yc-msg.is-eric time { color: var(--yc-mute); }
.yc-typing { font-size: 13px; color: var(--yc-mute); font-style: italic; }
.yc-start { display: grid; gap: 10px; }
.yc-fields { display: grid; gap: 4px; }
.yc-fields label, .yc-contact label { font-size: 13px; font-weight: 700; color: var(--yc-ink); margin-top: 4px; }
.yc-fields label span { font-weight: 400; color: var(--yc-mute); }
.yc-panel input[type="text"], .yc-panel input[type="email"] { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #8a8e95; border-radius: 8px; background: #fff; font-size: 16px; }
.yc-contact { display: grid; gap: 6px; padding: 10px; border: 1px dashed #8a8e95; border-radius: 10px; }
.yc-row { display: flex; gap: 8px; }
.yc-row input { flex: 1 1 auto; min-width: 0; }
.yc-row button { flex: none; min-height: 42px; padding: 0 14px !important; border: 0 !important; border-radius: 8px !important; background: var(--yc-accent) !important; color: #fff !important; font-weight: 700; cursor: pointer; }
.yc-err { color: #a12a1c; font-size: 13px; font-weight: 700; }

.yc-pick { grid-column: 1 / -1; position: relative; justify-self: start; }
.yc-pick img { display: block; max-width: 140px; max-height: 110px; border-radius: 10px; border: 1px solid var(--yc-line); }
.yc-unpick { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; padding: 0 !important; border: 2px solid #fff !important; border-radius: 50% !important; background: var(--yc-ink) !important; color: #fff !important; font-size: 16px !important; line-height: 1; cursor: pointer; }
.yc-attach { position: relative; width: 42px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--yc-accent); cursor: pointer; }
.yc-attach:hover { background: #ebe8e4; }
.yc-attach svg { width: 24px; height: 24px; }
.yc-attach input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.yc-attach:focus-within { outline: 3px solid var(--yc-accent); outline-offset: 2px; }
.yc-photo { display: block; margin: -3px -6px 6px; }
.yc-photo img { display: block; max-width: 100%; max-height: 240px; border-radius: 10px; background: #fff; }
.yc-compose { display: grid; grid-template-columns: 42px minmax(0, 1fr) 46px; gap: 8px; align-items: end; padding: 10px 12px; border-top: 1px solid var(--yc-line); background: var(--yc-soft); flex: none; }
.yc-compose textarea { width: 100%; min-height: 46px; max-height: 120px; resize: none; padding: 11px 14px; border: 1px solid #8a8e95; border-radius: 23px; background: #fff; font-size: 16px; line-height: 1.4; }
.yc-compose button { width: 46px; height: 46px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--yc-accent) !important; color: #fff !important; font-size: 18px !important; cursor: pointer; }
.yc-compose button:hover { background: var(--yc-accent-hover) !important; }
.yc-compose button:disabled { opacity: .6; cursor: wait; }
.yc-compose .yc-err { grid-column: 1 / -1; }
.yc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }

/* ---------- product page buttons, beside "WhatsApp us" ---------- */
.yens-acts .yc-act { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.yens-acts .yc-act i { display: inline-grid; place-items: center; }
