/* React-owned state hooks. These mirror the existing visual rules while the
   markup and interaction lifecycle stay inside React components. */
.hoplo-header-controller.is-scrolled .site-header {
  background: rgba(21, 22, 20, 0.82) !important;
  border-color: rgba(251, 251, 248, 0.12) !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(18px);
}

.hoplo-header-controller.is-menu-open header button[aria-label="Open menu"] {
  transform: rotate(90deg) scale(1.04);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

@media (max-width: 767px) {
  .hoplo-header-controller.is-scrolled .site-header {
    background: rgba(21, 22, 20, 0.9) !important;
  }
}

.hoplo-chat-breadcrumb {
  font-family: var(--font-neoris);
  font-size: 10px;
  font-weight: 500;
  line-height: 120%;
  color: rgba(32, 32, 32, 0.5);
  white-space: nowrap;
}

.hoplo-chat-breadcrumb.is-current { color: rgba(32, 32, 32, 0.9); }

.hoplo-chat-surface {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 0;
  padding: 3.665px 16.158px 11.751px;
  overflow: hidden;
  background: #f5f5f2;
  border: 0.562px solid rgba(32, 32, 32, 0.2);
  border-radius: 11.41px;
  box-shadow: 0 35.946px 17.973px rgba(255,255,255,.03), inset 0 1.123px 0 rgba(255,255,255,.25), inset 0 1.469px 8.814px rgba(0,0,0,.03);
}

.hoplo-chat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 341px;
  flex-shrink: 0;
}

.hoplo-chat-empty p {
  margin: 0;
  overflow: hidden;
  color: rgba(32, 32, 32, 0.6);
  font-family: var(--font-departure);
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
}

.hoplo-chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 341px;
  padding: 6px 2px 52px;
  overflow-y: auto;
}

.hoplo-chat-bubble {
  max-width: 82%;
  align-self: flex-start;
  padding: 7px 10px;
  color: rgba(38,35,35,.9);
  font-family: var(--font-neoris);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: #fbfbf8;
  border: 1px solid rgba(32,32,32,.1);
  border-radius: 10px;
}

.hoplo-chat-bubble.is-mine { align-self: flex-end; color: #fbfbf8; background: #202020; border-color: #202020; }

.hoplo-chat-caret {
  position: absolute;
  top: 50%;
  left: 13.6px;
  width: 1px;
  height: 13px;
  background: rgba(38,35,35,.7);
  transform: translateY(-50%);
  animation: hoplo-caret-blink 1s steps(1) infinite;
}

.hoplo-chat-send {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(0deg,rgba(32,32,32,.1),rgba(32,32,32,.1)),linear-gradient(180deg,#4f4f4f,rgba(32,32,32,.85));
  border: 1px solid #383838;
  border-radius: 6px;
  box-shadow: 0 3px 4px rgba(0,0,0,.16),inset 0 2px 0 rgba(255,255,255,.24),inset 0 -.5px 2px rgba(0,0,0,.25);
}
