﻿.nilsen-concierge {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 999998;
  font-family: Arial, sans-serif;
}

.nilsen-concierge__launch {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #163f48;
  color: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nilsen-concierge__launch:hover,
.nilsen-concierge[data-open=true] .nilsen-concierge__launch {
  transform: translateY(-2px);
  background: #8a1221;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.nilsen-concierge__launch span {
  width: 27px;
  height: 27px;
  display: block;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background: #fff;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 6.75A3.75 3.75 0 0 1 8.75 3h6.5A3.75 3.75 0 0 1 19 6.75v4.7a3.75 3.75 0 0 1-3.75 3.75h-3.86l-5.2 3.51a.75.75 0 0 1-1.17-.62V15.1A3.75 3.75 0 0 1 2 11.45v-4.7Zm3.75-2.25A2.25 2.25 0 0 0 6.5 6.75v4.7a2.25 2.25 0 0 0 2.25 2.25h.75v2.98l3.43-2.31a.75.75 0 0 1 .42-.13h1.9a2.25 2.25 0 0 0 2.25-2.25v-4.7A2.25 2.25 0 0 0 15.25 4.5h-6.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nilsen-concierge__panel {
  position: absolute;
  left: 0;
  bottom: 76px;
  width: min(410px, calc(100vw - 32px));
  height: min(590px, calc(100svh - 118px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #17282c;
  border: 1px solid rgba(20, 43, 48, .16);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
  opacity: 0;
  transform: translateY(10px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.nilsen-concierge[data-open=true] .nilsen-concierge__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nilsen-concierge__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 16px;
  background: #f5f1ea;
  border-bottom: 1px solid rgba(20, 43, 48, .14);
}

.nilsen-concierge__head strong {
  display: block;
  font-size: 15px;
}

.nilsen-concierge__head span {
  display: block;
  font-size: 12px;
  color: #66777b;
  margin-top: 3px;
}

.nilsen-concierge__head button {
  border: 0;
  background: transparent;
  color: #163f48;
  font-weight: 800;
  cursor: pointer;
}

.nilsen-concierge__messages {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nilsen-concierge__message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(20, 43, 48, .12);
  background: #f7f7f3;
  font-size: 14px;
  line-height: 1.42;
  white-space: pre-wrap;
}

.nilsen-concierge__message.user {
  align-self: flex-end;
  background: #163f48;
  color: #fff;
  border-color: #163f48;
}

.nilsen-concierge__message.assistant {
  align-self: flex-start;
}

.nilsen-concierge__message a {
  color: #8a1221;
  font-weight: 800;
}

.nilsen-concierge__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}

.nilsen-concierge__suggestions button {
  border: 1px solid rgba(20, 43, 48, .16);
  border-radius: 999px;
  background: #fff;
  color: #163f48;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  cursor: pointer;
}

.nilsen-concierge__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(20, 43, 48, .14);
}

.nilsen-concierge__form input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(20, 43, 48, .18);
  border-radius: 9px;
  padding: 10px 11px;
  font-size: 14px;
}

.nilsen-concierge__form button {
  border: 0;
  border-radius: 9px;
  background: #8a1221;
  color: #fff;
  padding: 0 13px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 576px) {
  .nilsen-concierge {
    left: 14px;
    bottom: 14px;
  }

  .nilsen-concierge__panel {
    bottom: 72px;
    width: calc(100vw - 28px);
  }
}
