#voltconsult-arthur-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  font-family:
    "Sora",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

#voltconsult-arthur-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;

  width: 340px;
  height: 520px;

  max-width: calc(100vw - 36px);
  max-height: calc(100dvh - 36px);

  pointer-events: auto;
}

#voltconsult-arthur-panel[hidden],
#voltconsult-arthur-launcher[hidden] {
  display: none !important;
}

#voltconsult-arthur-frame {
  display: block;

  width: 100%;
  height: 100%;

  border: 1px solid rgba(7, 26, 62, 0.14);
  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 24px 70px rgba(7, 26, 62, 0.20),
    0 8px 24px rgba(7, 26, 62, 0.12);
}

#voltconsult-arthur-close {
  position: absolute;
  top: -13px;
  right: -9px;

  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  padding: 0;

  border: 2px solid #ffffff;
  border-radius: 50%;

  background: #071a3e;
  color: #ffffff;

  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 6px 18px rgba(7, 26, 62, 0.30);

  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

#voltconsult-arthur-close:hover {
  background: #0d2d63;
  transform: scale(1.06);
}

#voltconsult-arthur-close:focus-visible,
#voltconsult-arthur-launcher:focus-visible {
  outline: 3px solid rgba(255, 107, 0, 0.35);
  outline-offset: 3px;
}

#voltconsult-arthur-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;

  padding: 0;

  border: 2px solid #ffffff;
  border-radius: 50%;

  background: #ff6b00;
  color: #ffffff;

  font-family:
    "Sora",
    system-ui,
    sans-serif;
  font-size: 19px;
  font-weight: 800;

  cursor: pointer;
  pointer-events: auto;

  box-shadow:
    0 14px 34px rgba(7, 26, 62, 0.25),
    0 4px 12px rgba(255, 107, 0, 0.20);

  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

#voltconsult-arthur-launcher:hover {
  background: #e95f00;
  transform: translateY(-2px);

  box-shadow:
    0 18px 38px rgba(7, 26, 62, 0.27),
    0 5px 14px rgba(255, 107, 0, 0.22);
}

/*
 * Tablet / telas intermediárias
 */
@media (max-width: 900px) {
  #voltconsult-arthur-panel {
    width: 330px;
    height: 500px;

    right: 14px;
    bottom: 14px;
  }
}

/*
 * Mobile
 *
 * Não toma 100% da tela.
 * Mantém margem e deixa a página perceptível ao fundo.
 */
@media (max-width: 640px) {
  #voltconsult-arthur-panel {
    right: 10px;
    bottom: 10px;

    width: calc(100vw - 20px);
    height: min(72dvh, 610px);

    max-width: none;
    max-height: calc(100dvh - 20px);
  }

  #voltconsult-arthur-frame {
    border-radius: 16px;
  }

  #voltconsult-arthur-close {
    top: -11px;
    right: 2px;

    width: 32px;
    height: 32px;

    font-size: 22px;
  }

  #voltconsult-arthur-launcher {
    right: 12px;
    bottom: 12px;

    width: 52px;
    height: 52px;

    font-size: 18px;
  }
}

/*
 * Celulares baixos / landscape
 */
@media (max-height: 650px) {
  #voltconsult-arthur-panel {
    height: calc(100dvh - 28px);
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #voltconsult-arthur-close,
  #voltconsult-arthur-launcher {
    transition: none;
  }
}