/* ================================================================
   BRILLO GARAGE — Booking Widget Styles
   ================================================================ */

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

/* ── Panel ── */
.bk-panel {
  background: #0c0c0c;
  border: 1px solid rgba(204,20,20,.2);
  border-radius: 16px 16px 0 0;
  width: 100%; max-width: 480px;
  height: 90dvh; max-height: 700px;
  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,.8), 0 0 40px rgba(204,20,20,.06);
}
@media (min-width: 600px) {
  .bk-panel { border-radius: 16px; transform: scale(.94) translateY(20px); height: 85dvh; }
}
.bk-overlay.open .bk-panel { transform: none; }

/* ── Header ── */
.bk-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.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, #1a0000, #2a0000);
  border: 1px solid rgba(204,20,20,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #cc1414; letter-spacing: 0;
}
.bk-brand-name { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: #f0f0f0; }
.bk-brand-sub  { font-size: 10px; color: #666; letter-spacing: .5px; }
.bk-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  color: #888; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.bk-close:hover { background: rgba(204,20,20,.2); color: #fff; }

/* ── Progress bar ── */
.bk-progress-track { height: 2px; background: rgba(255,255,255,.06); flex-shrink: 0; }
.bk-progress-fill  {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #cc1414, #ff4444);
  transition: width .5s cubic-bezier(.22,1,.36,1);
  border-radius: 0 2px 2px 0;
}

/* ── Chat area ── */
.bk-chat {
  flex: 1; overflow-y: auto;
  padding: 20px 16px 8px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.bk-chat::-webkit-scrollbar { width: 3px; }
.bk-chat::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 99px; }

/* ── Messages ── */
.bk-msg {
  max-width: 82%; padding: 12px 16px;
  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(10px) scale(.97); } to { opacity:1; transform:none; } }

.bk-msg--bot {
  align-self: flex-start;
  background: #181818; color: #e0e0e0;
  border-radius: 4px 14px 14px 14px;
  border: 1px solid rgba(255,255,255,.06);
}
.bk-msg--user {
  align-self: flex-end;
  background: #cc1414; color: #fff;
  border-radius: 14px 4px 14px 14px;
  font-weight: 600;
}

/* ── Typing indicator ── */
.bk-typing {
  align-self: flex-start;
  background: #181818; border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px 14px 14px 14px;
  padding: 12px 18px;
  display: flex; gap: 5px; align-items: center;
  animation: msgIn .3s ease both;
}
.bk-typing span {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: #555;
  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);background:#555} 40%{transform:scale(1.2);background:#cc1414} }

/* ── Actions area ── */
.bk-actions {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
  min-height: 72px;
  max-height: 260px;
  overflow-y: auto;
}
.bk-actions::-webkit-scrollbar { width: 3px; }
.bk-actions::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 99px; }

