.aisb-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
    box-sizing: border-box;
}

.aisb-title {
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 1.1em;
    color: #333;
    word-wrap: break-word;
}

.aisb-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: stretch;
}

.aisb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: #fff !important;
    white-space: nowrap;
    min-height: 40px;
    line-height: 1.2;
}

.aisb-button:hover {
    opacity: 0.85;
    color: #fff !important;
    transform: translateY(-2px);
}

.aisb-button:active {
    transform: translateY(0);
}

.aisb-chatgpt {
    background-color: #10a37f;
}

.aisb-perplexity {
    background-color: #20b2aa;
}

.aisb-grok {
    background-color: #000000;
}

.aisb-google {
    background-color: #4285f4;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .aisb-container {
        padding: 12px;
        margin: 15px 0;
    }

    .aisb-title {
        font-size: 1em;
        margin-bottom: 12px;
    }

    .aisb-buttons {
        gap: 8px;
    }

    .aisb-button {
        padding: 10px 12px;
        font-size: 13px;
        flex: 1 1 calc(50% - 4px);
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .aisb-container {
        padding: 10px;
        margin: 12px 0;
    }

    .aisb-title {
        font-size: 0.95em;
        margin-bottom: 10px;
    }

    .aisb-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .aisb-button {
        width: 100%;
        padding: 12px 10px;
        font-size: 13px;
        min-height: 44px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .aisb-container {
        padding: 8px;
        margin: 10px 0;
    }

    .aisb-title {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .aisb-button {
        padding: 10px 8px;
        font-size: 12px;
        min-height: 40px;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .aisb-buttons {
        gap: 12px;
    }

    .aisb-button {
        flex: 1 1 calc(25% - 9px);
    }
}

/* Ensure proper text rendering */
.aisb-button {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .aisb-button {
        min-height: 44px;
        padding: 12px 14px;
    }

    .aisb-button:active {
        opacity: 0.7;
    }
}
