.swr-form {
    --swr-offset-x: 28px;
    --swr-offset-y: 28px;
    display: inline-block;
    margin: 0;
    padding: 0;
    border: 0;
    font: 16px/1.625em -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen-sans, ubuntu, cantarell, "Helvetica Neue", sans-serif;
    letter-spacing: 0;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
.swr-form *, .swr-form *::before, .swr-form *::after { box-sizing: border-box; }
.swr-form .swr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    margin: 0;
    padding: .75em 1em;
    border: 0;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font: inherit;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s linear;
}
.swr-form .swr-button:hover, .swr-form .swr-button:active { background-color: #128c7e; color: #fff; }
.swr-form .swr-button:active { transition: none; }
.swr-form .swr-button:focus-visible { outline: 3px solid #075e54; outline-offset: 4px; }
.swr-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: url('/wp-content/plugins/shared-whatsapp-rotation/assets/whatsapp.svg') center / contain no-repeat;
}
.swr-form.swr-floating {
    position: fixed;
    width: 60px;
    height: 60px;
    left: var(--swr-offset-x);
    bottom: var(--swr-offset-y);
    right: auto;
    z-index: 9000;
    transform-origin: -30px -15px;
    animation: swr-show .5s cubic-bezier(.18, .89, .32, 1.28) 3.01s both;
    contain: style;
}
.swr-form.swr-floating.swr-right {
    left: auto;
    right: var(--swr-offset-x);
    transform-origin: 90px -15px;
}
.swr-floating .swr-button {
    position: relative;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 1px 6px 24px 0 rgba(7, 94, 84, .24);
    animation: swr-bounce 5s ease-in-out infinite;
}
.swr-floating .swr-icon { width: 36px; height: 36px; }
.swr-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: red;
    color: white;
    font-size: var(--text-xs, 16px);
}
.swr-status:empty { display: none; }
.swr-status:not(:empty) {
    display: block;
    width: max-content;
    max-width: min(280px, calc(100vw - 40px));
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
    color: #222;
    font: 14px/1.4 sans-serif;
    box-shadow: 0 2px 12px #0002;
}
.swr-floating .swr-status:not(:empty) { position: absolute; left: 0; bottom: 74px; }
.swr-floating.swr-right .swr-status:not(:empty) { left: auto; right: 0; }
@keyframes swr-show { from { transform: scale3d(0, 0, 0); } to { transform: scaleX(1); } }
@keyframes swr-bounce {
    0%, 20%, 53%, 80%, 100% { animation-timing-function: cubic-bezier(.215, .61, .355, 1); transform: translate3d(0, 0, 0); }
    40%, 43% { animation-timing-function: cubic-bezier(.755, .05, .855, .06); transform: translate3d(0, -30px, 0); }
    70% { animation-timing-function: cubic-bezier(.755, .05, .855, .06); transform: translate3d(0, -15px, 0); }
    90% { transform: translate3d(0, -4px, 0); }
}
@media (max-width: 480px), (orientation: landscape) and (max-height: 480px) {
    .swr-form { --swr-offset-x: 14px; --swr-offset-y: 14px; }
}
@media (prefers-reduced-motion: reduce) { .swr-form.swr-floating, .swr-floating .swr-button { animation: none; transform: none; } }
