.wpconsent-floating-button-grid {
    display: grid;
    grid-template-columns: repeat(6, 44px);
    gap: 20px;
    justify-content: start;
    max-width: 670px;
    width: 100%;
}

.wpconsent-floating-button-preview {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wpconsent-floating-button-bg, var(--wpconsent-color-primary) );
    color: var(--wpconsent-floating-button-color, #fff);
    border: none;
    padding: 10px;
    line-height: 8px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.wpconsent-floating-button-preview.selected {
    outline: 2px solid var(--wpconsent-color-primary);
    outline-offset: 2px;
}

.wpconsent-media-upload-button {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
}

.wpconsent-media-upload-button span {
    font-size: 12px;
    color: var(--wpconsent-floating-button-color, #fff);
}

.wpconsent-floating-button-preview img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* Hide text when image is present */
.wpconsent-floating-button-preview.has-image .wpconsent-media-upload-button span {
    display: none;
}

/* Show text only when no image is present */
.wpconsent-floating-button-preview:not(.has-image) .wpconsent-media-upload-button span {
    display: block;
} 