/* Sunlure chat widget - matches brand palette (#14171c dark, #e8590c accent) */
.slc-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 9999; font-family: inherit; }

.slc-launcher {
  width: 58px; height: 58px; border-radius: 50%;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, #e8590c, #d9480f);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .2s ease, opacity .2s ease;
}
.slc-launcher:hover { transform: scale(1.08); }
.slc-launcher.slc-open { opacity: 0; pointer-events: none; transform: scale(.6); position: absolute; bottom: 0; right: 0; }

.slc-panel {
  width: 340px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  display: flex; flex-direction: column;
  animation: slc-in .25s ease;
}
@keyframes slc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.slc-head {
  background: #14171c; color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.slc-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #e8590c; color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.slc-agent { font-weight: 600; font-size: 14px; }
.slc-status { font-size: 12px; opacity: .8; display: flex; align-items: center; gap: 5px; }
.slc-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; display: inline-block; }
.slc-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; opacity: .7; }
.slc-close:hover { opacity: 1; }

.slc-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f6f7f9; display: flex; flex-direction: column; gap: 8px; }

.slc-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.slc-bot { background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; align-self: flex-start; }
.slc-user { background: #0f4c5c; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }

.slc-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.slc-chip {
  border: 1.5px solid #e8590c; color: #c2410c; background: #fff;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
  text-decoration: none; transition: background .15s;
}
.slc-chip:hover { background: #fff1e7; }

.slc-hint { font-size: 12px; color: #6b7280; }
.slc-err { color: #dc2626; font-weight: 600; }

.slc-contact { font-size: 13.5px; line-height: 1.9; }
.slc-contact a { color: #c2410c; font-weight: 600; text-decoration: none; }
.slc-contact a:hover { text-decoration: underline; }
.slc-company { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e5e7eb; font-size: 12px; color: #4b5563; line-height: 1.6; }
.slc-company strong { display: block; color: #14171c; font-size: 12.5px; margin-bottom: 2px; }

.slc-formbar { border-top: 1px solid #e5e7eb; padding: 10px; background: #fff; flex-shrink: 0; }
.slc-inputrow { display: flex; gap: 8px; }
.slc-input {
  width: 100%; padding: 9px 12px; border: 1.5px solid #d1d5db; border-radius: 10px;
  font-size: 13.5px; outline: none; background: #fff; color: #14171c;
  box-sizing: border-box; font-family: inherit;
}
.slc-input:focus { border-color: #e8590c; }
.slc-send {
  flex-shrink: 0; width: 40px; border: none; border-radius: 10px; cursor: pointer;
  background: #e8590c; color: #fff; font-size: 15px;
}
.slc-form { display: grid; gap: 7px; }
.slc-submit {
  margin-top: 3px; padding: 10px; border: none; border-radius: 10px; cursor: pointer;
  background: #e8590c; color: #fff; font-weight: 700; font-size: 14px; font-family: inherit;
}
.slc-submit:hover { background: #d9480f; }
.slc-submit:disabled { opacity: .6; cursor: default; }

@media (max-width: 480px) {
  .slc-wrap { bottom: 14px; right: 14px; }
  .slc-panel { height: calc(100vh - 90px); }
}
