/* Pending buyer-questions box shown at the top of the dashboard */

.dashboard-questions {
  margin-bottom: 30px;
}

.dashboard-questions-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

.dashboard-questions-title {
  color: #00283c;
  font-size: 18px;
  font-weight: 700;
  margin-right: auto;
}

.dashboard-questions-link {
  color: #00283c;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-questions-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #eaf7fa;
  border: 1px solid #dce6ea;
  border-radius: 12px;
  padding: 12px 14px;
}

.dashboard-questions-topbar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-questions-question {
  flex: 1;
  min-width: 0;
  align-self: center;
  color: #00283c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-questions-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dashboard-questions-counter {
  color: #00283c66;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-questions-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #dce6ea;
  border-radius: 50%;
  background: white;
  color: #00283c;
  cursor: pointer;
}

.dashboard-questions-arrow svg {
  width: 18px;
  height: 18px;
}

.dashboard-questions-arrow:hover:not(:disabled) {
  background: rgba(18, 151, 178, 0.08);
}

.dashboard-questions-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Answer composer, mirroring the description page's AI chat composer */

.dashboard-questions-composer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d9e6ec;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 40, 60, 0.06);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.dashboard-questions-composer:focus-within {
  border-color: #1297b2;
  box-shadow: 0 0 0 3px rgba(18, 151, 178, 0.12);
}

.dashboard-questions-input-row {
  display: block;
}

.dashboard-questions-textarea {
  display: block;
  width: 100%;
  min-height: 28px;
  max-height: 220px;
  resize: none;
  overflow-y: auto;
  border: none;
  border-radius: 18px;
  padding: 6px 12px 2px;
  font-size: 15px;
  font-family: inherit;
  color: #00283c;
  background: transparent;
  outline: none;
  line-height: 1.35;
}

.dashboard-questions-textarea::placeholder {
  color: #00283c66;
}

.dashboard-questions-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.dashboard-questions-dismiss-btn {
  background: #f3f8fa;
  color: #1297b2;
  border: 1px solid #d9e6ec;
  border-radius: 999px;
  min-height: 28px;
  padding: 5px 9px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.dashboard-questions-dismiss-btn:hover {
  background: #fdf1f1;
  color: #cd5252;
}

.dashboard-questions-send {
  position: relative;
  background: linear-gradient(135deg, #52b8cd 0%, #1297b2 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(18, 151, 178, 0.25);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.dashboard-questions-send:hover {
  background: linear-gradient(135deg, #1297b2 0%, #0b7f97 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(18, 151, 178, 0.3);
}

.dashboard-questions-send-default,
.dashboard-questions-send-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-questions-send-loading {
  display: none;
}

.dashboard-questions-send-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: dashboard-questions-spin 0.7s linear infinite;
}

@keyframes dashboard-questions-spin {
  to {
    transform: rotate(360deg);
  }
}

.dashboard-questions.htmx-request .dashboard-questions-send-default {
  display: none;
}

.dashboard-questions.htmx-request .dashboard-questions-send-loading {
  display: inline-flex;
}

.dashboard-questions.htmx-request .dashboard-questions-composer {
  background: #f7fbfc;
}

.dashboard-questions.htmx-request .dashboard-questions-textarea,
.dashboard-questions.htmx-request .dashboard-questions-dismiss-btn {
  pointer-events: none;
  opacity: 0.55;
}

.dashboard-questions.htmx-request .dashboard-questions-send {
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .dashboard-questions-box {
    padding: 10px 12px;
  }
}

.dashboard-questions-hint {
  color: #00283c66;
  font-size: 12px;
  margin-top: 6px;
}
