
/* POPY widget */
.popy-widget{
  position:fixed;
  right:24px;
  bottom:20px;
  z-index:3200;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
}

.popy-widget.is-open{
  z-index:3505;
}

.popy-widget.is-open .popy-launcher{
  opacity:0;
  pointer-events:none;
  transform:translateY(8px) scale(.96);
}

.popy-widget .popy-launcher{
  transition:opacity .18s ease, transform .18s ease;
}

.popy-launcher{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  display:flex;
  align-items:flex-end;
  gap:12px;
}

.popy-launcher-fixed .popy-avatar{
  width:118px;
  height:auto;
  display:block;
  filter:drop-shadow(0 18px 34px rgba(7,22,42,.22));
  transition:transform .18s ease;
}

.popy-launcher:hover .popy-avatar{transform:translateY(-4px) scale(1.02);}

.popy-teaser{
  max-width:260px;
  background:rgba(255,255,255,.96);
  color:#10304d;
  border:1px solid rgba(13,43,77,.10);
  box-shadow:0 18px 44px rgba(7,22,42,.14);
  border-radius:20px 20px 8px 20px;
  padding:14px 16px;
  font-weight:800;
  line-height:1.4;
  position:relative;
}

.popy-launcher-fixed .popy-teaser::after{
  content:"";
  position:absolute;
  right:-8px;
  bottom:12px;
  width:16px;
  height:16px;
  background:rgba(255,255,255,.96);
  border-right:1px solid rgba(13,43,77,.10);
  border-bottom:1px solid rgba(13,43,77,.10);
  transform:rotate(-45deg);
}

.popy-panel{
  width:min(410px, calc(100vw - 24px));
  max-height:min(72vh, 680px);
  background:rgba(255,255,255,.985);
  border:1px solid rgba(13,43,77,.10);
  border-radius:26px;
  box-shadow:0 28px 68px rgba(7,22,42,.18);
  overflow:hidden;
  display:none;
}
.popy-panel.is-open{display:flex;flex-direction:column;}

.popy-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:linear-gradient(135deg, rgba(0,121,193,.08), rgba(255,255,255,1)), linear-gradient(135deg, rgba(244,157,70,.10), transparent);
  border-bottom:1px solid rgba(13,43,77,.08);
}
.popy-header-left{display:flex;align-items:center;gap:12px;}
.popy-header-avatar{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 6px 12px rgba(7,22,42,.14));}
.popy-subtitle{font-size:12px;color:#59748c;}
.popy-close{appearance:none;border:0;background:transparent;font-size:30px;line-height:1;cursor:pointer;color:#204160;}

.popy-messages{
  padding:16px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
  background:linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}
.popy-msg{max-width:88%;padding:12px 14px;border-radius:16px;line-height:1.48;font-size:14px;box-shadow:0 8px 22px rgba(0,0,0,.06);}
.popy-msg.bot{background:#eef6ff;color:#143554;border-top-left-radius:6px;}
.popy-msg.user{background:#0b73c9;color:#fff;margin-left:auto;border-top-right-radius:6px;}
.popy-suggestions{display:flex;gap:8px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid rgba(13,43,77,.06);background:#fff;}
.popy-chip{border:1px solid rgba(244,157,70,.28);background:rgba(244,157,70,.08);color:#9a5a12;border-radius:999px;padding:8px 12px;font-weight:700;cursor:pointer;}
.popy-form{display:flex;gap:8px;padding:12px 16px 16px;background:#fff;}
.popy-input{flex:1;min-width:0;border:1px solid rgba(13,43,77,.12);border-radius:14px;padding:12px 14px;font:inherit;}
.popy-send{appearance:none;border:0;border-radius:14px;padding:12px 14px;background:linear-gradient(135deg, #0079C1, #03A0D7);color:#fff;font-weight:800;cursor:pointer;}



/* Centered widget on homepage */
.popy-center-widget{
  position:relative;
  right:auto;
  bottom:auto;
  z-index:6;
  align-items:center;
}

.popy-center-widget.is-open{
  z-index:3505;
}

.popy-center-widget .popy-launcher{
  position:relative;
  opacity:1;
  pointer-events:auto;
}
/* Index centered POPY */
.popy-center-dock{
  position:relative;
  z-index:3;
  margin-top:-6vh;
  margin-bottom:-2px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.popy-launcher-center{
  position:relative;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.popy-launcher-center .popy-avatar{
  width:min(210px, 24vw);
  min-width:150px;
  height:auto;
  display:block;
  filter:drop-shadow(0 18px 28px rgba(7,22,42,.18));
}
.popy-launcher-center .popy-teaser{
  position:absolute;
  right:min(-210px, -14vw);
  top:18px;
  max-width:255px;
  border-radius:20px 20px 20px 8px;
}
.popy-launcher-center .popy-teaser::after{
  content:"";
  position:absolute;
  left:-8px;
  top:32px;
  width:16px;
  height:16px;
  background:rgba(255,255,255,.96);
  border-left:1px solid rgba(13,43,77,.10);
  border-bottom:1px solid rgba(13,43,77,.10);
  transform:rotate(45deg);
}
.popy-center-panel{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  z-index:3510;
  max-width:min(410px, calc(100vw - 24px));
}
.popy-backdrop{
  position:fixed;
  inset:0;
  background:rgba(7,22,42,.26);
  backdrop-filter:blur(4px);
  z-index:3490;
  display:none;
}
.popy-backdrop.is-open{display:block;}

@media (max-width: 1120px){
  .popy-center-dock{margin-top:-3vh;}
  .popy-launcher-center .popy-teaser{right:-170px;max-width:220px;}
}
@media (max-width: 980px){
  .popy-center-dock{margin-top:0;}
  .popy-launcher-center .popy-avatar{width:min(170px, 34vw);min-width:120px;}
  .popy-launcher-center .popy-teaser{position:static;max-width:260px;}
  .popy-launcher-center .popy-teaser::after{display:none;}
}
@media (max-width: 720px){
  .popy-widget{right:14px;bottom:14px;}
  .popy-launcher-fixed .popy-avatar{width:94px;}
  .popy-teaser{max-width:190px;font-size:13px;padding:12px 14px;}
  .popy-center-dock{gap:8px;}
  .popy-launcher-center .popy-avatar{width:132px;min-width:0;}
  .popy-panel{width:min(94vw, 410px);}
}

/* V2.7.1 remove rectangular sections */
.no-rect-section{
background:transparent !important;
border:none !important;
box-shadow:none !important;
border-radius:0 !important;
}

/* Unified Private/Public Buttons Style */
.btn-private, .btn-public {
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-private {
  border: 2px solid #2a6df4;
  color: #2a6df4;
}

.btn-public {
  border: 2px solid #ff2f92;
  color: #ff2f92;
}


/* V5 responsive fix */
@media (max-width:768px){
header,nav,.topbar{
display:flex;
flex-wrap:wrap;
}
button,.btn{
width:100%;
}
.consent-text{
margin-left:8px;
display:inline-block;
}
}
