/* Feedbacker 前台样式 */

.feedbacker-button-wrapper {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedbacker-button-wrapper:hover {
    opacity: 0.9;
}

.feedbacker-button-wrapper.added {
    cursor: default;
}

.feedbacker-button-wrapper.added .feedbacker-button-content {
    opacity: 0.8;
}

/* 按钮内容容器 */
.feedbacker-button-content {
    display: inline-block;
}

/* 加载动画 */
.feedbacker-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: feedbacker-spin 0.6s linear infinite;
}

@keyframes feedbacker-spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .feedbacker-button-wrapper {
        display: block;
        width: 100%;
    }
    
    .feedbacker-float-cart {
        top: 35%;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .feedbacker-float-cart i {
        font-size: 24px;
    }
    
    .feedbacker-float-cart .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: 3px;
        right: 3px;
    }
}

@media (max-width: 480px) {
    .feedbacker-float-cart {
        top: 30%;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .feedbacker-float-cart i {
        font-size: 22px;
    }
}

/* 浮动购物车按钮 */
.feedbacker-float-cart {
    position: fixed;
    top: 40%;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0073aa;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,115,170,0.4);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feedbacker-float-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,115,170,0.6);
}

.feedbacker-float-cart i {
    font-size: 28px;
    color: white;
}

.feedbacker-float-cart .cart-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4444;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

.feedbacker-float-cart.hidden {
    display: none;
}
