/* ================================================================
   RAPIDITY — Booking Widget Styles (Light · Teal)
   ================================================================ */

:root {
  --teal:       #2BA8B1;
  --teal-dark:  #1E8A92;
  --teal-light: #B8E5E8;
  --mint:       #E8F7F7;
  --navy:       #1A3A45;
}

.bk-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(26,58,69,.65); backdrop-filter: blur(14px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
@media (min-width:600px) { .bk-overlay { align-items: center; padding: 20px; } }
.bk-overlay.open { opacity: 1; pointer-events: all; }

.bk-panel {
  background: #fff;
  border-radius: 18px 18px 0 0;
  width: 100%; max-width: 480px;
  height: 90dvh; max-height: 720px;
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(40px);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -20px 80px rgba(0,0,0,.25);
}
@media (min-width:600px) { .bk-panel { border-radius: 18px; transform: scale(.94) translateY(20px); } }
.bk-overlay.open .bk-panel { transform: none; }

.bk-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(0,0,0,.06); flex-shrink: 0;
}
.bk-brand { display: flex; align-items: center; gap: 12px; }
.bk-brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.bk-brand-name { font-size: 14px; font-weight: 800; color: var(--navy); }
.bk-brand-sub { font-size: 11px; color: #888; margin-top: 2px; }
.bk-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--mint); border: none; color: var(--teal-dark);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.bk-close:hover { background: rgba(43,168,177,.18); }

.bk-progress-track { height: 3px; background: var(--mint); flex-shrink: 0; }
.bk-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transition: width .5s cubic-bezier(.22,1,.36,1);
}

.bk-chat {
  flex: 1; overflow-y: auto;
  padding: 22px 18px 8px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.bk-chat::-webkit-scrollbar { width: 4px; }
.bk-chat::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 99px; }

.bk-msg {
  max-width: 84%; padding: 13px 17px;
  border-radius: 14px; font-size: 14px; line-height: 1.55;
  animation: msgIn .3s cubic-bezier(.22,1,.36,1) both;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bk-msg--bot { align-self: flex-start; background: var(--mint); color: #2C2C2C; border-radius: 4px 14px 14px 14px; }
.bk-msg--user { align-self: flex-end; background: var(--teal); color: #fff; border-radius: 14px 4px 14px 14px; font-weight: 600; }

.bk-typing {
  align-self: flex-start; background: var(--mint);
  border-radius: 4px 14px 14px 14px;
  padding: 14px 18px; display: flex; gap: 5px;
}
.bk-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  animation: typDot 1.2s ease-in-out infinite;
}
.bk-typing span:nth-child(2) { animation-delay: .15s; }
.bk-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typDot { 0%,80%,100% { transform: scale(1); } 40% { transform: scale(1.3); } }

.bk-actions {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(0,0,0,.06);
  flex-shrink: 0; min-height: 78px; max-height: 280px; overflow-y: auto;
}
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chips--final { flex-direction: column; gap: 10px; }
.bk-chip {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: #fff; border: 1px solid rgba(0,0,0,.1);
  color: #2C2C2C; font-family: inherit;
  font-size: 13px; font-weight: 600;
  padding: 11px 16px; border-radius: 10px;
  cursor: pointer; transition: all .2s;
}
.bk-chip:hover { background: var(--mint); border-color: var(--teal); }
.bk-chip:active { transform: scale(.97); }
.bk-chip small { display: block; font-size: 11px; color: #888; font-weight: 500; }
.bk-chip--send {
  background: var(--teal); border-color: var(--teal); color: #fff;
  box-shadow: 0 4px 14px rgba(43,168,177,.3);
}
.bk-chip--send:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.bk-chip--wa { background: #25D366; border-color: #25D366; color: #fff; }
.bk-chip--skip { background: transparent; border-color: rgba(0,0,0,.08); color: #888; }

.bk-input-row { display: flex; gap: 8px; }
.bk-input {
  flex: 1; background: var(--mint); border: 1px solid rgba(0,0,0,.06);
  color: #2C2C2C; font-family: inherit; font-size: 14px;
  padding: 12px 16px; border-radius: 10px; outline: none;
}
.bk-input:focus { border-color: var(--teal); background: #fff; }
.bk-input.bk-shake { animation: shake .35s ease; border-color: #E74C3C; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.bk-date-grid {
  display: flex; gap: 7px; overflow-x: auto;
  padding: 4px 2px 8px; scroll-snap-type: x mandatory;
}
.bk-date-chip {
  flex-shrink: 0; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 10px 12px; min-width: 56px;
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.bk-date-chip:hover { background: var(--mint); border-color: var(--teal); }
.bk-date-chip.sel { background: var(--teal); border-color: var(--teal); color: #fff; }

.bk-summary {
  background: var(--mint); border: 1px solid rgba(43,168,177,.18);
  border-radius: 12px; padding: 16px;
  margin-top: 10px; font-size: 13px;
}
.bk-sum-row { display: flex; justify-content: space-between; padding: 6px 0; color: #666; }
.bk-sum-row strong { color: #2C2C2C; }
.bk-sum-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(43,168,177,.18);
  font-size: 16px; font-weight: 700;
}
.bk-sum-total strong { color: var(--teal-dark); font-size: 22px; }

.bk-service-card {
  background: var(--mint); border: 1px solid rgba(43,168,177,.18);
  border-radius: 12px; padding: 14px 16px; margin-top: 10px;
}
.bk-sc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bk-sc-emoji { font-size: 28px; }
.bk-sc-name { font-size: 14px; font-weight: 800; color: var(--navy); }
.bk-sc-desc { font-size: 12px; color: #777; margin-top: 2px; }
.bk-sc-list { list-style: none; padding: 0; margin: 8px 0; }
.bk-sc-list li { font-size: 12px; color: #555; padding: 4px 0; }
.bk-sc-footer { font-size: 11px; color: #888; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(0,0,0,.06); }
.bk-sc-footer strong { color: var(--teal-dark); }
