.ask-expert {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: 5.75rem;
  z-index: 80;
  font-family: Poppins, sans-serif;
}

.ask-expert__trigger {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #f68037;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(29, 44, 62, .2);
  cursor: pointer;
}

.ask-expert__trigger:hover,
.ask-expert__trigger:focus-visible {
  background: #db6925;
}

.ask-expert__trigger svg,
.ask-expert__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.ask-expert__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .75rem);
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 2rem));
  max-height: calc(100dvh - 10rem);
  overflow: auto;
  border: 1px solid #bed4eb;
  border-radius: 1.25rem;
  background: #fff;
  color: #1d2c3e;
  box-shadow: 0 16px 40px rgba(29, 44, 62, .22);
}

.ask-expert__panel[hidden] { display: none; }

.ask-expert__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: #1d2c3e;
  color: #fff;
}

.ask-expert__header strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.ask-expert__header span {
  display: block;
  margin-top: .2rem;
  color: #e3edf5;
  font-size: .72rem;
}

.ask-expert__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.ask-expert__body { padding: 1rem 1.1rem 1.15rem; }

.ask-expert__intro {
  margin: 0 0 .9rem;
  padding: .8rem .9rem;
  border-radius: .9rem .9rem .9rem .25rem;
  background: #ebf3fb;
  color: #24384c;
  font-size: .82rem;
  line-height: 1.5;
}

.ask-expert__label {
  display: block;
  margin: 0 0 .55rem;
  color: #1d2c3e;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ask-expert__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.ask-expert__suggestion {
  padding: .55rem .7rem;
  border: 1px solid #bed4eb;
  border-radius: .75rem;
  background: #fff;
  color: #1d2c3e;
  font-size: .72rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.ask-expert__suggestion:hover,
.ask-expert__suggestion:focus-visible {
  border-color: #f68037;
  background: #fff6ef;
}

.ask-expert__conversation:not(:empty) {
  display: grid;
  gap: .45rem;
  margin: -.15rem 0 1rem;
}

.ask-expert__bubble {
  max-width: 92%;
  margin: 0;
  padding: .65rem .75rem;
  border-radius: .8rem;
  font-size: .74rem;
  line-height: 1.5;
}

.ask-expert__bubble--question {
  justify-self: end;
  border-bottom-right-radius: .2rem;
  background: #1d2c3e;
  color: #fff;
}

.ask-expert__bubble--answer {
  justify-self: start;
  border-bottom-left-radius: .2rem;
  background: #ebf3fb;
  color: #24384c;
}

.ask-expert__input {
  display: block;
  width: 100%;
  min-height: 5rem;
  padding: .75rem;
  border: 1px solid #bed4eb;
  border-radius: .75rem;
  background: #fff;
  color: #1d2c3e;
  font: inherit;
  font-size: .82rem;
  line-height: 1.45;
  resize: vertical;
}

.ask-expert__input:focus-visible {
  outline: 2px solid #f68037;
  outline-offset: 2px;
}

.ask-expert__submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 2.8rem;
  margin-top: .75rem;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #1d2c3e;
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}

.ask-expert__submit:hover,
.ask-expert__submit:focus-visible { background: #30465e; }

.ask-expert__note,
.ask-expert__status {
  margin: .55rem 0 0;
  color: #536578;
  font-size: .7rem;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .ask-expert { right: 1rem; bottom: 4.75rem; }
  .ask-expert__trigger { padding: .65rem .85rem; }
}
