body.ask-owl-open {
  overflow: hidden;
}

#ask-owl-entry {
  margin-top: -2px;
}

#ask-owl-entry[hidden] {
  display: none;
}

.ask-owl-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #d4af37;
  cursor: pointer;
  font: 700 0.96rem/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ask-owl-entry-button:hover {
  border-color: rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.09);
}

.ask-owl-entry-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ask-owl-dialog {
  width: min(700px, calc(100% - 28px));
  max-height: min(860px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.46);
  border-radius: 24px;
  background: #0d1b2a;
  color: #eef0eb;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.68), 0 0 36px rgba(212, 175, 55, 0.12);
}

.ask-owl-dialog::backdrop {
  background: rgba(2, 8, 16, 0.76);
  backdrop-filter: blur(13px) saturate(125%);
  -webkit-backdrop-filter: blur(13px) saturate(125%);
}

.ask-owl-panel {
  position: relative;
  box-sizing: border-box;
  max-height: min(860px, calc(100dvh - 28px));
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 18% 0%, rgba(59, 108, 237, 0.13), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(17, 34, 64, 0.72) 44%, rgba(13, 27, 42, 0.96));
}

.ask-owl-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  background: rgba(8, 19, 33, 0.74);
  color: #d4af37;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.ask-owl-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-right: 42px;
}

.ask-owl-heading img {
  width: 52px;
  height: 52px;
  padding: 4px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: rgba(17, 34, 64, 0.62);
  object-fit: contain;
}

.ask-owl-heading p,
.ask-owl-heading h2,
.ask-owl-intro,
.ask-owl-form h3,
.ask-owl-form label,
.ask-owl-message,
.ask-owl-history-heading h3,
.ask-owl-history,
.ask-owl-request p {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.ask-owl-heading p {
  margin: 0 0 2px;
  color: #93a3b5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ask-owl-heading h2 {
  margin: 0;
  color: #d4af37;
  font-family: "Owl Times", "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 2.35rem);
  line-height: 1.05;
}

.ask-owl-intro {
  margin: 20px 0 24px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 16px;
  background: rgba(19, 34, 56, 0.75);
  color: #dce3eb;
  font-size: 0.96rem;
  line-height: 1.5;
}

.ask-owl-form h3,
.ask-owl-history-heading h3 {
  margin: 0;
  color: #d4af37;
  font-family: "Owl Times", "Times New Roman", serif;
  font-size: 1.35rem;
}

.ask-owl-form label {
  display: block;
  margin: 15px 0 7px;
  color: #d4af37;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.35;
}

.ask-owl-form label span {
  color: #9ba9b8;
  font-weight: 500;
}

.ask-owl-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 88px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 14px;
  outline: none;
  background: rgba(6, 14, 26, 0.82);
  color: #fff;
  font: 400 1rem/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ask-owl-form textarea:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.11);
}

.ask-owl-message {
  min-height: 22px;
  margin: 11px 0 7px;
  color: #77c593;
  font-size: 0.9rem;
}

.ask-owl-message[data-error="true"] {
  color: #ff8a8a;
}

.ask-owl-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: #d4af37;
  color: #0d1b2a;
  cursor: pointer;
  font: 800 1rem/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ask-owl-submit:disabled {
  cursor: wait;
  opacity: 0.66;
}

.ask-owl-history-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.24);
}

.ask-owl-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ask-owl-history-heading button {
  border: 0;
  background: transparent;
  color: #d4af37;
  cursor: pointer;
  font: 700 0.9rem/1.2 Inter, sans-serif;
}

.ask-owl-history {
  color: #b7c2ce;
  font-size: 0.94rem;
}

.ask-owl-empty {
  margin: 12px 0;
  color: #9aa8b7;
  text-align: center !important;
}

.ask-owl-request {
  margin-bottom: 12px;
  padding: 15px;
  border: 1px solid #30445b;
  border-radius: 14px;
  background: rgba(19, 34, 56, 0.82);
}

.ask-owl-request-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ask-owl-request h3 {
  margin: 0;
  color: #f4f5f1;
  font: 700 1rem/1.35 Inter, sans-serif;
}

.ask-owl-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(156, 203, 255, 0.13);
  color: #9ccbff;
  font-size: 0.72rem;
  font-weight: 800;
}

.ask-owl-status[data-status="researching"] {
  background: rgba(212, 175, 55, 0.13);
  color: #d4af37;
}

.ask-owl-status[data-status="completed"] {
  background: rgba(119, 197, 147, 0.13);
  color: #77c593;
}

.ask-owl-status[data-status="archived"] {
  background: rgba(124, 138, 155, 0.13);
  color: #93a0af;
}

.ask-owl-status-copy {
  margin: 8px 0 0;
  color: #b7c2ce;
  font-size: 0.86rem;
  line-height: 1.4;
}

.ask-owl-date {
  margin: 7px 0 0;
  color: #7c8a9b;
  font-size: 0.75rem;
}

@media (max-width: 520px) {
  .ask-owl-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 19px;
  }

  .ask-owl-panel {
    max-height: calc(100dvh - 16px);
    padding: 18px 15px 24px;
  }

  .ask-owl-close {
    top: 10px;
    right: 10px;
  }

  .ask-owl-heading img {
    width: 46px;
    height: 46px;
  }

  .ask-owl-request-top {
    gap: 8px;
  }
}
