.ecb-how-chatbot {
  --ecb-ink: #222831;
  --ecb-muted: #5b6674;
  --ecb-line: #d9e0e7;
  --ecb-panel: #f7f9fb;
  --ecb-accent: #c62828;
  --ecb-focus: #1f6feb;
  --ecb-menu-width: 200px;
  color: var(--ecb-ink);
  font-size: 16px;
  line-height: 1.55;
}

.ecb-how-chatbot *,
.ecb-how-chatbot *::before,
.ecb-how-chatbot *::after {
  box-sizing: border-box;
}

.ecb-guide-layout {
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ecb-guide-sidebar {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: 100%;
  border: 1px solid var(--ecb-line);
  background: #f4f4f4;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.ecb-guide-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 50px 14px 18px;
}

.ecb-guide-sidebar li + li {
  margin-top: 5px;
}

.ecb-guide-sidebar a {
  display: block;
  padding: 8px 10px;
  color: #333;
  font-weight: 700;
  text-decoration: none;
}

.ecb-guide-sidebar a:hover,
.ecb-guide-sidebar a:focus,
.ecb-guide-sidebar a[aria-current="page"] {
  background: #333;
  color: #fff;
  text-decoration: none;
}

.ecb-guide-menu-toggle,
.ecb-guide-sidebar__close {
  display: none;
}

.ecb-js-ready .ecb-guide-layout {
  grid-template-columns: minmax(0, 1fr);
}

.ecb-js-ready .ecb-guide-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  min-height: 44px;
  margin: 0 0 18px;
  padding: 10px 16px;
  border: 0;
  background: #333;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.ecb-guide-menu-toggle__icon {
  font-size: 18px;
  line-height: 1;
}

.ecb-js-ready .ecb-guide-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--ecb-menu-width);
  max-width: 82vw;
  transform: translateX(-104%);
  transition: transform 0.3s ease;
  border: 0;
  border-radius: 0;
}

.ecb-js-ready .ecb-guide-sidebar.is-open {
  transform: translateX(0);
}

.ecb-js-ready .ecb-guide-sidebar__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: #f4f4f4;
  color: #333;
  font-size: 22px;
  cursor: pointer;
}

.ecb-guide-content {
  min-width: 0;
}

.ecb-guide-section {
  padding: 0 0 34px;
}

.ecb-section-heading h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
}

.ecb-section-heading p,
.ecb-box-detail__text p,
.ecb-tutorial-card p {
  color: var(--ecb-muted);
}

.ecb-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 34px 20px;
  justify-content: center;
  margin: 54px auto 22px;
  width: 100%;
}

.ecb-box-button {
  --ecb-box-border: gainsboro;
  --ecb-box-bg: #fff;
  min-height: 45px;
  padding: 7px 10px;
  border: 3px solid var(--ecb-box-border);
  border-radius: 999px;
  background: var(--ecb-box-bg);
  color: #000;
  box-shadow: 2px 2px 19px #aaa;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.15s ease-in, transform 0.15s ease-in, opacity 0.15s ease-in;
}

.ecb-box-button span {
  display: block;
  overflow-wrap: anywhere;
}

.ecb-box-button:hover,
.ecb-box-button:focus,
.ecb-box-button.is-active {
  box-shadow: 2px 2px 21px rgba(0, 0, 0, 0.42);
  opacity: 1;
  transform: translateY(-1px);
}

.ecb-box-button.is-active {
  outline: 3px solid rgba(31, 111, 235, 0.35);
  outline-offset: 2px;
}

.ecb-box-button.skin-receptive {
  --ecb-box-border: gainsboro;
  --ecb-box-bg: #fff;
}

.ecb-box-button.skin-send {
  --ecb-box-border: brown;
  --ecb-box-bg: rgba(165, 42, 42, 0.2);
}

.ecb-box-button.skin-request {
  --ecb-box-border: orange;
  --ecb-box-bg: rgba(255, 198, 122, 0.2);
}

.ecb-box-button.skin-buttons,
.ecb-box-button.skin-multidigit {
  --ecb-box-border: blue;
  --ecb-box-bg: rgba(0, 0, 255, 0.2);
}

.ecb-box-button.skin-schedule {
  --ecb-box-border: green;
  --ecb-box-bg: rgba(0, 128, 0, 0.2);
}

.ecb-box-button.skin-prefix {
  --ecb-box-border: yellow;
  --ecb-box-bg: rgba(255, 255, 0, 0.2);
}

.ecb-box-button.skin-webservice {
  --ecb-box-border: cyan;
  --ecb-box-bg: rgba(0, 255, 255, 0.2);
}

