/* Adapted from the existing FLAMA Eyewear storefront chat. */
.storefront-chat{--ink:#1b1b1b;--paper:#f5f5f2;--font-brand:Arial,Helvetica,sans-serif;--accent:#ef4226}
.storefront-chat {
  bottom: max(18px, env(safe-area-inset-bottom));
  font-family: var(--font-brand);
  position: fixed;
  right: 18px;
  z-index: 250;
}

.storefront-chat-launcher {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  display: flex;
  font: 600 12px/1 var(--font-brand);
  gap: 9px;
  height: 48px;
  justify-content: center;
  letter-spacing: 0.08em;
  min-width: 142px;
  padding: 0 16px;
  text-transform: uppercase;
}

.storefront-chat-launcher-separator {
  color: #25d366;
}

@media (min-width: 641px) {
  .storefront-chat-launcher-separator {
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
    font-size: 0;
    height: 4px;
    vertical-align: middle;
    width: 4px;
  }
}

.storefront-chat[hidden] {
  display: none;
}

.storefront-chat-launcher:hover,
.storefront-chat-launcher:focus-visible {
  background: #363633;
  border-color: #363633;
  color: #f5f5f2;
}

.storefront-chat button:focus-visible,
.storefront-chat a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.storefront-chat-panel {
  background: #e9e9e6;
  border: 1px solid #1b1b1b;
  bottom: 60px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  height: min(650px, calc(100dvh - 108px));
  position: absolute;
  right: 0;
  width: min(390px, calc(100vw - 36px));
}

.storefront-chat-header {
  align-items: center;
  background: #e9e9e6;
  border-bottom: 1px solid #bdbdb8;
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 14px;
}

.storefront-chat-header > div,
.storefront-chat-header > div:first-child {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.storefront-chat-header strong,
.storefront-chat-header small {
  display: block;
}

.storefront-chat-header strong {
  font-size: 14px;
  letter-spacing: 0.03em;
}

.storefront-chat-header small {
  color: #686864;
  font-size: 9px;
  line-height: 1.35;
  margin-top: 3px;
}

.storefront-chat-close,
.storefront-chat-forget {
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 7px;
}

.storefront-chat-close {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.storefront-chat-channels {
  display: grid;
  flex-shrink: 0;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px 20px 0;
}

.storefront-chat-channel {
  border: 1px solid #bdbdb8;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 7px;
  justify-content: center;
  min-height: 78px;
  min-width: 0;
  padding: 12px;
  text-decoration: none;
}

.storefront-chat-web {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.storefront-chat-whatsapp:hover { border-color: #166744; }

.storefront-chat-channel-title {
  align-items: center;
  display: flex;
  font-weight: 500;
  gap: 8px;
  line-height: 1.35;
}

.storefront-chat-channel-title > svg,
.storefront-chat-whatsapp-logo {
  flex: 0 0 19px;
  height: 19px;
  width: 19px;
}

.storefront-chat-channel small {
  align-items: center;
  color: inherit;
  display: flex;
  font-size: 10px;
  gap: 4px;
  line-height: 1.45;
}

.storefront-chat-channel small > svg { flex-shrink: 0; }

.storefront-chat-forget {
  color: #686864;
  font: 500 9px/1.2 var(--font-brand);
  max-width: 84px;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.storefront-chat-onboarding {
  display: grid;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 24px 20px;
}

.storefront-chat-introduction {
  border-left: 1px solid #1b1b1b;
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
  padding-left: 14px;
}

.storefront-chat-introduction > span,
.storefront-chat-onboarding label > span {
  color: #60605d;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.storefront-chat-introduction p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.storefront-chat-introduction small {
  color: #676763;
  font-size: 9px;
  line-height: 1.4;
}

.storefront-chat-onboarding label {
  display: grid;
  gap: 7px;
}

.storefront-chat-onboarding input[type="text"],
.storefront-chat-onboarding input[type="email"] {
  background: transparent;
  border: 1px solid #aaa9a4;
  border-radius: 0;
  color: var(--ink);
  font: 400 14px/1.3 var(--font-brand);
  min-height: 45px;
  padding: 10px 12px;
}

.storefront-chat-onboarding > button {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  font: 600 11px/1 var(--font-brand);
  min-height: 47px;
  text-transform: uppercase;
}

.storefront-chat-onboarding > button:disabled,
.storefront-chat-composer button:disabled {
  opacity: 0.42;
}

.storefront-chat-consent {
  align-items: start;
  display: grid !important;
  grid-template-columns: 17px 1fr;
}

.storefront-chat-consent input {
  accent-color: #f15a31;
  height: 15px;
  margin: 0;
  width: 15px;
}

.storefront-chat-consent span {
  color: #5f5f5b !important;
  font-size: 10px !important;
  line-height: 1.45;
  text-transform: none !important;
}

.storefront-chat-consent a { color: inherit; text-underline-offset: 2px; }
.storefront-chat-honeypot { left: -9999px; position: absolute; }

.storefront-chat-conversation {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.storefront-chat-history {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 14px;
}

.storefront-chat-history article {
  border: 1px solid #bab9b4;
  max-width: 86%;
  padding: 11px 12px;
}

.storefront-chat-history article.is-victoria {
  align-self: flex-start;
  background: #f4f4f1;
}

.storefront-chat-history article.is-visitor {
  align-self: flex-end;
  background: #1b1b1b;
  border-color: #1b1b1b;
  color: #f5f5f2;
}

.storefront-chat-history article > span {
  color: #f15a31;
  display: block;
  font-size: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.storefront-chat-history article p {
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

.storefront-chat-history article time {
  color: #858580;
  display: block;
  font-size: 8px;
  margin-top: 7px;
  text-align: right;
}

.storefront-chat-suggestions {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.storefront-chat-suggestions button {
  background: transparent;
  border: 1px solid #aaa9a4;
  color: var(--ink);
  font: 400 11px/1.3 var(--font-brand);
  min-height: 39px;
  padding: 9px 11px;
  text-align: left;
}

.storefront-chat-suggestions button:hover { border-color: #f15a31; }

.storefront-chat-typing,
.storefront-chat-error {
  color: #676763;
  font-size: 10px;
  line-height: 1.45;
  margin: 2px 0;
}

.storefront-chat-error { color: #9e3217; }
.storefront-chat-typing i { animation: storefront-chat-pulse 1.1s infinite; background: #188354; border-radius: 50%; display: inline-block; height: 4px; margin-right: 2px; width: 4px; }
.storefront-chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.storefront-chat-typing i:nth-child(3) { animation-delay: 0.3s; }

.storefront-chat-composer {
  align-items: stretch;
  border-top: 1px solid #bdbdb8;
  display: grid;
  grid-template-columns: 1fr 52px;
  min-height: 72px;
}

.storefront-chat-composer textarea {
  background: #e9e9e6;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font: 400 12px/1.45 var(--font-brand);
  max-height: 120px;
  min-height: 70px;
  padding: 14px;
  resize: none;
}

.storefront-chat-composer button {
  background: #f15a31;
  border: 0;
  border-left: 1px solid #b8492b;
  color: #111;
}

@keyframes storefront-chat-pulse {
  0%, 70%, 100% { opacity: 0.3; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-2px); }
}


.storefront-chat button{cursor:pointer;border-radius:0}.storefront-chat button:disabled{cursor:wait}.storefront-chat [hidden]{display:none!important}.storefront-chat-header{gap:8px}.storefront-chat-header>div{display:block}.storefront-chat-header small{font-size:11px}.storefront-chat-header strong{font-size:17px}.storefront-chat-introduction small,.storefront-chat-consent span{font-size:12px!important}.storefront-chat-introduction p{font-size:15px}.storefront-chat-history article p{font-size:14px}.storefront-chat-history article>span,.storefront-chat-history article time{font-size:10px}.storefront-chat-suggestions button{font-size:13px}.storefront-chat-composer textarea{font-size:16px}.storefront-chat-history{scroll-behavior:smooth}.storefront-chat-error{padding:0 14px;font-size:12px}.storefront-chat-forget{font-size:11px}.storefront-chat-forget:disabled{opacity:.5}.storefront-chat-preview{font-size:12px!important;color:#6c341b!important}.storefront-chat-actions{display:flex;gap:8px;padding:8px 14px;flex-wrap:wrap}.storefront-chat-actions a{font-size:12px;text-decoration:underline}.storefront-chat-reply-state{font-size:12px;padding:0 14px}.storefront-chat-onboarding input{width:100%;min-width:0}.storefront-chat-consent input{width:17px}.storefront-chat-history article{overflow-wrap:anywhere}.storefront-chat-composer{flex-shrink:0}.storefront-chat-launcher:focus-visible,.storefront-chat input:focus-visible,.storefront-chat textarea:focus-visible{outline:3px solid #2459db;outline-offset:3px}
@media(max-width:640px){.storefront-chat{bottom:max(10px,env(safe-area-inset-bottom));right:max(10px,env(safe-area-inset-right))}.storefront-chat[data-open="true"]{inset:0}.storefront-chat[data-open="true"] .storefront-chat-launcher{display:none}.storefront-chat-panel{position:fixed;inset:0;width:100%;height:100dvh;border:0;padding-bottom:env(safe-area-inset-bottom)}.storefront-chat-header{padding:max(12px,env(safe-area-inset-top)) 14px 12px}.storefront-chat-onboarding{padding:18px 16px;gap:12px}.storefront-chat-channels{padding:12px 16px 0}.storefront-chat-channel{min-height:65px}.storefront-chat-composer textarea{min-height:62px}}
@media(prefers-reduced-motion:reduce){.storefront-chat-history{scroll-behavior:auto}.storefront-chat-typing i{animation:none}}

.storefront-chat-introduction small{font-size:13px}.storefront-chat-onboarding label>span{font-size:14px}.storefront-chat-history article p{font-size:16px}.storefront-chat-history article>span,.storefront-chat-history article time,.storefront-chat-channel small,.storefront-chat-forget{font-size:12px}.storefront-chat-suggestions button,.storefront-chat-actions a{font-size:14px}.storefront-chat-onboarding>button{font-size:14px}
