/* Oakley's website chat. Matches Suzie's (MxChat) look: navy #002d5b header, gray answers, square corners, Work Sans. */
#gre-oak, #gre-oak * { box-sizing: border-box; }
#gre-oak { --oak-navy: #002d5b; --oak-gray: #e0e0e0; font-family: "Work Sans", -apple-system, "Segoe UI", sans-serif; }
#gre-oak svg { flex: none; display: block; max-width: none; }
#gre-oak .gre-oak__launch svg { width: 30px !important; height: 30px !important; }
#gre-oak .gre-oak__icon svg { width: 18px !important; height: 18px !important; }
#gre-oak .gre-oak__send svg { width: 22px !important; height: 22px !important; }
#gre-oak button { line-height: 1; min-height: 0; text-transform: none; letter-spacing: normal; }

.gre-oak__launch { position: fixed; right: 24px; bottom: 20px; z-index: 99998; width: 60px; height: 60px; border: 0; border-radius: 0 !important;
  background: var(--oak-navy); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.gre-oak__launch svg { width: 30px; height: 30px; }
.gre-oak__teaser { position: fixed; right: 24px; bottom: 92px; z-index: 99998; background: #fff; color: #222; font-size: 14px;
  padding: 10px 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); border-radius: 0 !important; cursor: pointer; }
.gre-oak__teaser-x { position: absolute; top: -9px; right: -9px; width: 18px; height: 18px; border: 0; border-radius: 0 !important;
  background: #333; color: #fff; font-size: 11px; line-height: 18px; padding: 0; cursor: pointer; }

.gre-oak__win { position: fixed; right: 24px; bottom: 20px; z-index: 99999; width: 375px; height: min(640px, calc(100vh - 40px));
  background: #fff; display: flex; flex-direction: column; box-shadow: 0 4px 8px rgba(0, 0, 0, .1), 0 8px 28px rgba(0, 0, 0, .12);
  border-radius: 0 !important; }
.gre-oak__win[hidden], .gre-oak__launch[hidden], .gre-oak__teaser[hidden] { display: none !important; }
.gre-oak__head { background: var(--oak-navy); color: #fff; height: 48px; padding: 0 8px 0 14px; display: flex; align-items: center; gap: 8px; flex: none; }
.gre-oak__title { font-size: 15px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gre-oak__chip { font-size: 11px; background: #1f1f1f; color: #fff; padding: 3px 7px; }
.gre-oak__icon { width: 34px; height: 34px; border: 0; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 0 !important; padding: 0; }
.gre-oak__icon svg { width: 18px; height: 18px; }

.gre-oak__log { flex: 1; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.gre-oak__msg { max-width: 82%; padding: 10px 12px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; border-radius: 0 !important; }
.gre-oak__msg--oak { align-self: flex-start; background: var(--oak-gray); color: var(--oak-navy); box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.gre-oak__msg--you { align-self: flex-end; background: #fff; color: #212121; border: 1px solid #e6e6e6; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.gre-oak__msg a { color: var(--oak-navy); font-weight: 700; text-decoration: underline; word-break: break-word; }
/* Kevin in the chat: his messages in navy with his name, and a quiet line when he joins or leaves. */
.gre-oak__msg--kev { align-self: flex-start; background: var(--oak-navy); color: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.gre-oak__msg--kev a { color: #fff; }
.gre-oak__by { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .8; margin-bottom: 2px; }
.gre-oak__msg--sys { align-self: center; max-width: 94%; background: transparent; color: #5b6475; font-size: 12px; line-height: 1.45; text-align: center; padding: 2px 6px; box-shadow: none; }
.gre-oak__chip--kev { background: #b4541a; }
.gre-oak__dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.gre-oak__dots i { width: 9px; height: 9px; background: var(--oak-navy); opacity: .35; animation: gre-oak-dot 1.2s infinite; }
.gre-oak__dots i:nth-child(2) { animation-delay: .2s; } .gre-oak__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes gre-oak-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.gre-oak__status { font-size: 12px; color: #5b6475; margin-top: 4px; }

.gre-oak__foot { padding: 10px; border-top: 1px solid #eee; flex: none; }
.gre-oak__form { display: flex; border: 1px solid #cfd4dc; }
.gre-oak__input { flex: 1; border: 0 !important; outline: 0; resize: none; font: 15px/1.4 inherit; padding: 10px; min-height: 58px; max-height: 120px; color: #212121; background: #fff; border-radius: 0 !important; box-shadow: none !important; }
.gre-oak__send { width: 46px; border: 0; background: #fff; color: #212121; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 0 !important; padding: 0; }
.gre-oak__send:disabled { opacity: .4; cursor: default; }
.gre-oak__send svg { width: 22px; height: 22px; }
.gre-oak__note { font-size: 11px; color: #6b7280; margin: 6px 2px 0; line-height: 1.4; }
.gre-oak__note a { color: #6b7280; }

/* Phones: the action bar's Ask button opens Oakley, so no launcher or teaser; the window fills the screen. */
@media (max-width: 767px) {
  .gre-oak__launch, .gre-oak__teaser { display: none !important; }
  .gre-oak__win { inset: 0; width: 100%; height: 100%; right: 0; bottom: 0; }
  .gre-oak__input { font-size: 16px; }
}
