/* BuildABusiness Widget Styles */

.bab-widget-button {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: all 0.3s ease;
}

.bab-widget-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.bab-widget-button:active {
    transform: scale(0.95);
}

.bab-widget-button svg {
    width: 28px;
    height: 28px;
}

/* Positioning */
.bab-position-bottom-right {
    bottom: 24px;
    right: 24px;
}

.bab-position-bottom-left {
    bottom: 24px;
    left: 24px;
}

.bab-position-top-right {
    top: 24px;
    right: 24px;
}

.bab-position-top-left {
    top: 24px;
    left: 24px;
}

/* Iframe container */
.bab-iframe-container {
    position: fixed;
    z-index: 999999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bab-iframe-container.bab-position-bottom-right,
.bab-iframe-container.bab-position-bottom-left {
    bottom: 24px;
    width: 400px;
    height: 600px;
}

.bab-iframe-container.bab-position-top-right,
.bab-iframe-container.bab-position-top-left {
    top: 24px;
    width: 400px;
    height: 600px;
}

.bab-iframe-container.bab-position-bottom-right,
.bab-iframe-container.bab-position-top-right {
    right: 24px;
}

.bab-iframe-container.bab-position-bottom-left,
.bab-iframe-container.bab-position-top-left {
    left: 24px;
}

.bab-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Close button */
.bab-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.bab-close-button:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bab-iframe-container {
        width: calc(100vw - 32px) !important;
        height: calc(100vh - 100px) !important;
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
    }
    
    .bab-iframe-container.bab-position-top-right,
    .bab-iframe-container.bab-position-top-left {
        top: 16px !important;
        bottom: auto !important;
    }
    
    .bab-widget-button {
        width: 56px;
        height: 56px;
    }
    
    .bab-widget-button svg {
        width: 24px;
        height: 24px;
    }
}
