#ccw-root, #ccw-root * { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Sarabun, sans-serif; }

.ccw-status {
    position: relative;
    padding-left: 15px;
	opacity: 1 !important;
}
.ccw-status:before {
	content: '';
	position: absolute;
	left: 0;
	top: 4.5px;
	width: 8px;
	height: 8px;
	background-color: #3ECF23;
	border-radius: 20px;
}
#ccwSendBtn {padding: .45rem .8rem;color:#fff;}
button.ccw-line-btn {
    background-color: #18c42a;
    border: none;
    color: #fff;
}
.ccw-line-btn svg {
    width: 20px !important;
    height: 20px !important;
    fill: #fff;
    top: 5px !important;
    position: relative;
}
button.ccw-line-btn {
    background-color: #18c42a;
    border: none;
    color: #fff;
    font-family: 'Prompt' !important;
    line-height: 1.7em;
}

.ccw-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ccw-launcher-bg, #E8A33D);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35);
  z-index: 99999;
  transition: transform .15s ease;
}
.ccw-launcher:hover { transform: scale(1.06); }
.ccw-launcher svg { width: 26px; height: 26px; }
.ccw-ping {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #E15252; color: #fff; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.ccw-panel {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 320px;
  max-width: calc(100vw - 40px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 99999;
}
.ccw-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.ccw-head {
  background: var(--ccw-header-bg, #16241F);
  color: var(--ccw-header-text, #fff);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ccw-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ccw-name { font-size: 13px; font-weight: 600; }
.ccw-status { font-size: 10.5px; opacity: .65; }
.ccw-close { margin-left: auto; background: none; border: none; color: inherit; opacity: .7; cursor: pointer; font-size: 16px; }

.ccw-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ccw-body-bg, #FAFAF8);
}
.ccw-card-name {
	font-family: prompt !important;
	font-size: 15px !important;
}
.ccw-card-price {
	font-size: 14px !important;
	font-family: prompt !important;
}


.ccw-msg { max-width: 85%; font-size: 12.5px; line-height: 1.6; padding: 9px 12px; border-radius: 12px; white-space: pre-line; }
.ccw-bot { background: var(--ccw-bot-bg, #fff); color: var(--ccw-bot-text, #16241F); border: 1px solid #E5E1D8; border-bottom-left-radius: 4px; align-self: flex-start; }
.ccw-user { background: var(--ccw-user-bg, #16241F); color: var(--ccw-user-text, #fff); border-bottom-right-radius: 4px; align-self: flex-end; }

.ccw-choices { display: flex; flex-direction: column; gap: 6px; align-self: flex-start; width: 100%; }
.ccw-choice-btn {
  background: #fff; border: 1px solid var(--ccw-accent, #E8A33D); color: var(--ccw-accent, #E8A33D);
  font-size: 14px; font-weight: 500;font-family:prompt !important; padding: 8px 10px; border-radius: 10px; text-align: left; cursor: pointer;
  transition: background .12s ease;
}
.ccw-choice-btn:hover { background: var(--ccw-hover, #FFF6E8); }

.ccw-cards { display: flex; flex-direction: column; gap: 8px; align-self: flex-start; width: 100%; }
.ccw-card { display: flex; gap: 10px; background: #fff; border: 1px solid #E5E1D8; border-radius: 12px; padding: 8px; align-items: center; }
.ccw-card img, .ccw-card-ph { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; background: #f2f2f2; }
.ccw-card-name { font-size: 12.5px; font-weight: 600; }
.ccw-card-price { font-size: 11.5px; color: var(--ccw-accent, #E8A33D); font-weight: 600; margin-top: 2px; }

.ccw-banner { align-self: flex-start; width: 100%; background: #fff; border: 1px solid #E5E1D8; border-radius: 12px; overflow: hidden; }
.ccw-banner-img { width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center; }
.ccw-banner-ph { background: linear-gradient(135deg,#eee,#ddd); }
.ccw-banner-cap { padding: 9px 11px; font-size: 12px; }

.ccw-gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-self: flex-start; width: 100%; }
.ccw-gift-card { background: #fff; border: 1.5px solid #E5E1D8; border-radius: 12px; padding: 8px; cursor: pointer; text-align: center; transition: border-color .15s ease, background .15s ease; }
.ccw-gift-card:hover { border-color: var(--ccw-accent, #E8A33D); background: var(--ccw-hover, #FFF6E8); }
.ccw-gift-card.selected { border-color: var(--ccw-accent, #E8A33D); background: var(--ccw-hover, #FFF6E8); }
.ccw-gift-card img, .ccw-gift-ph { width: 100%; aspect-ratio: 1/1; border-radius: 8px; object-fit: cover; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #f2f2f2; }
.ccw-gift-name { font-size: 11.5px; font-weight: 600; }
.ccw-gift-tag { font-size: 10px; color: var(--ccw-accent, #E8A33D); font-weight: 600; margin-top: 2px; }

.ccw-form { background: #fff; border: 1px solid #E5E1D8; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; align-self: flex-start; width: 100%; }
.ccw-form input { border: 1px solid #E5E1D8; border-radius: 7px; padding: 7px 9px; font-size: 12px; }
.ccw-line-btn { display: flex; align-items: center; justify-content: center; gap: 6px; background: #06C755; color: #fff; font-weight: 700; font-size: 12px; padding: 9px; border-radius: 8px; border: none; cursor: pointer; }
.ccw-line-btn svg { width: 14px; height: 14px; fill: #fff; }
.ccw-divider { display: flex; align-items: center; gap: 8px; color: #888; font-size: 10px; margin: 1px 0; }
.ccw-divider::before, .ccw-divider::after { content: ''; flex: 1; height: 1px; background: #E5E1D8; }
.ccw-submit { margin-top: 2px; background: var(--ccw-accent, #E8A33D); border: none; color: #16241F; font-weight: 700; font-size: 12px; padding: 8px; border-radius: 7px; cursor: pointer; }

.ccw-typing { display: flex; gap: 3px; padding: 9px 12px; background: #fff; border: 1px solid #E5E1D8; border-radius: 12px; border-bottom-left-radius: 4px; align-self: flex-start; width: fit-content; }
.ccw-typing span { width: 5px; height: 5px; border-radius: 50%; background: #999; animation: ccwBlink 1.2s infinite; }
.ccw-typing span:nth-child(2) { animation-delay: .2s; }
.ccw-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ccwBlink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

.ccw-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #E5E1D8;
  background: #fff;
}
.ccw-input-bar input {
  flex: 1;
  border: 1px solid #E5E1D8;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12.5px;
  outline: none;
}
.ccw-input-bar input:focus { border-color: var(--ccw-accent, #E8A33D); }
.ccw-input-bar button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--ccw-accent, #E8A33D);
  color: #16241F;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .ccw-panel { right: 10px; left: 10px; width: auto; bottom: 80px; }
  .ccw-launcher { right: 14px; bottom: 14px; }
}
