/* ===== display-api-error-1.css ===== */

/* ===== デモコンテナ調整 ===== */
.demo-container {
  justify-content: flex-start;
}

/* ===== ラッパー ===== */
.aeb-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  width: 100%;
}

/* ===== 案内テキスト ===== */
.aeb-guide {
  margin: 0;
  font-size: 13px;
  color: #5A6A7A;
}

/* ===== トリガーボタン ===== */
.aeb-trigger {
  align-self: flex-start;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #2B7FE8;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, opacity 0.15s;
}
.aeb-trigger:hover:not(:disabled) {
  background: #1A6FD8;
}
.aeb-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* hidden 属性を display:flex が上書きしないよう明示的に打ち消す */
.aeb-spinner[hidden],
.aeb-banner[hidden] {
  display: none;
}

/* ===== スピナー ===== */
.aeb-spinner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5A6A7A;
}
.aeb-spinner-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid #D0D7E0;
  border-top-color: #9AA5B4;
  border-radius: 50%;
  animation: aeb-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes aeb-spin {
  to { transform: rotate(360deg); }
}

/* ===== エラーバナー（共通）===== */
.aeb-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 4px solid transparent;
}
.aeb-banner-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.aeb-banner-body {
  flex: 1;
  min-width: 0;
}
.aeb-banner-title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
}
.aeb-banner-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

/* ===== エラー種別カラー ===== */
.aeb-banner--warning {
  background: #FFF7ED;
  border-color: #F97316;
  color: #7C2D12;
}
.aeb-banner--error {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #7F1D1D;
}
.aeb-banner--network {
  background: #F4F6F9;
  border-color: #9AA5B4;
  color: #374151;
}

/* ===== 再試行ボタン ===== */
.aeb-retry-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  cursor: pointer;
  font-family: sans-serif;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.aeb-retry-btn:hover {
  opacity: 1;
}

/* ===== デモコントロール（リセットボタン行）===== */
.demo-controls {
  margin-top: 12px;
}

/* ===== リセットボタン ===== */
.reset-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: #5A6A7A;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}
.reset-btn:hover {
  background: #F4F6F9;
  border-color: #9AA5B4;
}
