
/* cf-ai-search */

#ar-ai-search-loading {
  margin: 25px 0;
  border: 1px solid #d03b0d;
  border-radius: 4px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Container to define the width and give it a nice background track */
.ar-ai-search-loader-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 0.25rem;;
  overflow: hidden; /* Keeps the stripes inside the rounded corners */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  color: #FFF;
  font-weight: 700;
}

/* The animated loading bar */
.ar-ai-search-loading-bar {
  width: 100%;
  height: 100%;
  background-color: #DB3934; /* Base color */
  padding: 0.50rem 1rem;

  /* Creates the angled stripes using a linear gradient */
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );

  /* Defines the size of the stripe pattern repeat */
  background-size: 40px 40px;

  /* Attaches the infinite moving animation */
  animation: ar-ai-search-load-move-stripes 1.5s linear infinite;
}

/* Keyframes to smoothly shift the background position */
@keyframes ar-ai-search-load-move-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0; /* Matches the background-size width for a seamless loop */
  }
}

#ar-ai-search-container { margin: 25px 0; width: 100%; box-sizing: border-box; }
.ar-search-input-group { display: flex; gap: 12px; margin-bottom: 14px; }
#ar-ai-search-input { flex-grow: 1; padding: 14px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; outline: none; box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); }
#ar-ai-search-input:focus { border-color: #d03b0d; }
#ar-ai-search-submit { padding: 14px 28px; background-color: #d03b0d; color: #fff; border: none; border-radius: 4px; font-weight: bold; font-size: 16px; cursor: pointer; transition: background-color 0.2s ease-in-out; }
#ar-ai-search-submit:hover { background-color: #aa2e08; }
#ar-ai-search-submit:disabled { background-color: #9ca3af; cursor: not-allowed; }
#ar-ai-search-error_notice { color: #b91c1c; background-color: #fee2e2; padding: 12px; border-radius: 4px; margin-bottom: 14px; font-size: 14px; border: 1px solid #fca5a5; }
#ar-ai-search-results { background-color: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.ar-ai-loading { font-style: italic; color: #4b5563; position: relative; }
.ar-ai-rendered-output { line-height: 1.6; color: #1f2937; font-size: 16px; white-space: pre-wrap; }
.ar-ai-rendered-output p { margin-top: 0; margin-bottom: 1em; }
.ar-ai-rendered-output p:last-child { margin-bottom: 0; }

.ar-ai-sources-container {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e5e7eb;
}
.ar-ai-sources-container > strong {
  font-size: 1rem;
  color: #4b5563;
  display: block;
  margin-bottom: 0.50rem;
}
.ar-ai-sources-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}
.ar-ai-sources-list li {
  padding-bottom: 0.50rem;
}

/* */