/* Ask NOW on the static redesign pages. The React pages already style this
   component with the app stylesheet; this file only covers the pages that do not. */
body:has(button.asknow) [data-ask-now="launcher"] { display: none !important; }

[data-ask-now="root"] {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  font-family: "Futura PT", Arial, sans-serif;
  color: #004b5a;
}
[data-ask-now="root"] > * { pointer-events: auto; }

[data-ask-now="launcher"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 9999px;
  background: #004b5a;
  color: #fffbe7;
  padding: 6px 16px 6px 6px;
  min-height: 48px;
  box-shadow: 0 12px 30px rgba(0, 75, 90, 0.28);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
[data-ask-now="launcher"] span:first-child {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  background: #fffbe7;
}
[data-ask-now="launcher"] img { width: 32px; height: 32px; object-fit: contain; }
[data-ask-now="launcher"] span:last-child {
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fffbe7;
}

[data-ask-now="panel"] {
  display: flex;
  flex-direction: column;
  width: min(22.5rem, calc(100vw - 2rem));
  height: min(34rem, calc(100vh - 8rem));
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 75, 90, 0.12);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 75, 90, 0.2);
}
[data-ask-now="panel"] > div:first-child { height: 2px; background: #004b5a; }
[data-ask-now="panel"] > div:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 75, 90, 0.1);
}
[data-ask-now="panel"] > div:nth-child(2) img { width: 40px; height: 40px; object-fit: contain; }
[data-ask-now="panel"] > div:nth-child(2) p { margin: 0; }
[data-ask-now="panel"] > div:nth-child(2) p:first-child {
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #004b5a;
}
[data-ask-now="panel"] > div:nth-child(2) p:last-child { font-size: 12px; color: #5d7378; }

[data-ask-now="close"] {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #004b5a;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

[data-ask-now="messages"] {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
[data-ask-now="messages"] > div { display: flex; }
[data-ask-now="messages"] [data-role="user"] {
  margin-left: auto;
  max-width: 85%;
  background: #004b5a;
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
}
[data-ask-now="messages"] [data-role="bot"] {
  max-width: 85%;
  background: #f4f1e6;
  color: #004b5a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
}
[data-ask-now="messages"] [data-role] p { margin: 0; }
[data-ask-now="messages"] img { width: 24px; height: 24px; object-fit: contain; margin-right: 8px; }
[data-ask-now="messages"] button {
  border: 1px solid rgba(0, 75, 90, 0.18);
  background: #ffffff;
  color: #004b5a;
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
[data-ask-now="messages"] a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 8px;
  background: #004b5a !important;
  color: #fffbe7 !important;
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

[data-ask-now="form"] { border-top: 1px solid rgba(0, 75, 90, 0.1); padding: 12px 16px; }
[data-ask-now="form"] > div { display: flex; align-items: center; gap: 8px; }
[data-ask-now="form"] input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid #d5e3e1;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: #004b5a;
  background: #ffffff;
}
[data-ask-now="form"] button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #004b5a;
  color: #ffffff;
  padding: 0 14px;
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
