/* Kontakti frontend styles */
.bcf-root{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;

  /* CSS vars set inline from Settings */
  --bcf-primary: #0f1c33;
  --bcf-primary-dark: #090f1a;
  --bcf-secondary: #f2d415;
}
.bcf-root.bcf-left{
  right: auto;
  left: 24px;
}

/* Bubble */
.bcf-bubble{
  width: 58px;
  height: 58px;
  background-color: var(--bcf-primary);
  color: var(--bcf-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bcf-bubble:hover{
  background-color: var(--bcf-primary-dark);
  transform: translateY(-5px) scale(1.05) rotate(-8deg);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Widget container */
.bcf-widget{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  width: 380px;
  max-width: calc(100% - 48px);
  max-height: calc(90dvh - 115px);
  border-radius: 16px;
  background-color: white;
  border: 1px solid white;
  position: fixed;
  right: 24px;
  bottom: 90px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.95) translateY(32px);
  transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
  will-change: transform, opacity; 
  overflow: hidden;
  box-shadow: 0px 0px 31px 1px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 600px){
  .bcf-widget{ max-height: calc(85dvh); }
}
.bcf-widget.bcf-active{
  pointer-events: auto;
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Header */
.bcf-widget-header{
  background-color: var(--bcf-primary);
  padding: 16px 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "Open Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
}
.bcf-widget-header-wrapper{
  display: flex;
  align-items: center;
  gap: 12px;
}
.bcf-widget-logo{
  height: 36px;
  width: 36px;
  background-color: white;
  border-radius: 50%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0,0,0,0.05);
}
.bcf-widget-logo--empty{
  opacity: 0.15;
}
.bcf-widget-close{
  color: white;
  padding: 12px;
  line-height: 100%;
  border-radius: 8px;
  transition: background-color 200ms ease-in-out;
  cursor: pointer;
}
.bcf-widget-close:hover{
  background-color: rgba(255,255,255,0.05);
}

/* Body */
.bcf-widget-body{
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  scrollbar-width: thin;
  flex-grow: 1;
  min-height: 0; 
  transform: translateZ(0);
}
.bcf-widget-intro{
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: #565a66;
  max-width: 300px;
}
.bcf-widget-intro-heading{
  font-family: "Open Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--bcf-primary);
}
.bcf-widget-form{
  width: 100%;
}
.bcf-widget-missing{
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  font-size: 13px;
  color: #444;
}
body.bcf-scroll-locked {
  overflow: hidden;
  position: fixed;
  width: 100%;
}
/* Force iOS WebKit to actually paint the text and form */
.bcf-widget-body > * {
  transform: translateZ(0);
}
.bcf-root.bcf-left .bcf-widget{
  right: auto;
  left: 24px;
}