#psb-button {
    position: fixed;
    top: 50%;
    left: calc(100% - 48px);
    transform: rotate(-90deg) translate(-40.2%, 0%);
    transform-origin: calc(0% - 1px) 0%;
    background: #00BA5B;
    color: white;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 25px;
    text-align: center;
    white-space: nowrap;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    padding: 20px;
    z-index: 999;
    overflow: hidden;
    transition: filter ease-in 0.5s;
}
#psb-button:hover {
    filter: brightness(1.2);
}

#psb-button:after {
    content: '';
    position: absolute;
    top: -50%;
    bottom: -50%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.6) 100%);
    width: 45px;
    transform: skewX(-22deg);
    left: -65%;
    animation-name: blick;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

/* Popup */
#psb-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 50%;
    max-height: 90vh;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    overflow-y: auto;
}

#psb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.76);
    display: none;
    z-index: 1000;
}

#psb-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .psb-button {
        right: 15px !important;
        left: auto !important;
        padding: 0 !important;
    }

    #psb-popup {
        max-width: 95%;
        max-height: 95vh;
        padding: 10px;
    }
}

@keyframes blick {
    60% {
        left: 100%
    }

    to {
        left: 130%
    }
}
