
/* Online Support Pro - frontend */
.osp{
  --osp-primary:#10b981;
  --osp-text:#fff;
  --osp-bottom:24px;
  --osp-side:16px;
  position: relative;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  z-index: 99999;
}

.osp--floating{
  position: fixed;
  bottom: var(--osp-bottom);
}
.osp--floating.osp--right{ right: var(--osp-side); }
.osp--floating.osp--left{ left: var(--osp-side); }

.osp__toggle{
  width: auto;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--osp-text);
  background: var(--osp-primary);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.osp__toggleText{ font-weight: 600; font-size: 14px; }
.osp__toggleIcon{ display:inline-flex; }
.osp__toggleChevron{ display:inline-flex; opacity:.9; transition: transform .2s ease; }

.osp__panel{
  margin-top: 10px;
  border-radius: 18px;
  padding: 10px;
  width: max-content;
  max-width: 280px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  transform-origin: bottom right;
}

.osp--left .osp__panel{ transform-origin: bottom left; }

.osp--glass .osp__panel{
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
}
.osp--solid .osp__panel{
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.10);
}
.osp--minimal .osp__panel{
  background: rgba(10,10,10,.06);
  border: 1px solid rgba(0,0,0,.08);
}

.osp__offline{
  font-size: 12px;
  line-height: 1.35;
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 8px;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.25);
}
.osp--minimal .osp__offline{
  color: rgba(0,0,0,.8);
  background: rgba(255,255,255,.85);
}

.osp__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.osp__btn{
  text-decoration: none !important;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--osp-text);
  background: rgba(0,0,0,.22);
  transition: transform .12s ease, background .12s ease;
}
.osp--solid .osp__btn{ background: rgba(255,255,255,.08); }
.osp--minimal .osp__btn{
  color: #0b1220;
  background: rgba(255,255,255,.92);
}

.osp__btn:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.32);
}
.osp--minimal .osp__btn:hover{ background: rgba(255,255,255,1); }

.osp__icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--osp-primary);
  color: var(--osp-text);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.osp__label{
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* no labels mode */
.osp--nolabels .osp__btn{ padding: 8px; }
.osp--nolabels .osp__icon{ width: 44px; height: 44px; }
.osp--nolabels .osp__label{ display:none; }

/* collapsed */
.osp.is-collapsed .osp__panel{ display:none; }
.osp.is-collapsed .osp__toggleChevron{ transform: rotate(-90deg); }
.osp.is-expanded .osp__toggleChevron{ transform: rotate(0deg); }

/* animation pulse (subtle) */
.osp__toggle::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--osp-primary), transparent 55%);
  opacity: .0;
  animation: ospPulse 2.2s ease-out infinite;
  pointer-events:none;
}
@keyframes ospPulse{
  0%{ transform: scale(.92); opacity: .0; }
  15%{ opacity: .45; }
  100%{ transform: scale(1.15); opacity: 0; }
}

/* embedded mode */
.osp--embedded{
  display: inline-block;
}
.osp--embedded .osp__panel{ width: 100%; max-width: 380px; }