.ecb-box-button.skin-calculate {
  --ecb-box-border: #0331ff;
  --ecb-box-bg: rgba(163, 180, 255, 0.2);
}

.ecb-box-button.skin-action {
  --ecb-box-border: violet;
  --ecb-box-bg: rgba(238, 130, 238, 0.2);
}

.ecb-box-button.skin-ai {
  --ecb-box-border: red;
  --ecb-box-bg: rgba(240, 11, 11, 0.2);
}

.ecb-box-button.skin-spider {
  --ecb-box-border: red;
  --ecb-box-bg: rgba(0, 0, 0, 0.2);
}

.ecb-box-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 30px;
  align-items: start;
  max-width: 92%;
  margin: 36px auto 0;
  padding: 32px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f1f1f1;
}

.ecb-box-detail h3,
.ecb-box-fallback h3 {
  margin-top: 0;
  font-size: 22px;
}

.ecb-box-detail__items {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ecb-box-detail__items li {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid rgba(217, 224, 231, 0.85);
}

.ecb-box-term {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--ecb-line);
  border-radius: 4px;
  background: #fff;
  color: #0073e6;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
}

.ecb-box-term:hover,
.ecb-box-term:focus,
.ecb-box-term.is-active {
  background: #ffeeaa;
  color: #000;
}

.ecb-box-detail__figure {
  margin: 0;
}

.ecb-box-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.ecb-box-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.ecb-highlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ecb-highlight-rect {
  position: absolute;
  border: 3px solid rgb(255, 0, 0);
  border-radius: 5px;
  pointer-events: none;
  animation: ecb-highlight-pulse 1.5s infinite;
}

@keyframes ecb-highlight-pulse {
  0% {
    border-color: rgba(255, 0, 0, 1);
  }
  50% {
    border-color: rgba(255, 0, 0, 0.5);
  }
  100% {
    border-color: rgba(255, 0, 0, 1);
  }
}

.ecb-box-detail figcaption {
  margin-top: 8px;
  color: var(--ecb-muted);
  font-size: 13px;
}

.ecb-box-fallback {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed var(--ecb-line);
  border-radius: 6px;
  background: #fff;
}

.ecb-js-ready .ecb-box-fallback {
  display: none;
}

.ecb-box-fallback__item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ecb-line);
}

.ecb-box-fallback__item img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--ecb-line);
}

.ecb-functions-table-wrap {
  margin-top: 20px;
}

.ecb-functions-table {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ecb-functions-table th {
  background: red;
  color: #fff;
  text-align: center;
  vertical-align: top;
}

.ecb-functions-table td {
  vertical-align: top;
}

.ecb-functions-table code {
  white-space: normal;
}

.ecb-tutorial-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 24px;
}

.ecb-tutorial-tab {
  min-height: 40px;
  padding: 10px 20px;
  border: 0;
  border-radius: 4px;
  background: #e0e0e0;
  color: #1f2031;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ecb-tutorial-tab:hover,
.ecb-tutorial-tab:focus,
.ecb-tutorial-tab.is-active {
  background: #c0c0c0;
}

.ecb-tutorial-panel[hidden] {
  display: none;
}

.ecb-tutorial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ecb-tutorial-card {
  width: 100%;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

.ecb-tutorial-card h4 {
  margin-top: 0;
  color: red;
}

.ecb-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 12px;
  background: #111;
}

.ecb-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ecb-how-chatbot a:focus,
.ecb-how-chatbot button:focus {
  outline: 3px solid var(--ecb-focus);
  outline-offset: 2px;
}

@media (min-width: 1200px) {
  .ecb-box-grid {
    grid-template-columns: repeat(6, minmax(105px, 1fr));
  }
}

@media (max-width: 1199px) {
  .ecb-box-grid {
    grid-template-columns: repeat(4, minmax(118px, 1fr));
  }
}

@media (max-width: 991px) {
  .ecb-guide-layout {
    display: block;
  }

  .ecb-guide-sidebar {
    position: static;
    margin-bottom: 18px;
  }

  .ecb-js-ready .ecb-guide-sidebar {
    position: fixed;
  }

  .ecb-box-grid {
    grid-template-columns: repeat(3, minmax(112px, 1fr));
  }

  .ecb-box-detail,
  .ecb-tutorial-list {
    grid-template-columns: 1fr;
  }

  .ecb-box-detail {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .ecb-box-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    margin-top: 28px;
  }

  .ecb-box-button {
    min-height: 48px;
    font-size: 12px;
  }

  .ecb-box-detail {
    padding: 18px;
  }

  .ecb-box-detail__items li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .ecb-box-grid {
    grid-template-columns: 1fr;
  }
}
