* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
}

.page-content {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 110px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
}

.hidden {
  display: none !important;
}

.chat-header {
  background: #0d5c2f;
  color: #ffffff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.chat-title {
  font-size: 18px;
  font-weight: 700;
}

.chat-subtitle {
  font-size: 14px;
  margin-top: 4px;
}

.chat-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #ffffff;
}

.message {
  max-width: 85%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message.bot {
  background: #edf3ed;
  color: #183a22;
  margin-right: auto;
}

.message.user {
  background: #0f6b3a;
  color: #ffffff;
  margin-left: auto;
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #e6e6e6;
  background: #ffffff;
}

#chat-input {
  flex: 1;
  border: 1px solid #cfd8cf;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}

.send-button {
  border: none;
  background: #0f6b3a;
  color: #ffffff;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 15px;
  cursor: pointer;
}

/* Chat-Button / Golfball */
.chat-toggle,
#chat-toggle,
button#chat-toggle.chat-toggle.golfball-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 4px solid #0f6b3a;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  padding: 0;
}

.chat-toggle:hover,
#chat-toggle:hover,
button#chat-toggle.chat-toggle.golfball-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.golfball-button {
  overflow: hidden;
}

.golfball-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0f6b3a;
  display: block;
}

.golfball-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    10px -2px 0 #ffffff,
    18px 1px 0 #ffffff,
    3px 10px 0 #ffffff,
    13px 9px 0 #ffffff,
    21px 11px 0 #ffffff,
    1px 19px 0 #ffffff,
    10px 20px 0 #ffffff,
    19px 19px 0 #ffffff;
}

@media (max-width: 640px) {
  .chat-widget {
    right: 12px;
    left: 12px;
    bottom: 96px;
    width: auto;
    max-width: none;
    height: 60vh;
  }

  .chat-toggle,
  #chat-toggle,
  button#chat-toggle.chat-toggle.golfball-button {
    right: 16px;
    bottom: 16px;
    width: 68px;
    height: 68px;
  }
/* ================================
   CHAT BUTTON – GOLFBALL DESIGN
   ================================ */

.chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: #176b2c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  padding: 0;
  z-index: 9999;
}

.chat-toggle:hover {
  transform: scale(1.04);
  transition: 0.2s ease;
}

.chat-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.chat-toggle-icon svg {
  display: block;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  min-height: 38px;
}
}
