
:root{ --ps-red:#cc0033; }
.ps-social-fab{
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  pointer-events: none; /* container click-through except children */
}
.ps-social-fab *{ box-sizing: border-box; }
.ps-fab-toggle{
  pointer-events: auto;
  background: var(--ps-red);
  color: #fff;
  border: none;
  border-radius: 10px 0 0 10px;
  padding: 10px 8px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 64px;
}
.ps-fab-toggle:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
.ps-fab-toggle .chev{
  display:block;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 9px solid #fff; /* white arrow */
  transition: transform .2s ease;
}
.ps-social-fab[data-state="closed"] .ps-fab-toggle .chev{
  transform: rotate(180deg);
}

.ps-fab-wrap{
  pointer-events: auto;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  display: grid;
  grid-auto-flow: row;
  gap: 10px;
  transition: transform .22s ease, opacity .22s ease;
}
.ps-social-fab[data-state="closed"] .ps-fab-wrap{
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
}

.ps-fab-item{
  display: inline-flex;
  align-items:center;
  justify-content:center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--ps-red);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.ps-fab-item:hover,
.ps-fab-item:focus-visible{
  background: #fff;
  color: var(--ps-red);
  outline: 2px solid var(--ps-red);
  outline-offset: 2px;
}
.ps-fab-item svg{ width: 22px; height: 22px; display:block; }
.ps-fab-item svg [fill]{ fill: currentColor; }
.ps-fab-item svg [stroke]{ stroke: currentColor; }

@media (max-width: 900px){
  .ps-social-fab{
    top: auto;
    bottom: 16px;
    transform: none;
  }
  .ps-fab-toggle{
    height: 44px; width: 44px; border-radius: 999px;
  }
  .ps-fab-wrap{ grid-auto-flow: column; }
}
