/* Urmah chat widget — matches the white / Apple-style site */
.uc-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 9000;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 8px; border-radius: 999px; border: 0; cursor: pointer;
  background: #1d1d1f; color: #fff; font: 600 .95rem 'Inter', system-ui, sans-serif; white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0,0,0,.25); transition: transform .2s ease, opacity .2s ease;
}
.uc-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(0,102,204,.55); animation: uc-ring 2.8s ease-out infinite; pointer-events: none; }
@keyframes uc-ring { 0% { box-shadow: 0 0 0 0 rgba(0,102,204,.5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(0,102,204,0); } }
.uc-fab:hover { transform: translateY(-2px); }
.uc-fab:focus-visible, .uc-send:focus-visible, .uc-chip:focus-visible, .uc-close:focus-visible, .uc-teaser-text:focus-visible, .uc-teaser-x:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }
.uc-fab.uc-hidden { opacity: 0; pointer-events: none; }
.uc-av { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.uc-av img { width: 26px; height: 26px; object-fit: contain; }
.uc-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #30d158; border: 2px solid #1d1d1f; }

.uc-teaser { position: fixed; right: 20px; bottom: 88px; z-index: 8999; max-width: 270px; display: flex; align-items: flex-start; background: #fff; color: #1d1d1f; border: 1px solid #d2d2d7; border-radius: 16px; box-shadow: 0 12px 36px rgba(0,0,0,.16); animation: uc-in .3s ease; }
.uc-teaser[hidden] { display: none; }
.uc-teaser-text { flex: 1; text-align: left; background: none; border: 0; padding: 14px 4px 14px 16px; font: 500 .88rem/1.45 'Inter', system-ui, sans-serif; color: inherit; cursor: pointer; }
.uc-teaser-x { background: none; border: 0; width: 36px; height: 36px; font-size: 1.3rem; line-height: 1; color: #6e6e73; cursor: pointer; flex: none; }

.uc-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 9001;
  width: 380px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; background: #fff; color: #1d1d1f;
  border: 1px solid #d2d2d7; border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); font-family: 'Inter', system-ui, sans-serif;
  animation: uc-in .22s ease;
}
.uc-panel[hidden] { display: none; }
@keyframes uc-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.uc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #1d1d1f; color: #fff; }
.uc-head-text { display: flex; flex-direction: column; gap: 2px; }
.uc-title { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600; }
.uc-sub { font-size: .75rem; color: #aeaeb2; }
.uc-close { background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; width: 44px; height: 44px; margin: -8px -10px -8px 0; }

.uc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f5f5f7; overscroll-behavior: contain; }
.uc-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.uc-bot { align-self: flex-start; background: #fff; border: 1px solid #e8e8ed; border-bottom-left-radius: 4px; }
.uc-user { align-self: flex-end; background: #0066cc; color: #fff; border-bottom-right-radius: 4px; }
.uc-typing { color: #6e6e73; animation: uc-pulse 1s ease-in-out infinite; }
@keyframes uc-pulse { 50% { opacity: .4; } }

.uc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; background: #f5f5f7; }
.uc-chips:empty { display: none; }
.uc-chip { border: 1px solid #d2d2d7; background: #fff; color: #1d1d1f; border-radius: 999px; padding: 8px 12px; font-size: .82rem; cursor: pointer; min-height: 36px; text-align: left; }
.uc-chip:hover { border-color: #0066cc; color: #0066cc; }

.uc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e8e8ed; background: #fff; }
.uc-input { flex: 1; min-width: 0; border: 1px solid #d2d2d7; border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 16px; color: #1d1d1f; background: #fff; }
.uc-input:focus { outline: 2px solid #0066cc; outline-offset: -1px; border-color: transparent; }
.uc-send { border: 0; background: #0066cc; color: #fff; border-radius: 999px; padding: 0 18px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.uc-send:hover { background: #0057ad; }
.uc-note { text-align: center; font-size: .7rem; color: #6e6e73; padding: 0 12px 10px; background: #fff; }

@media (max-width: 480px) {
  .uc-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .uc-fab { right: 16px; bottom: 16px; }
  .uc-teaser { right: 16px; bottom: 84px; max-width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) { .uc-panel, .uc-typing { animation: none; } .uc-fab { transition: none; } .uc-fab::after, .uc-teaser { animation: none; } }
