.swa-widget{
    --swa-primary:#25D366;
    --swa-icon:#fff;
    --swa-bubble-bg:#fff;
    --swa-bubble-text:#102037;
    --swa-accent:#2DB7C9;
    --swa-bottom:24px;
    --swa-side:24px;
    --swa-size:62px;
    --swa-z:99999;
    --swa-bubble-width:240px;
    --swa-bubble-radius:16px;
    --swa-bubble-offset-x:0px;
    --swa-bubble-offset-y:0px;
    --swa-arrow-shift-x:0px;
    --swa-arrow-shift-y:0px;
    position:fixed;
    bottom:var(--swa-bottom);
    width:var(--swa-size);
    height:var(--swa-size);
    z-index:var(--swa-z);
    pointer-events:none;
    font-family:inherit;
}
.swa-position-right{right:var(--swa-side);}
.swa-position-left{left:var(--swa-side);}
.swa-button,
.swa-bubble{pointer-events:auto;}
.swa-button{
    position:absolute;
    left:0;
    top:0;
    width:var(--swa-size);
    height:var(--swa-size);
    min-width:var(--swa-size);
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--swa-primary);
    color:var(--swa-icon);
    box-shadow:0 14px 32px rgba(0,0,0,.25),0 4px 12px rgba(0,0,0,.15);
    text-decoration:none!important;
    transform:translateZ(0);
    transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
    z-index:3;
}
.swa-button:hover,
.swa-button:focus-visible{
    color:var(--swa-icon);
    transform:translateY(-3px) scale(1.03);
    box-shadow:0 18px 38px rgba(0,0,0,.28),0 6px 15px rgba(0,0,0,.18);
    filter:saturate(1.05);
    outline:none;
}
.swa-button svg{width:56%;height:56%;position:relative;z-index:2;}
.swa-pulse{
    position:absolute;
    inset:0;
    border-radius:inherit;
    background:var(--swa-primary);
    opacity:.35;
    z-index:0;
}
.swa-has-pulse .swa-pulse{animation:swaPulse 2.25s ease-out infinite;}
@keyframes swaPulse{
    0%{transform:scale(1);opacity:.38;}
    70%,100%{transform:scale(1.48);opacity:0;}
}
.swa-bubble{
    position:absolute;
    width:min(var(--swa-bubble-width),calc(100vw - 28px));
    background:var(--swa-bubble-bg);
    color:var(--swa-bubble-text);
    border-radius:var(--swa-bubble-radius);
    box-shadow:0 16px 42px rgba(4,18,36,.22),0 3px 10px rgba(4,18,36,.1);
    opacity:0;
    visibility:hidden;
    overflow:visible;
    max-height:calc(100vh - 24px);
    transition:opacity .25s ease,transform .25s ease,visibility .25s ease;
    z-index:2;
}
.swa-bubble::after{
    content:"";
    position:absolute;
    width:14px;
    height:14px;
    background:var(--swa-bubble-bg);
    transform:rotate(45deg);
}
.swa-bubble-link{
    display:flex;
    flex-direction:column;
    gap:5px;
    padding:14px 38px 14px 14px;
    color:inherit!important;
    text-decoration:none!important;
    max-height:calc(100vh - 48px);
    overflow:auto;
}

