.bulb-widget, .placeholder-widget, .slider-widget {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
}

.bulb-widget {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
}

.bulb-widget.full-hitbox {
    cursor: pointer;
}

.bulb-name {
    flex: 1;
    word-break: break-word;
    text-align: left;
    font-size: 1.25rem;
}

.bulb-name-input {
    flex: 1;
    resize: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font: inherit;
}

.widget-template.light-single-toggle {
    width: 40vmin;
    height: 15vmin
}

.rgbw-bulb-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    color: white;
    height: 100%;
}

.widget-template.light-rgbw-toggle {
    width: 40vmin;
    height: 30vmin;
}

/*RGBW Toggle*/
.toggle-widget-header{
    width:100%;
    display:flex;
    justify-content:space-between;
}

.chosen-color {
    flex: 0 0 5vh; /* nie �ciskaj; szeroko�� = wysoko�� */
    width: 5vh;
    height: 5vh;
    box-sizing: border-box;
}

input[type="color"] {
    border: 2px solid #888; /* cienka ramka zamiast grubego obramowania */
    border-radius: 4px;
    padding: 0;
    appearance: none; /* usuwa natywne style */
    -webkit-appearance: none; /* Safari */
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px; /* odst�p mi�dzy kolorem a ramk� */
}

input[type="color"]::-webkit-color-swatch {
    border: none; /* usuwa podw�jn� ramk� wewn�trz */
    border-radius: 3px;
}





/* === MEDIA === */

/* Mobile  */

@media (max-width: 699px) {
    .bulb-name {
        font-size: 0.95rem;
    }
}

/* WVGA / WVGA-Narrow (720x480, 800x480) */

@media (min-width: 700px) and (max-width: 880px) {
    .chosen-color {
        width: 2rem;
        height: 2rem;
        flex: 0 0 auto;
    }
}

/* WSVGA / XGA (1024x600, 1024x768) */

@media (min-width: 881px) and (max-width: 1150px) {
    .bulb-name {
        font-size: 0.95rem;
    }
}

/* WXGA / HD720 / SXGA (1280x720/800/1024) */

@media (min-width: 1151px) and (max-width: 1600px) {
    .bulb-name {
        font-size: 0.95rem;
    }
}

/* HD / WUXGA (1920x1080, 1920x1200) */

@media (min-width: 1601px) and (max-width: 2879px) {
    /* standard styles */
}

/* 4K (3840x2160) */

@media (min-width: 2880px) {

    .bulb-name {
        font-size: 2rem;
    }
}
