.consultation-entry {
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555b65;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.consultation-entry:hover,
.consultation-entry[aria-expanded="true"] {
  color: var(--blue);
}

.footer-consultation {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #596b82;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.v2 .footer-brand .footer-consultation img {
  width: 120px;
  height: 120px;
  padding: 4px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #fff;
}

.consultation-dialog {
  width: min(320px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  text-align: center;
  overscroll-behavior: contain;
}

.consultation-dialog.consultation-popover {
  --consultation-width: 242px;
  --consultation-edge: calc(var(--consultation-width) / 2 + 12px);
  position: fixed;
  z-index: 85;
  inset: var(--consultation-top) auto auto;
  left: clamp(var(--consultation-edge), var(--consultation-left), calc(100% - var(--consultation-edge)));
  width: var(--consultation-width);
  max-height: calc(100dvh - var(--consultation-top) - 12px);
  margin: 0;
  transform: translateX(-50%);
  border-radius: 14px;
  box-shadow: 0 15px 36px #22386122;
}

.consultation-dialog::backdrop {
  background: #14274255;
  backdrop-filter: none;
}

html:has(.consultation-dialog:modal) {
  overflow: hidden;
}

.consultation-content {
  position: relative;
  padding: 19px 20px 16px;
}

.consultation-content h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: normal;
}

.consultation-content p {
  margin: 0;
  color: #596b82;
  font-size: 13px;
  line-height: 1.5;
}

.consultation-content img {
  display: block;
  width: min(184px, 100%);
  height: auto;
  margin: 8px auto 4px;
}

.consultation-close {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #596b82;
  font: 24px/1 sans-serif;
  cursor: pointer;
}

.consultation-close:hover {
  background: #f1f4f9;
}

.consultation-content .consultation-save,
.consultation-content .consultation-save-hint {
  display: none;
}

@media (min-width: 1200px) {
  .consultation-entry { font-size: 17px; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .consultation-entry { font-size: 11px; }
}

@media (max-width: 700px) {
  .consultation-entry {
    padding: 14px 5px;
    border-bottom: 1px solid #edf0f5;
    font-size: 14px;
    text-align: left;
  }

  .consultation-dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 16px);
    margin: 0;
    border: 0;
    border-radius: 20px 20px 0 0;
  }

  .consultation-content {
    padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  }

  .consultation-content h2 { font-size: 20px; }

  .consultation-content img {
    width: min(208px, 100%, 48dvh);
    margin: 10px auto 4px;
  }

  .consultation-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .consultation-content .consultation-save {
    display: inline-flex;
    justify-content: center;
    width: min(240px, 100%);
    min-height: 44px;
    margin: 16px auto 6px;
    color: #fff;
    font-size: 14px;
  }

  .consultation-content .consultation-save-hint {
    display: block;
    font-size: 12px;
  }
}
