#alc-widget-root, #alc-widget-root * { box-sizing: border-box; }

#alc-widget-root {
  --alc-primary: #cbafa4;
  --alc-primary-dark: #a78478;
  --alc-primary-darker: #522b2b;
  --alc-secondary: #d3aca6;
  --alc-secondary-tint: #ead9d6;
  --alc-secondary-tint-2: #f4ebe9;
  --alc-text: #38292a;
  --alc-text-soft: #6b5555;
}

/* ---------- Minimized bubble ---------- */
#alc-bubble {
  gap: 12px;
  position: fixed; bottom: 20px; right: 20px; z-index: 999998;
  display: none; align-items: center;
  cursor: pointer;
  max-width: calc(100vw - 24px);
}
#alc-bubble.alc-show { display: inline-flex; }
.alc-bubble-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; position: relative; z-index: 2;
  background: var(--alc-secondary);
  box-shadow: 0 8px 20px rgba(143,81,81,0.28);
}
.alc-bubble-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alc-bubble-pill {
  border-radius: .625rem;
  background-color: #fff;
  box-shadow: 0 0 0 1px var(--alc-secondary), 0 2px 16px 0 rgba(143,81,81,0.14);
  color: var(--alc-text);
  text-align: center;
  letter-spacing: -.004rem;
  white-space: nowrap;
  cursor: pointer;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  padding: .7rem 1rem;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.4rem;
  transition: box-shadow .2s, transform .2s;
}
#alc-bubble:hover .alc-bubble-pill { transform: translateX(2px); box-shadow: 0 10px 24px rgba(143,81,81,0.3); }

/* ---------- Panel (video mode + chat mode share this shell) ---------- */
#alc-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 999999;
  width: min(400px, calc(100vw - 32px));
  height: min(600px, calc(68vh - 100px));
  max-height: 60vh;
  background: #fff; border-radius: 18px;
  box-shadow: 0 16px 48px rgba(82,43,43,0.28);
  display: none; flex-direction: column; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  animation: alc-pop .25s ease;
}
#alc-panel.alc-open { display: flex; }

@keyframes alc-pop {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- VIDEO MODE ---------- */
#alc-video-mode {
  position: relative;
  display: flex; flex-direction: column;
  flex: 1 1 auto; min-height: 0;
}
.alc-video-wrap {
  position: relative; flex: 1 1 auto; min-height: 0;
  width: 100%; background: #000;
}
.alc-video-wrap video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.alc-video-top-btn {
  position: absolute; top: 12px; z-index: 2;
  background: rgba(56,41,42,0.55); color: #fff; border: none;
  border-radius: 20px; font-size: 12.5px; font-weight: 600;
  padding: 7px 12px; cursor: pointer; display: flex; align-items: center; gap: 5px;
  backdrop-filter: blur(2px);
}
.alc-video-top-btn:hover { background: rgba(56,41,42,0.78); }
#alc-mute-btn {
  left: 12px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#alc-mute-btn:hover { background: rgba(255,255,255,0.32); }
#alc-video-close { right: 12px; width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 50%; font-size: 15px; }

.alc-getstarted-bar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(255,255,255,0.97); border-radius: 14px;
  padding: 12px 14px 14px; text-align: center;
  box-shadow: 0 8px 20px rgba(82,43,43,0.22);
}
.alc-getstarted-text {
  font-size: 12.5px; color: var(--alc-text); line-height: 1.4; margin-bottom: 9px;
}
.alc-getstarted-btn {
  width: 100%; background: var(--alc-primary); color: #fff; border: none;
  padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .15s ease;
}
.alc-getstarted-btn:hover { background: var(--alc-primary-dark); }

/* ---------- CHAT MODE (existing step form) ---------- */
#alc-chat-mode {
  display: none; flex-direction: column;
  flex: 1 1 auto; min-height: 0;
}
#alc-panel-header {
  background: linear-gradient(135deg, var(--alc-primary) 0%, var(--alc-primary-darker) 100%);
  padding: 16px 16px 12px; text-align: center; position: relative; flex-shrink: 0;
}
.clinic-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex-direction: row;
}
.clinic-brand img {
    width: 60px;
    height: auto;
    display: block;
}

