/* Live chat widget: obsidian header, porcelain bubbles, bone canvas, violet as the only glow. */
.bsd-chat {
	--bc-bone: #F8F5F0;
	--bc-bone-deep: #F3F0EA;
	--bc-porcelain: #FFFFFF;
	--bc-line: #EAE5DD;
	--bc-ink: #11121B;
	--bc-muted: #4A4741;
	--bc-obsidian: #12101A;
	--bc-ivory: #F5F2EB;
	--bc-uv: #792BEE;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990; /* above the cart drawer, below the age gate (99999) */
	--bc-font: "Plus Jakarta Sans", var(--font-sans, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
	font-family: var(--bc-font);
	color: var(--bc-ink);
	line-height: 1.5;
}

.bsd-chat *,
.bsd-chat *::before,
.bsd-chat *::after {
	box-sizing: border-box;
}

.bsd-chat [hidden] {
	display: none !important;
}

.bsd-chat__launcher {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	padding: 12px 18px;
	border: 0;
	border-radius: 9999px;
	background: var(--bc-ink);
	color: var(--bc-porcelain);
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.04em;
	cursor: pointer;
	box-shadow: 0 8px 30px rgba(17, 18, 27, 0.28);
	transition: box-shadow 0.25s ease, background 0.25s ease;
}

.bsd-chat__launcher:focus-visible {
	background: var(--bc-uv);
	box-shadow: 0 10px 30px rgba(121, 43, 238, 0.32);
}

@media (hover: hover) and (pointer: fine) {
  .bsd-chat__launcher:hover {
	background: var(--bc-uv);
	box-shadow: 0 10px 30px rgba(121, 43, 238, 0.32);
  }
}

.bsd-chat__launcher:focus-visible,
.bsd-chat__chip:focus-visible,
.bsd-chat__send:focus-visible,
.bsd-chat__human:focus-visible,
.bsd-chat__close:focus-visible {
	outline: 2px solid var(--bc-uv);
	outline-offset: 2px;
}

.bsd-chat__badge {
	position: absolute;
	top: -6px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 9999px;
	background: var(--bc-uv);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.bsd-chat[data-state="open"] .bsd-chat__launcher {
	display: none;
}

.bsd-chat__panel {
	display: flex;
	flex-direction: column;
	width: 372px;
	max-width: calc(100vw - 24px);
	height: 560px;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow: hidden;
	border: 1px solid var(--bc-line);
	border-radius: 20px;
	background: var(--bc-bone);
	box-shadow: 0 24px 60px rgba(17, 18, 27, 0.28);
	animation: bsd-chat-in 0.22s ease;
}

@keyframes bsd-chat-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

.bsd-chat__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	background: var(--bc-obsidian);
	color: var(--bc-ivory);
}

.bsd-chat__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.bsd-chat__sub {
	margin: 2px 0 0;
	font-size: 0.75rem;
	opacity: 0.72;
}

.bsd-chat__close {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .bsd-chat__close:hover {
	background: rgba(255, 255, 255, 0.18);
  }
}

.bsd-chat__log {
	flex: 1 1 auto;
	padding: 14px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.bsd-chat__msg {
	max-width: 88%;
	margin: 0 0 10px;
	padding: 9px 12px;
	border: 1px solid var(--bc-line);
	border-radius: 14px 14px 14px 4px;
	background: var(--bc-porcelain);
}

.bsd-chat__msg--visitor {
	margin-left: auto;
	border-color: var(--bc-ink);
	border-radius: 14px 14px 4px 14px;
	background: var(--bc-ink);
	color: var(--bc-porcelain);
}

.bsd-chat__msg--agent {
	border-color: var(--bc-uv);
	box-shadow: inset 3px 0 0 var(--bc-uv);
}

.bsd-chat__who {
	display: block;
	margin-bottom: 2px;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.6;
}

.bsd-chat__body {
	margin: 0;
	font-size: 0.875rem;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.bsd-chat__quick {
display: flex;
flex-wrap: wrap;
gap: 6px;
padding: 0 16px 10px;
}

.bsd-chat__chip {
padding: 7px 12px;
border: 1px solid var(--bc-line);
border-radius: 9999px;
background: var(--bc-porcelain);
color: var(--bc-ink);
font: inherit;
font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: border-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .bsd-chat__chip:hover {
border-color: var(--bc-uv);
color: var(--bc-uv);
  }
}

.bsd-chat__form {
padding: 10px 16px 14px;
border-top: 1px solid var(--bc-line);
background: var(--bc-bone-deep);
}

.bsd-chat__hp {
position: absolute;
left: -9999px;
width: 1px;
height: 1px;
overflow: hidden;
}

.bsd-chat__email,
.bsd-chat__input {
width: 100%;
padding: 9px 12px;
border: 1px solid var(--bc-line);
border-radius: 12px;
background: var(--bc-porcelain);
color: var(--bc-ink);
font: inherit;
font-size: 16px; /* prevents iOS zoom on focus */
}

.bsd-chat__email {
margin-bottom: 8px;
}

.bsd-chat__email:focus,
.bsd-chat__input:focus {
border-color: var(--bc-uv);
outline: 2px solid rgba(121, 43, 238, 0.2);
outline-offset: 0;
}

.bsd-chat__row {
display: flex;
align-items: flex-end;
gap: 8px;
}

.bsd-chat__input {
flex: 1 1 auto;
min-height: 42px;
max-height: 96px;
resize: none;
}

.bsd-chat__send {
flex: 0 0 auto;
padding: 11px 18px;
border: 0;
border-radius: 12px;
background: var(--bc-ink);
color: var(--bc-porcelain);
font: inherit;
font-size: 0.8125rem;
font-weight: 600;
cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .bsd-chat__send:hover:not(:disabled) {
background: var(--bc-uv);
  }
}

.bsd-chat__send:disabled {
opacity: 0.55;
cursor: wait;
}

.bsd-chat__human {
margin-top: 8px;
padding: 0;
border: 0;
background: none;
color: var(--bc-muted);
font: inherit;
font-size: 0.75rem;
text-decoration: underline;
text-underline-offset: 3px;
cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .bsd-chat__human:hover {
color: var(--bc-uv);
  }
}

.bsd-chat__note {
min-height: 1em;
margin: 6px 0 0;
font-size: 0.75rem;
color: #9b1c1c;
}

@media (max-width: 480px) {
.bsd-chat {
right: 12px;
bottom: 12px;
}

.bsd-chat[data-state="open"] {
right: 0;
bottom: 0;
left: 0;
}

.bsd-chat[data-state="open"] .bsd-chat__panel {
width: 100%;
max-width: none;
height: min(86vh, 640px);
height: min(86dvh, 640px);
border-radius: 20px 20px 0 0;
}
}

@media (prefers-reduced-motion: reduce) {
.bsd-chat__panel {
animation: none;
}

.bsd-chat *,
.bsd-chat__launcher {
transition: none !important;
}
}

/* ==========================================================================
   Typography: explicit Plus Jakarta Sans on every control so iOS Safari/Brave never fall back to system fonts,
   natural-case inputs and placeholders, and 16px inputs so iOS Safari does not zoom on focus.
   The theme resets in style.css / typography-payment.css use !important, so the
   letter-spacing and text-transform resets below do too.
   ========================================================================== */
.bsd-chat,
.bsd-chat__panel,
.bsd-chat input,
.bsd-chat textarea,
.bsd-chat button {
font-family: var(--bc-font);
}

.bsd-chat .bsd-chat__form input,
.bsd-chat .bsd-chat__form textarea {
font-size: 16px;
font-weight: 400;
line-height: 1.4;
text-transform: none !important;
letter-spacing: normal !important;
}

.bsd-chat .bsd-chat__form input::placeholder,
.bsd-chat .bsd-chat__form textarea::placeholder {
font-family: var(--bc-font);
font-size: inherit;
font-weight: 400 !important;
font-style: normal;
text-transform: none !important;
letter-spacing: normal !important;
color: rgba(17, 18, 27, 0.5);
opacity: 1;
}
