/* Admin styles */
.icon-selector {
    margin-top: 10px;
}

.icon-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 0 10px;
    vertical-align: middle;
}

.icon-preview img,
.icon-preview i {
    vertical-align: middle;
}

.custom-button-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.custom-button-row .color-picker {
    width: 60px;
    padding: 0;
    height: 30px;
}

#custom-buttons-container {
    margin: 20px 0;
}

/* Frontend styles */
.fcb-container {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fcb-left {
    left: 20px;
}

.fcb-right {
    right: 20px;
}

.fcb-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.fcb-button i.dashicons {
    color: white;
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 24px;
}

.fcb-button .custom-icon {
    width: 51px!important;
    height: 51px!important;
    object-fit: contain;
}

/* Button colors */
.fcb-phone {
    background-color: #4CAF50;
}

.fcb-messenger {
    background-color: #0084FF;
}

/* Hover effect */
.fcb-button:hover {
    transform: scale(1.1);
}

/* Pulse animation */
.pulse {
    position: relative;
}

.pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .fcb-container {
        bottom: 20px;
    }
    
    .fcb-left {
        left: 10px;
    }
    
    .fcb-right {
        right: 10px;
    }
    
    .fcb-button {
        width: 50px;
        height: 50px;
    }
    
    .fcb-button i.dashicons {
        font-size: 30px;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
    
    .fcb-button .custom-icon {
        width: 30px;
        height: 30px;
    }
}