#offer-coffee-bot-root {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999999;
  font-family: inherit;
}

#offer-coffee-bot-toggle {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #4a2c18;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

#offer-coffee-bot-panel {
  position: absolute;
  left: 0;
  bottom: 78px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  display: none;
  border: 1px solid rgba(74, 44, 24, 0.12);
}

#offer-coffee-bot-panel.offer-coffee-open {
  display: flex;
  flex-direction: column;
}

.offer-coffee-header {
  background: linear-gradient(135deg, #4a2c18, #8a5a35);
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offer-coffee-title {
  font-size: 17px;
  font-weight: 800;
}

.offer-coffee-subtitle {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.9;
}

.offer-coffee-close {
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.offer-coffee-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #faf7f2;
}

.offer-coffee-message {
  max-width: 86%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.offer-coffee-message-assistant {
  background: #fff;
  color: #2f241d;
  margin-left: auto;
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(74, 44, 24, 0.08);
}

.offer-coffee-message-user {
  background: #4a2c18;
  color: #fff;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.offer-coffee-items {
  background: #fff;
  border: 1px solid rgba(74, 44, 24, 0.1);
  border-radius: 16px;
  padding: 10px;
  margin: 8px 0 12px 0;
}

.offer-coffee-item {
  padding: 10px;
  border-radius: 12px;
  background: #faf7f2;
  margin-bottom: 8px;
}

.offer-coffee-item-title {
  font-size: 13px;
  font-weight: 800;
  color: #2f241d;
  line-height: 1.6;
}

.offer-coffee-item-meta {
  margin-top: 5px;
  font-size: 12px;
  color: #6f6258;
}

.offer-coffee-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.offer-coffee-action-primary {
  width: 100%;
  border: none;
  background: #4a2c18;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.offer-coffee-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid rgba(74, 44, 24, 0.1);
}

#offer-coffee-bot-input {
  flex: 1;
  border: 1px solid rgba(74, 44, 24, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
}

#offer-coffee-bot-input:focus {
  border-color: #4a2c18;
}

#offer-coffee-bot-send {
  border: none;
  background: #4a2c18;
  color: #fff;
  border-radius: 12px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

#offer-coffee-bot-send:disabled,
#offer-coffee-bot-input:disabled,
.offer-coffee-action-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  #offer-coffee-bot-root {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  #offer-coffee-bot-panel {
    left: 0;
    width: 100%;
    height: 70vh;
    bottom: 76px;
  }

  #offer-coffee-bot-toggle {
    margin-right: auto;
    display: block;
  }
}