/* wp-quick-floating-button/assets/css/public.css */

.wqfb-floating-btn {
    position: fixed;
    bottom: -60px;
    left: var(--wqfb-pos-left);
    right: var(--wqfb-pos-right);
    color: #ffffff !important;
    padding: 15px 25px;
    text-decoration: none !important;
    font-weight: bold;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wqfb-floating-btn.wqfb-is-visible {
    bottom: 20px;
    opacity: 1;
    visibility: visible;
}

.wqfb-floating-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.wqfb-tmpl-simple { background-color: var(--wqfb-color); border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.wqfb-tmpl-gradient { background: linear-gradient(135deg, var(--wqfb-color) 0%, var(--wqfb-color2) 100%); border-radius: 8px; box-shadow: 0 8px 15px rgba(0,0,0,0.3); }
.wqfb-tmpl-pill { background-color: var(--wqfb-color); border-radius: 50px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.wqfb-tmpl-outline { background-color: transparent; border: 2px solid var(--wqfb-color); color: var(--wqfb-color) !important; border-radius: 8px; }
.wqfb-tmpl-outline:hover { background-color: var(--wqfb-color); color: #ffffff !important; }
.wqfb-tmpl-material { background-color: var(--wqfb-color); border-radius: 50px; box-shadow: 0 10px 20px rgba(0,0,0,0.25), 0 6px 6px rgba(0,0,0,0.22); }

.wqfb-tmpl-image {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.wqfb-img-pc {
    display: block;
    width: var(--wqfb-img-width-pc);
    max-width: 100%;
    height: auto;
    border-radius: var(--wqfb-img-radius);
    box-shadow: var(--wqfb-img-shadow);
}
.wqfb-img-sp { display: none !important; }

@media (max-width: 768px) {
    .wqfb-floating-btn.wqfb-is-visible {
        /* ▼ ここがPHPで設定した数値に変わる！ ▼ */
        bottom: var(--wqfb-bottom-sp);
        left: var(--wqfb-pos-left-sp);
        right: var(--wqfb-pos-right-sp);
    }
    .wqfb-floating-btn { padding: 12px 20px; font-size: 14px; }
    
    .wqfb-tmpl-image { padding: 0; }
    .wqfb-img-pc { display: none !important; }
    .wqfb-img-sp {
        display: block !important;
        width: var(--wqfb-img-width-sp);
        max-width: 100%;
        height: auto;
        border-radius: var(--wqfb-img-radius);
        box-shadow: var(--wqfb-img-shadow);
    }
}