.swa-bubble-brand-wrap{margin-bottom:4px;}
.swa-bubble-logo{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    min-width:34px;
    border-radius:999px;
    box-shadow:0 8px 16px rgba(16,32,55,.12);
}
.swa-bubble-logo.is-text{
    padding:8px 12px;
    background:linear-gradient(135deg, rgba(45,183,201,.14), rgba(37,211,102,.18));
    color:var(--swa-bubble-text);
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
}
.swa-bubble-logo.has-image{
    background:#fff;
    padding:4px;
    width:40px;
    height:40px;
    overflow:hidden;
}
.swa-bubble-logo.has-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}
.swa-logo-anim-float .swa-bubble-logo{animation:swaLogoFloat 2.6s ease-in-out infinite;}
.swa-logo-anim-pulse .swa-bubble-logo{animation:swaLogoPulse 2.2s ease-in-out infinite;}
.swa-logo-anim-spin .swa-bubble-logo.has-image img,
.swa-logo-anim-spin .swa-bubble-logo.is-text{animation:swaLogoSpin 6s linear infinite;}
@keyframes swaLogoFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-3px);}}
@keyframes swaLogoPulse{0%,100%{transform:scale(1);}50%{transform:scale(1.06);}}
@keyframes swaLogoSpin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}
.swa-bubble-title{font-size:15px;line-height:1.25;color:inherit;}
.swa-bubble-message{font-size:13px;line-height:1.45;opacity:.82;}
.swa-bubble-cta{font-size:12px;font-weight:800;letter-spacing:.02em;color:var(--swa-accent);margin-top:3px;}
.swa-close{
    position:absolute;
    top:7px;
    right:8px;
    z-index:3;
    width:28px;
    height:28px;
    border:0;
    border-radius:50%;
    background:transparent;
    color:var(--swa-bubble-text);
    opacity:.55;
    cursor:pointer;
    font-size:22px;
    line-height:1;
    padding:0;
}
.swa-close:hover,.swa-close:focus-visible{opacity:1;background:rgba(0,0,0,.06);outline:none;}

/* Bubble placement */
.swa-bubble-pos-top .swa-bubble{
    left:calc(50% + var(--swa-bubble-offset-x));
    bottom:calc(100% + 14px + var(--swa-bubble-offset-y));
    transform:translate(-50%, 12px) scale(.96);
    transform-origin:bottom center;
}
.swa-bubble-pos-top .swa-bubble::after{
    left:calc(50% + var(--swa-arrow-shift-x));
    bottom:-7px;
    margin-left:-7px;
}
.swa-bubble-pos-bottom .swa-bubble{
    left:calc(50% + var(--swa-bubble-offset-x));
    top:calc(100% + 14px + var(--swa-bubble-offset-y));
    transform:translate(-50%, -12px) scale(.96);
    transform-origin:top center;
}
.swa-bubble-pos-bottom .swa-bubble::after{
    left:calc(50% + var(--swa-arrow-shift-x));
    top:-7px;
    margin-left:-7px;
}
.swa-bubble-pos-left .swa-bubble{
    right:calc(100% + 14px + var(--swa-bubble-offset-x));
    bottom:calc(50% + var(--swa-bubble-offset-y));
    transform:translateY(50%) translateX(12px) scale(.96);
    transform-origin:right center;
}
.swa-bubble-pos-left .swa-bubble::after{
    right:-7px;
    top:calc(50% + var(--swa-arrow-shift-y));
    margin-top:-7px;
}
.swa-bubble-pos-right .swa-bubble{
    left:calc(100% + 14px + var(--swa-bubble-offset-x));
    bottom:calc(50% + var(--swa-bubble-offset-y));
    transform:translateY(50%) translateX(-12px) scale(.96);
    transform-origin:left center;
}
.swa-bubble-pos-right .swa-bubble::after{
    left:-7px;
    top:calc(50% + var(--swa-arrow-shift-y));
    margin-top:-7px;
}
.swa-bubble.is-visible{opacity:1;visibility:visible;}
.swa-bubble-pos-top .swa-bubble.is-visible{transform:translate(-50%, 0) scale(1);}
.swa-bubble-pos-bottom .swa-bubble.is-visible{transform:translate(-50%, 0) scale(1);}
.swa-bubble-pos-left .swa-bubble.is-visible{transform:translateY(50%) translateX(0) scale(1);}
.swa-bubble-pos-right .swa-bubble.is-visible{transform:translateY(50%) translateX(0) scale(1);}

@media (max-width:600px){
    .swa-widget{--swa-bottom:max(18px,env(safe-area-inset-bottom));--swa-side:16px;}
    .swa-bubble{width:min(var(--swa-bubble-width),calc(100vw - 24px));}
    .swa-bubble-link{padding:13px 36px 13px 13px;}
    .swa-bubble-title{font-size:14px;}
    .swa-bubble-message{font-size:12px;}
}
@media (prefers-reduced-motion:reduce){
    .swa-has-pulse .swa-pulse,
    .swa-bubble-logo,
    .swa-bubble-logo img{animation:none!important;}
    .swa-button,.swa-bubble{transition:none;}
}