/* ── Chips ── */
.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: #1a1a1a;
  border: 1px solid rgba(255,255,255,.1);
  color: #e0e0e0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 600; line-height: 1.35;
  padding: 10px 16px; border-radius: 8px;
  cursor: pointer; text-align: center;
  transition: background .18s, border-color .18s, transform .15s;
  text-decoration: none;
}
.bk-chip:hover { background: #222; border-color: #cc1414; transform: translateY(-1px); }
.bk-chip:active { transform: scale(.97); }
.bk-chip small { display: block; font-size: 11px; color: #777; font-weight: 500; }
.bk-chip svg { width: 20px; height: 20px; flex-shrink: 0; }

.bk-chip--send {
  background: #cc1414; border-color: #cc1414; color: #fff;
  padding: 10px 18px;
}
.bk-chip--send:hover { background: #e01a1a; border-color: #e01a1a; }

.bk-chip--wa {
  background: #25D366; border-color: #25D366; color: #fff;
  font-weight: 700; padding: 14px 20px; font-size: 14px;
  border-radius: 10px;
}
.bk-chip--wa:hover { background: #1db954; border-color: #1db954; }

.bk-chip--pay {
  background: #1a1a1a; border-color: #cc1414; color: #fff;
  font-weight: 700; padding: 14px 20px; font-size: 14px;
  border-radius: 10px;
}
.bk-chip--pay:hover { background: #200000; }

/* ── Text input row ── */
.bk-input-row {
  display: flex; gap: 8px; align-items: center;
}
.bk-input {
  flex: 1; background: #1a1a1a; border: 1px solid rgba(255,255,255,.1);
  color: #e0e0e0; font-family: 'Montserrat', sans-serif; font-size: 14px;
  padding: 10px 14px; border-radius: 8px; outline: none;
  transition: border-color .2s;
}
.bk-input:focus { border-color: #cc1414; }
.bk-input::placeholder { color: #555; }
.bk-input.bk-shake {
  animation: shake .35s ease;
  border-color: #cc1414;
}
@keyframes shake {
  0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)}
}

/* ── Date grid ── */
.bk-date-grid {
  display: flex; gap: 7px; overflow-x: auto; padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
}
.bk-date-grid::-webkit-scrollbar { height: 3px; }
.bk-date-grid::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 99px; }

.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: #1a1a1a; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; cursor: pointer; color: #e0e0e0;
  font-family: 'Montserrat', sans-serif;
  transition: background .18s, border-color .18s, transform .15s;
}
.bk-date-chip:hover { background: #222; border-color: #cc1414; transform: translateY(-2px); }
.bk-date-chip b    { font-size: 10px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.bk-date-chip span { font-size: 20px; font-weight: 900; color: #f0f0f0; line-height: 1; }
.bk-date-chip small{ font-size: 10px; color: #666; }
.bk-date-chip.sel  { background: #200000; border-color: #cc1414; }
.bk-date-chip.sel span { color: #ff4444; }

/* ── Summary card ── */
.bk-summary {
  background: #141414; border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 16px;
  margin-top: 12px; font-size: 13px;
  display: flex; flex-direction: column; gap: 8px;
}
.bk-sum-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  color: #888;
}
.bk-sum-row strong { color: #e0e0e0; text-align: right; font-size: 13px; }
.bk-sum-row em { color: #cc1414; font-style: normal; }
.bk-sum-extra strong { font-size: 12px; }
.bk-sum-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #e0e0e0; font-weight: 700; font-size: 15px;
}
.bk-sum-total strong { color: #cc1414; font-size: 20px; font-weight: 900; }

/* ── Service detail card (shown inside bot message) ── */
.bk-service-card {
  background: #0a0a0a;
  border: 1px solid rgba(204,20,20,.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
  font-size: 13px;
}

.bk-sc-header {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bk-sc-emoji { font-size: 26px; flex-shrink: 0; line-height: 1; }
.bk-sc-name  { font-size: 14px; font-weight: 800; color: #f0f0f0; margin-bottom: 2px; }
.bk-sc-desc  { font-size: 12px; color: #777; line-height: 1.4; }

.bk-sc-list {
  list-style: none; display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 12px;
}
.bk-sc-list li {
  font-size: 12px; color: #b0b0b0; line-height: 1.4;
  display: flex; align-items: flex-start; gap: 6px;
}

.bk-sc-footer {
  font-size: 11px; color: #666;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.bk-sc-footer strong { color: #cc1414; }

/* ── Upsell menu (McDonald's style) ── */
.bk-upsell-wrap {
  display: flex; flex-direction: column; gap: 7px;
}

.bk-upsell-item {
  display: flex; align-items: center; gap: 10px;
  background: #181818;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 11px 13px;
  cursor: pointer; text-align: left; width: 100%;
  transition: border-color .18s, background .18s, box-shadow .18s;
  font-family: 'Montserrat', sans-serif;
}
.bk-upsell-item:hover {
  background: #1e1e1e; border-color: rgba(255,255,255,.18);
}
.bk-upsell-item.sel {
  background: #081400; border-color: #6ddc30;
  box-shadow: 0 0 0 1px rgba(109,220,48,.2);
}

.bk-ui-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #666; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s, border-color .2s;
  line-height: 1;
}
.bk-upsell-item.sel .bk-ui-check {
  background: #6ddc30; border-color: #6ddc30; color: #000;
}

.bk-ui-emoji { font-size: 20px; flex-shrink: 0; line-height: 1; }

.bk-ui-info { flex: 1; min-width: 0; }
.bk-ui-label {
  font-size: 12px; font-weight: 700; color: #e0e0e0;
  line-height: 1.2; margin-bottom: 2px;
}
.bk-ui-desc  { font-size: 11px; color: #666; line-height: 1.3; }
.bk-upsell-item.sel .bk-ui-label { color: #fff; }
.bk-upsell-item.sel .bk-ui-desc  { color: #aaa; }

.bk-ui-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 800;
  color: #888; flex-shrink: 0; white-space: nowrap;
}
.bk-upsell-item.sel .bk-ui-price { color: #6ddc30; }

.bk-upsell-footer {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 2px;
}

/* Skip chip — secondary ghost style */
.bk-chip--skip {
  background: transparent;
  border-color: rgba(255,255,255,.07);
  color: #555; font-size: 12px;
}
.bk-chip--skip:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.13);
  color: #999;
}

/* ── Floating trigger button ── */
.bk-trigger-fab {
  position: fixed; bottom: 100px; right: 28px; z-index: 700;
  display: flex; align-items: center; gap: 10px;
  background: #cc1414; color: #fff;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 800;
  padding: 14px 22px; border-radius: 100px; border: none; cursor: pointer;
  box-shadow: 0 6px 30px rgba(204,20,20,.5);
  transition: transform .2s, box-shadow .2s;
  letter-spacing: .5px;
}
.bk-trigger-fab:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(204,20,20,.65); }
.bk-trigger-fab svg  { width: 20px; height: 20px; }
