.cents-bot-widget {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 10001;
  font-family: Arial, sans-serif;
}

.cents-bot-widget [hidden] {
  display: none !important;
}

.cents-bot-card,
.cents-bot-panel button {
  font: inherit;
}

.cents-bot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 196px;
  padding: 10px 12px;
  border: 1px solid #000;
  border-radius: 4px;
  background: #fff;
  color: #000;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.cents-bot-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.cents-bot-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cents-bot-card-copy span {
  font-weight: 700;
}

.cents-bot-card-copy small {
  color: #555;
  font-size: 11px;
}

.cents-bot-panel {
  width: min(380px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 96px));
  border: 1px solid #000;
  border-radius: 4px;
  background: #fff;
  color: #000;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.cents-bot-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
}

.cents-bot-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cents-bot-panel-actions {
  display: flex;
  gap: 6px;
}

.cents-bot-panel-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #f7f7f7;
  color: #000;
  cursor: pointer;
  line-height: 1;
}

.cents-bot-notice {
  padding: 14px;
}

.cents-bot-notice p {
  margin: 0;
  color: #222;
  font-size: 13px;
  line-height: 1.45;
}

.cents-bot-notice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.cents-bot-notice-actions a {
  color: #000;
  font-size: 13px;
}

.cents-bot-notice-actions button {
  padding: 8px 12px;
  border: 1px solid #000;
  border-radius: 3px;
  background: #000;
  color: #fff;
  cursor: pointer;
}

.cents-bot-frame-wrap {
  height: min(560px, calc(100vh - 152px));
  background: #fff;
}

.cents-bot-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1024px) {
  .cents-bot-widget {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 520px) {
  .cents-bot-widget {
    left: 12px;
    right: 12px;
  }

  .cents-bot-card {
    width: 100%;
    box-sizing: border-box;
  }

  .cents-bot-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .cents-bot-frame-wrap {
    height: calc(100vh - 104px);
  }
}
