.zappoy-tuya-device {
    width: 100%;
    box-sizing: border-box;
}

.zappoy-tuya-device-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.zappoy-tuya-capabilities {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 16px;
}

.zappoy-tuya-capability {
    border: 1px solid rgba(200,150,50,.45);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255,255,255,.96);
    box-sizing: border-box;
}

.zappoy-tuya-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.zappoy-tuya-control {
    width: 100%;
    box-sizing: border-box;
}

.zappoy-tuya-number-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zappoy-tuya-number-row input[type="range"] {
    width: 100%;
}

.zappoy-tuya-value {
    font-size: 12px;
    font-weight: 700;
}

.zappoy-tuya-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.zappoy-tuya-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.zappoy-tuya-switch-ui {
    width: 52px;
    height: 28px;
    border-radius: 20px;
    background: #bbb;
    display: block;
    position: relative;
    transition: .2s ease;
}

.zappoy-tuya-switch-ui:after {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: .2s ease;
}

.zappoy-tuya-switch input:checked + .zappoy-tuya-switch-ui {
    background: #d59b36;
}

.zappoy-tuya-switch input:checked + .zappoy-tuya-switch-ui:after {
    transform: translateX(24px);
}

@media (max-width: 700px) {

    .zappoy-tuya-capabilities {
        grid-template-columns: 1fr;
    }
}
