html,
body {
  height: 100%;
}

body {
  margin: 0;
}

#root {
  height: 100%;
  width: 100%;
}

* {
  box-sizing: border-box;
}

.summit-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  background-color: #f3f6fa;
}

.summit-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
  min-height: 100px;
  padding: 18px 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #001f5b 0%, #004b8d 100%);
  border-bottom: 5px solid #00a3e0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  font-family: "Segoe UI", Arial, sans-serif;
}

.summit-logo {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.summit-title h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.summit-title p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

.summit-chat > div {
  width: 100%;
  height: 100%;
}

.summit-chat {
    background-image: url('/summit-accent-lines.png');
    background-repeat: no-repeat;
    background-position: top 20px right -15px;
    background-size: auto 95%;
    opacity: 1;
}

.summit-accent-lines {
    position: absolute;
    top: 20px;
    right: 40px;
    width: 80px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    }


.summit-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 24px;
  background-color: #eef3fa;
  border-bottom: 1px solid #d7dee8;
}

.summit-prompt-button {
  padding: 8px 16px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #003b75;
  background-color: #ffffff;
  border: 1px solid #b7c6dc;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.summit-prompt-button:hover {
  background-color: #e4edfb;
  box-shadow: 0 2px 6px rgba(0, 31, 91, 0.12);
}

.summit-footer {
  flex: 0 0 auto;
  padding: 10px 24px;
  text-align: center;
  background-color: #eef3fa;
  border-top: 1px solid #d7dee8;
}

.summit-footer p {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  color: #5a6b82;
}

button.render-markdown__citation {
  display: none !important;
}

/* ==========================
   MAIN CHAT CONTAINER
========================== */

.summit-chat {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin: 24px !important;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #d7dee8;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 31, 91, 0.14);
}

/* ==========================
   WELCOME CARD
========================== */

.summit-welcome-card {
  display: flex;
  gap: 26px;
  max-width: 1000px;
  margin: 24px auto;
  padding: 20px 24px;
  background: linear-gradient(
      135deg,
      rgba(255,255,255,1) 0%,
      rgba(247,250,253,1) 100%
  );
  border: 1px solid #cfd9e6;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(0,31,91,0.10);
  font-family: "Segoe UI", Arial, sans-serif;
}

.summit-welcome-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 32px;
  background: white;
  border: 1px solid #d7dee8;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,31,91,0.10);
}

.summit-theme {
  margin-bottom: 8px;
  color: #0063a7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.summit-welcome-content h2 {
  margin: 0 0 10px;
  color: #002b5c;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.1;
}

.summit-welcome-content p {
  color: #4c5d77;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ==========================
   FEATURE CHIPS
========================== */

.summit-welcome-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.summit-feature-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  background: white;
  border: 1px solid #d7dee8;
  border-radius: 24px;
  box-shadow: 0 1px 4px rgba(0,31,91,0.05);
}

.summit-feature-content {
  display: flex;
  align-items: center;
}

.summit-feature-card-title {
  font-weight: 600;
  color: #002b5c;
  font-size: 14px;
}

/* ==========================
   TRUST PANEL
========================== */

.summit-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 22px;
  padding: 8px 12px;
  color: #36536f;
  background-color: #edf6f3;
  border: 1px solid #c5e3d8;
  border-radius: 8px;
  font-size: 13px;
}

.summit-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: white;
  background-color: #167a5b;
  border-radius: 50%;
}

/* ==========================
   POPULAR QUESTIONS
========================== */

.summit-popular-heading {
  margin: 0 0 12px;
  color: #002b5c;
  font-size: 15px;
  font-weight: 650;
}

.summit-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summit-welcome-button,.ac-pushButton {
  min-height: 38px;
  padding: 8px 16px;
  color: #003b75;
  background-color: #ffffff;
  border: 1px solid #abc0dc;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.summit-welcome-button:hover {
background-color: #edf4fd;
border-color: #648dbd;
box-shadow: 0 3px 9px rgba(0, 31, 91, 0.12);
transform: translateY(-1px);
}

.ac-pushButton:hover {
    background: #edf4fd !important;
    background-color: #edf4fd !important;
    background-image: none !important;

    border-color: #648dbd !important;

    box-shadow: 0 3px 9px rgba(0, 31, 91, 0.12) !important;

    transform: translateY(-1px);

    outline: none !important;
}

.ac-pushButton:focus,
.ac-pushButton:active {
    background: #edf4fd !important;
    background-image: none !important;
    outline: none !important;
}

.summit-welcome-button:focus-visible {
outline: 3px solid rgba(0, 163, 224, 0.35);
outline-offset: 2px;
}

/* ==========================
   HERO BANNER
========================== */

.summit-hero-banner {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 80px;
  width: 100%;

  background: #ffffff;
  border-bottom: 1px solid #d7dee8;
}

.summit-hero-logo {
  height: 60px;
  width: auto;
  display: block;
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 700px) {

  
  .summit-logo {
    width: 46px;
    height: 46px;
  }

  .summit-title h1 {
    font-size: 20px;
  }

  .summit-title p {
    font-size: 14px;
  }

  .summit-hero-banner {
    height: 90px;
  }

  .summit-hero-image {
    object-position: 65% center;
  }

  .summit-hero-logo {
    height: 55px;
  }

  .summit-chat {
    margin: 8px !important;
    border-radius: 10px;
  }

  .summit-welcome-card {
    padding: 14px;
    margin: 8px;
    gap: 12px;
  }

  .summit-welcome-icon {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .summit-theme {
    display: none;
  }

  .summit-welcome-content > p {
    display: none;
  }

  .summit-welcome-content h2 {
    font-size: 20px;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .summit-welcome-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .summit-feature-card {
    min-height: 42px;
    padding: 8px 12px;
  }

  .summit-trust {
    margin: 4px 0 10px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .summit-welcome-features {
    display: none;
  }

  .summit-popular-heading {
    display: block;
    margin-bottom: 8px;
  }

  .summit-welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .summit-welcome-button {
    width: 100%;
    text-align: left;
  }

  .summit-footer {
  padding: 8px 14px;
  }

  .summit-footer p {
  font-size: 11px;
  }
}

/* ==========================
   Short Screen
========================== */

@media (max-height: 900px) {

  .summit-welcome-card {
    margin: 8px auto;
    padding: 12px 16px;
    gap: 12px;
  }

 .summit-welcome-content h2 {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .summit-welcome-content p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .summit-theme {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .summit-popular-heading {
    margin: 8px 0 6px;
  }

  .summit-welcome-button {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .summit-welcome-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* Bot Bubble */
.webchat .bubble:not(.bubble--from-user) .bubble__content {
    border: 3px solid #00D7B9 !important;
}

/* User Bubble*/
.webchat .bubble--from-user .bubble__content {
    border: 3px solid #0000A0 !important;
}

/* Bot adaptive card bubbles */
.bubble__content:has(.adaptive-card-renderer) {
    max-width: 550px !important;
    width: auto !important;
}

/* Submit Button resize */
button.ac-pushButton {
    width: auto !important;
    min-width: 160px !important;
    max-width: 200px !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    margin: 0 6px !important;
}

/* Adaptive Card container */
.ac-adaptiveCard {
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* Constrain Adaptive Cards */
.adaptive-card-renderer {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Fix Adaptive Card title truncation */
.webchat [class*="render-markdown"][class*="adaptive-cards"]:first--child {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Fix Button Stacking */
.ac-actionSet {
    margin-top: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 12px !important;
}