.clinic-brand p {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

/* Tablet */
@media (max-width: 768px) {
    .clinic-brand {
        gap: 10px;
    }

    .clinic-brand img {
        width: 50px;
    }

    .clinic-brand p {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .clinic-brand {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .clinic-brand img {
        width: 45px;
    }

    .clinic-brand p {
        font-size: 16px;
    }
}
#alc-panel-header img {  max-width: 68px; width: 100%; height: auto; display: block; margin: 0 auto; }
#alc-close {
  position: absolute; top: 8px; right: 10px; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(255,255,255,0.16); color: #fff;
  border: none; font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#alc-close:hover { background: rgba(255,255,255,0.28); }

#alc-panel-body { padding: 16px 16px 18px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }

.alc-greet { font-size: 14px; color: var(--alc-text); line-height: 1.5; margin-bottom: 14px; }
.alc-greet strong { color: var(--alc-primary-darker); }
div#alc-category-list, #alc-item-list {
    display: flex;
    flex-wrap: wrap;
	gap:05px;
}
.alc-btn {
    display: block !important;
    width: auto !important;
    text-align: left !important;
    background: var(--alc-secondary-tint-2) !important;
    border: 1.5px solid var(--alc-secondary) !important;
    color: var(--alc-text) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    padding: 10px 10px !important;
    margin-bottom: 9px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background .15s ease, transform .1s ease, border-color .15s ease !important;
}
.alc-btn:hover {
  background: var(--alc-secondary-tint) !important;
  border-color: var(--alc-primary) !important;
  transform: translateY(-1px) !important;
}
.alc-btn:last-child { margin-bottom: 0; }

.alc-btn-row { display: flex; gap: 10px; margin-top: 4px; }
.alc-btn-row .alc-btn { text-align: center; }
a.alc-btn { text-decoration: none; color: var(--alc-text); display: flex; align-items: center; justify-content: center; }

.alc-back {
  background: none; border: none; color: var(--alc-primary); font-size: 12.5px;
  font-weight: 600; cursor: pointer; margin-bottom: 12px; padding: 0;
}
.alc-back:hover { text-decoration: underline; }

.alc-step { display: none; }
.alc-step.alc-active { display: block; }

.alc-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e2d3d1; border-radius: 10px;
  font-size: 14px; margin-bottom: 10px; font-family: inherit; color: var(--alc-text);
}
.alc-input:focus { outline: none; border-color: var(--alc-primary); }

.alc-submit {
  width: 100%; background: var(--alc-primary); color: #fff; border: none; padding: 13px 16px;
  border-radius: 10px; font-size: 14.5px; font-weight: 700; cursor: pointer; margin-top: 4px;
  transition: background .15s ease;
}
.alc-submit:hover { background: var(--alc-primary-dark); }
.alc-submit:disabled { opacity: .55; cursor: not-allowed; }

.alc-note { font-size: 12px; color: var(--alc-text-soft); margin-top: 10px; line-height: 1.45; }
.alc-phone-link { color: var(--alc-primary-darker) !important; font-weight: 800; text-decoration: underline; cursor: pointer; }
.alc-phone-link:hover { color: var(--alc-primary) !important; }

.alc-thanks { text-align: center; padding: 10px 0 4px; }
.alc-thanks .alc-check {
  width: 50px; height: 50px; border-radius: 50%; background: var(--alc-secondary-tint); color: var(--alc-primary-darker);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px;
}
.alc-thanks p { font-size: 14px; color: var(--alc-text); line-height: 1.55; }

.alc-err { color: #b3261e; font-size: 12.5px; margin: -4px 0 10px; display: none; }

/* ---------- Responsive breakpoints ---------- */

/* Tablets / small laptops */
@media (max-width: 768px) {
  #alc-panel {
    width: min(340px, calc(100vw - 28px));
    height: min(560px, calc(100vh - 90px));
  }
}

/* Phones */
@media (max-width: 480px) {
  #alc-bubble { right: 14px; bottom: 14px; }
  #alc-panel {
    right: 0;
    left: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 213px;
    height: min(88vh, calc(45vh - 24px));
    max-height: none;
    border-radius: 16px;
}
	
  #alc-panel-header img { max-width: 150px; }
  #alc-panel-body { padding: 14px 14px 16px; }
}

/* Short / landscape viewports */
@media (max-height: 640px) {
  #alc-panel { height: calc(68vh - 24px); max-height: none; }
  .alc-getstarted-bar { padding: 10px 12px 12px; }
  .alc-getstarted-text { margin-bottom: 7px; }
}

@media (max-width: 480px) and (max-height: 560px) {
  #alc-panel { border-radius: 12px; }
}
