/**
 * Consultar Assistência — botão flutuante + modal público.
 */

.cs-assist-lookup-float {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: #0b3a6e;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 58, 110, 0.32);
  -webkit-tap-highlight-color: transparent;
}

.cs-assist-lookup-float:hover,
.cs-assist-lookup-float:focus-visible {
  background: #0e4a8c;
  color: #fff;
}

.cs-assist-lookup-float:focus-visible {
  outline: 3px solid #ff6f00;
  outline-offset: 3px;
}

.cs-assist-lookup-float__icon {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #ffb347;
}

.cs-assist-lookup-float__label {
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .cs-assist-lookup-float {
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  }

  .cs-assist-lookup-float:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 26px rgba(11, 58, 110, 0.4);
  }
}

@media (max-width: 720px) {
  .cs-assist-lookup-float {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .cs-assist-lookup-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .cs-assist-lookup-float__icon {
    width: 24px;
    height: 24px;
  }
}

.cs-assist-lookup-root {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 16px max(12px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.cs-assist-lookup-root[hidden] {
  display: none !important;
}

.cs-assist-lookup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 32, 0.52);
}

.cs-assist-lookup-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  max-height: min(88vh, 720px);
  overflow: hidden;
  box-sizing: border-box;
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: #fff;
  color: #1a2330;
  box-shadow: 0 18px 48px rgba(10, 24, 48, 0.28);
}

.cs-assist-lookup-dialog[data-state="result"] {
  max-width: 480px;
}

.cs-assist-lookup-dialog[data-state="details"] {
  max-width: min(640px, 92vw);
}

.cs-assist-lookup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cs-assist-lookup-close:hover,
.cs-assist-lookup-close:focus-visible {
  background: #f1f5f9;
}

.cs-assist-lookup-title {
  margin: 0 36px 8px 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.cs-assist-lookup-lead,
.cs-assist-lookup-hint {
  margin: 0 0 14px;
  color: #546e7a;
  font-size: 0.95rem;
  line-height: 1.4;
}

.cs-assist-lookup-hint {
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 0.82rem;
}

.cs-assist-lookup-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.cs-assist-lookup-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: #1a2330;
}

.cs-assist-lookup-input:focus {
  outline: 2px solid #0b3a6e;
  outline-offset: 1px;
  border-color: #0b3a6e;
}

.cs-assist-lookup-error {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffebee;
  color: #b71c1c;
  font-size: 0.9rem;
}

.cs-assist-lookup-error[hidden] {
  display: none !important;
}

.cs-assist-lookup-submit,
.cs-assist-lookup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #0b3a6e;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.cs-assist-lookup-submit {
  width: 100%;
}

.cs-assist-lookup-submit:disabled,
.cs-assist-lookup-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.cs-assist-lookup-btn--ghost {
  background: #eceff1;
  color: #1a2330;
}

.cs-assist-lookup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cs-assist-lookup-k {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #607d8b;
}

.cs-assist-lookup-v {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.cs-assist-lookup-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.cs-assist-lookup-report {
  margin: 0;
  padding: 12px 14px;
  max-height: min(52vh, 480px);
  overflow: auto;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid #e3e8ef;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cs-assist-lookup-panel {
  min-height: 0;
  overflow: auto;
}

html.cs-assist-lookup-lock,
html.cs-assist-lookup-lock body {
  overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
  .cs-assist-lookup-float,
  .cs-assist-lookup-float:hover {
    transition: none;
    transform: none;
  }
}

@media print {
  .cs-assist-lookup-float,
  .cs-assist-lookup-root {
    display: none !important;
  }
}
