/* Live chat widget extras. Panel/launcher chrome comes from offerco-chrome.css / offerco-home.css.
   Message bubbles are scoped to the floating widget (.cw) so the in-page mock chat is unchanged. */
.oc-root .cw .compose{position:relative}
.oc-root .cw .compose input.oc-chat-input{
  flex:1;min-width:0;border:1px solid var(--line,#e6e6e6);border-radius:80px;
  padding:.55rem .9rem;font:inherit;font-size:16px;color:var(--ink,#1a1a1a);background:#fff;
  font-family:"Inter",sans-serif;
}
.oc-root .cw .compose input.oc-chat-input:focus{outline:2px solid #007AFF;outline-offset:1px}
.oc-root .cw .compose button.send{appearance:none;border:0;cursor:pointer;flex:none}
.oc-root .cw .oc-hp{position:absolute;left:-9999px;height:0;width:0;opacity:0;pointer-events:none}

.oc-root .cw .panel .msgs{
  overflow:auto;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:stretch;
  gap:0;
  background:#f9fafb;
  padding:12px 16px;
  font-family:"Inter",sans-serif;
}
.oc-root .cw .panel .msgs > *{flex:none}

/* iMessage bubbles */
.oc-root .cw .panel .msgs .m{
  position:relative;
  max-width:75%;
  box-sizing:border-box;
  padding:8px 12px;
  border:0;
  box-shadow:none;
  border-radius:18px;
  font-family:"Inter",sans-serif;
  font-size:15px;
  font-weight:400;
  line-height:1.5;
  letter-spacing:normal;
  word-wrap:break-word;
  overflow-wrap:break-word;
  margin:2px 0 0;
}
.oc-root .cw .panel .msgs .m.oc-alone,
.oc-root .cw .panel .msgs .m.oc-first{margin-top:11px}
.oc-root .cw .panel .msgs .m:first-child{margin-top:0}

.oc-root .cw .panel .msgs .m.bot,
.oc-root .cw .panel .msgs .m.oc-typing{
  align-self:flex-start;
  background:#fff;
  color:#1a1a1a;
  border:1px solid rgba(0,66,116,.14);
  border-radius:18px;
  font-style:normal;
  opacity:1;
}
.oc-root .cw .panel .msgs .m.me{
  align-self:flex-end;
  justify-self:end;
  background:#004274;
  color:#fff;
  border:0;
  border-radius:18px;
}

/* Grouped corners: tighter on the tail side except the last/alone bubble */
.oc-root .cw .panel .msgs .m.bot.oc-first:not(.oc-alone){border-bottom-left-radius:4px}
.oc-root .cw .panel .msgs .m.bot.oc-mid{border-top-left-radius:4px;border-bottom-left-radius:4px}
.oc-root .cw .panel .msgs .m.bot.oc-last:not(.oc-alone){border-top-left-radius:4px}

.oc-root .cw .panel .msgs .m.me.oc-first:not(.oc-alone){border-bottom-right-radius:4px}
.oc-root .cw .panel .msgs .m.me.oc-mid{border-top-right-radius:4px;border-bottom-right-radius:4px}
.oc-root .cw .panel .msgs .m.me.oc-last:not(.oc-alone){border-top-right-radius:4px}

/* iMessage curved tail: only the last bubble of a consecutive group. Brand colors (Chris 11/17
   11:15): navy visitor tail; white assistant tail carrying the same light border as its bubble.
   The tail is an SVG painted above the bubble background but under the text. */
.oc-root .cw .panel .msgs .m.oc-tail{z-index:0}
.oc-root .cw .panel .msgs .m.oc-tail::before{
  content:"";
  position:absolute;
  z-index:-1;
  width:27px;
  height:20px;
  pointer-events:none;
  background-repeat:no-repeat;
  background-size:27px 20px;
}
.oc-root .cw .panel .msgs .m.oc-tail::after{content:none;display:none}
.oc-root .cw .panel .msgs .m.bot.oc-tail::before,
.oc-root .cw .panel .msgs .m.oc-typing.oc-tail::before{
  left:-8px;
  bottom:-1px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='20' viewBox='0 0 27 20'%3E%3Cpath d='M7.5 0V6C7.5 13 4.5 17.5 .5 19.5C4.5 19.8 8.5 19 11 17.6C14 19 17.5 19.5 21 19.5H27V0Z' fill='%23fff'/%3E%3Cpath d='M7.5 0V6C7.5 13 4.5 17.5 .5 19.5C4.5 19.8 8.5 19 11 17.6C14 19 17.5 19.5 21 19.5H27' fill='none' stroke='%23dbe4ec'/%3E%3C/svg%3E");
}
.oc-root .cw .panel .msgs .m.me.oc-tail::before{
  right:-7px;
  bottom:0;
  transform:scaleX(-1);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='20' viewBox='0 0 27 20'%3E%3Cpath d='M7.5 0V6C7.5 13 4.5 17.5 .5 19.5C4.5 19.8 8.5 19 11 17.6C14 19 17.5 19.5 21 19.5H27V0Z' fill='%23004274'/%3E%3C/svg%3E");
}

/* Typing indicator: compact bubble styled like the assistant bubble, with tail and a scale/opacity wave */
.oc-root .cw .panel .msgs .m.oc-typing{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:52px;
  min-height:32px;
  padding:8px 14px;
  background:#fff;
  color:#8E8E93;
  border:1px solid rgba(0,66,116,.14);
  box-shadow:none;
}
.oc-root .cw .panel .msgs .m.oc-typing .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#8E8E93;
  animation:oc-im-dot 1.2s infinite ease-in-out both;
}
.oc-root .cw .panel .msgs .m.oc-typing .dot:nth-child(2){animation-delay:.15s}
.oc-root .cw .panel .msgs .m.oc-typing .dot:nth-child(3){animation-delay:.3s}
@keyframes oc-im-dot{
  0%,60%,100%{transform:scale(.72);opacity:.35}
  30%{transform:scale(1);opacity:1}
}
@media (prefers-reduced-motion: reduce){
  .oc-root .cw .panel .msgs .m.oc-typing .dot{animation:none;opacity:.7;transform:none}
}

/* Time chips: pills in brand navy. Tapping one still posts and adds a navy visitor bubble. */
.oc-root .cw .panel .slots{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  max-width:100%;
  align-self:flex-start;
  margin:10px 0 0;
  padding:0 0 0 2px;
}
.oc-root .cw .panel .slot{
  appearance:none;
  cursor:pointer;
  border:1.5px solid #004274;
  background:#004274;
  color:#fff;
  box-shadow:none;
  border-radius:999px;
  padding:.4rem .9rem;
  font-family:"Inter",sans-serif;
  font-size:16px;
  font-weight:600;
  line-height:1.2;
}
.oc-root .cw .panel .slot:hover{background:#00335a;border-color:#00335a}
.oc-root .cw .panel .slot:focus{outline:2px solid #004274;outline-offset:2px}
.oc-root .cw .panel .slot:focus:not(:focus-visible){outline:none}

@media (max-width: 600px){
  .oc-root .cw .panel .msgs .m{font-size:15px}
  .oc-root .cw .panel .slot{font-size:16px}
}

/* Chat r3 11/18: Start over text button in the widget header, next to close. */
.oc-root .cw .panel .chat-top > div:first-child{min-width:0;flex:1 1 auto}
.oc-root .cw .panel .chat-top strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oc-root .cw .p-tools{flex:0 0 auto;flex-wrap:nowrap}
.oc-root .cw .p-restart{
  appearance:none;-webkit-appearance:none;border:0;cursor:pointer;margin:0;
  background:rgba(255,255,255,.14);color:#fff;
  font-family:inherit;font-size:13px;font-weight:600;line-height:1;
  padding:.45rem .7rem;border-radius:80px;white-space:nowrap;
}
.oc-root .cw .p-restart:hover{background:rgba(255,255,255,.22)}
.oc-root .cw .p-restart:focus{outline:2px solid #fff;outline-offset:2px}
.oc-root .cw .p-restart:focus:not(:focus-visible){outline:none}
