/* Support chat (support.js): where the original has its Crisp bubble, in the original's colours. */
.sup { --sup-accent: #44c987; --sup-bg: #16191d; --sup-panel: #1d2126; --sup-line: rgba(255, 255, 255, 0.08);
  font-family: var(--font-sofia-sans), "Sofia Sans", system-ui, sans-serif; color: #fff; }
.sup__trigger { position: fixed; right: 2.4rem; bottom: 2.4rem; z-index: 9990; display: grid; place-items: center;
  width: 6rem; height: 6rem; border: 0; border-radius: 50%; cursor: pointer; color: #062014;
  background: linear-gradient(145deg, #5ee0a1, #2fae70); box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.45), 0 0 0 0.1rem rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.15s, box-shadow 0.15s; }
.sup__trigger:hover { transform: translateY(-0.2rem) scale(1.03); box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.5), 0 0 2rem rgba(68, 201, 135, 0.35); }
.sup__trigger svg { width: 2.8rem; height: 2.8rem; }
.sup__badge { position: absolute; top: -0.2rem; right: -0.2rem; min-width: 2.2rem; height: 2.2rem; padding: 0 0.6rem; border-radius: 1.1rem;
  background: #ff4d4f; color: #fff; font-size: 1.2rem; font-weight: 800; line-height: 2.2rem; text-align: center; }
.sup__badge:empty { display: none; }
.sup.is-open .sup__trigger { transform: scale(0.92); }
/* the original hides its chat while a modal is open */
body:has(.fixed.inset-0[class*="z-[99999]"]) .sup__trigger,
body:has(.fixed.inset-0[class*="z-[99999]"]) .sup__panel { display: none !important; }

.sup__panel { position: fixed; right: 2.4rem; bottom: 9.6rem; z-index: 9991; display: none; flex-direction: column;
  width: 38rem; height: min(60rem, calc(100vh - 12rem)); overflow: hidden; border: 0.1rem solid var(--sup-line); border-radius: 1.2rem;
  background: var(--sup-bg); box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.6); font-size: 1.5rem; }
.sup.is-open .sup__panel { display: flex; animation: sup-in 0.18s ease-out; }
@keyframes sup-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
.sup__head { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.6rem; background: linear-gradient(90deg, #1f3a2d, #1b2a24 60%, #1d2126);
  border-bottom: 0.1rem solid var(--sup-line); }
.sup__avatar { position: relative; display: grid; place-items: center; flex: 0 0 4rem; width: 4rem; height: 4rem; border-radius: 50%;
  background: rgba(68, 201, 135, 0.18); color: var(--sup-accent); }
.sup__avatar svg { width: 2.2rem; height: 2.2rem; }
.sup__avatar::after { content: ""; position: absolute; right: 0.1rem; bottom: 0.1rem; width: 1rem; height: 1rem; border: 0.2rem solid #1d2a24;
  border-radius: 50%; background: var(--sup-accent); }
.sup__title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sup__title b { font-family: var(--font-oswald), "Oswald", sans-serif; font-weight: 400; font-size: 2rem; line-height: 1.2; text-transform: uppercase; }
.sup__title small { color: rgba(255, 255, 255, 0.6); font-size: 1.25rem; }
.sup__icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border: 0; border-radius: 0.8rem; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8); }
.sup__icon:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.sup__icon svg { width: 1.8rem; height: 1.8rem; }

.sup__body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sup__history { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem; scrollbar-width: thin; }
.sup__msg { display: flex; flex-direction: column; max-width: 84%; gap: 0.3rem; }
.sup__msg--in { align-self: flex-start; }
.sup__msg--out { align-self: flex-end; align-items: flex-end; }
.sup__who { color: rgba(255, 255, 255, 0.5); font-size: 1.15rem; font-weight: 700; }
.sup__bubble { padding: 1rem 1.3rem; border-radius: 1.2rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.sup__msg--in .sup__bubble { background: var(--sup-panel); border-top-left-radius: 0.4rem; }
.sup__msg--admin .sup__bubble { background: #1f3a2d; border: 0.1rem solid rgba(68, 201, 135, 0.3); }
.sup__msg--out .sup__bubble { background: var(--sup-accent); color: #062014; border-top-right-radius: 0.4rem; }
.sup__time { color: rgba(255, 255, 255, 0.35); font-size: 1.1rem; }
.sup__img { display: block; max-width: 22rem; max-height: 22rem; margin-top: 0.6rem; border-radius: 0.8rem; cursor: zoom-in; }
.sup__quick { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.sup__quick button { padding: 0.7rem 1.1rem; border: 0.1rem solid rgba(68, 201, 135, 0.55); border-radius: 0.8rem; cursor: pointer;
  background: rgba(68, 201, 135, 0.08); color: #c9f5de; font: inherit; font-size: 1.3rem; text-align: left; }
.sup__quick button:hover { background: rgba(68, 201, 135, 0.2); color: #fff; }
.sup__typing { align-self: flex-start; color: rgba(255, 255, 255, 0.45); font-size: 1.25rem; }
.sup__typing--dots { color: #9be8c2; animation: sup-pulse 1.2s ease-in-out infinite; }
@keyframes sup-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

.sup__list { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.sup__ticket { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.3rem; border: 0.1rem solid var(--sup-line); border-radius: 1rem;
  background: var(--sup-panel); cursor: pointer; text-align: left; color: #fff; font: inherit; }
.sup__ticket:hover { border-color: rgba(68, 201, 135, 0.5); }
.sup__ticket b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup__ticket span { color: rgba(255, 255, 255, 0.5); font-size: 1.2rem; }
.sup__ticket i { color: var(--sup-accent); font-style: normal; font-weight: 800; }
.sup__new { margin: 0.4rem 0 0; padding: 1.1rem; border: 0; border-radius: 1rem; cursor: pointer; background: var(--sup-accent); color: #062014;
  font-family: var(--font-oswald), "Oswald", sans-serif; font-size: 1.7rem; text-transform: uppercase; }

.sup__error { margin: 0 1.6rem 0.8rem; padding: 0.8rem 1rem; border-radius: 0.8rem; background: rgba(255, 77, 79, 0.12); color: #ffb3b4; font-size: 1.3rem; }
.sup__files { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0 1.6rem; }
.sup__files span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border-radius: 0.6rem; background: var(--sup-panel); font-size: 1.2rem; }
.sup__files button { border: 0; background: none; color: #ff8a8b; cursor: pointer; font-size: 1.4rem; }
.sup__form { display: flex; align-items: flex-end; gap: 0.8rem; padding: 1.2rem 1.6rem 1.4rem; border-top: 0.1rem solid var(--sup-line); }
.sup__form textarea { flex: 1; min-height: 4.2rem; max-height: 12rem; padding: 1.1rem 1.2rem; resize: none; border: 0.1rem solid var(--sup-line);
  border-radius: 1rem; outline: 0; background: var(--sup-panel); color: #fff; font: inherit; font-size: 1.45rem; line-height: 1.35; }
.sup__form textarea:focus { border-color: rgba(68, 201, 135, 0.6); }
.sup__send { background: var(--sup-accent); color: #062014; }
.sup__send:hover { background: #5ad69a; color: #062014; }
.sup__send:disabled { opacity: 0.5; cursor: default; }
.sup__hint { padding: 0 1.6rem 1rem; color: rgba(255, 255, 255, 0.35); font-size: 1.15rem; }

@media (max-width: 992px) {
  .sup__trigger { right: 1.6rem; bottom: 8.4rem; width: 5.2rem; height: 5.2rem; }
  .sup__panel { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; }
  .sup__img { max-width: 70vw; }
}
